Skip to content

computePods/tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComputePods tests

A collection of end-to-end tests for the ComputePods project.

These tests use the cpcli tool in "tester" mode (--tester) to make requests on a local MajorDomo. These requests are essentially the same as a user might make using the cpcli command line tool or web interfaces.

The JSON results are then compared with the expected result stored in each test.

As with any cpcli command, tests can be either a Python function decorated as a @click.command, or, alternatively, a test can be a YAML file which has the following entries:

testName: <aTestName>
request:
  method: <GET>
  url: <anInterfaceFastAPIPath>
validate: <aCPInterfacesPythonPackage>
expected:
  ...<<the expected JSON structure as YAML>>...

About

A collection of end-to-end tests for the ComputePods project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published