Skip to content

feat(jans-cli): add test param to run all operations with demo data on an AS #1840

Description

@moabu

I believe we need to add an operation to the CLI to run all the operations the CLI can using demo data. This test should execute every operation and reverse any injections or changes so that by the end of the test the targeted AS is brought back to the original state.

The expected output would be the success/failure of each operation in markdown table format / json/html or yaml this would be directly correlated with the swagger file defined for the operations. The Actual Response and Status(Succeeded/Failed will be filled by the operations response executed while the rest of the fields are just data from the swagger.

Example report(Not in full):

Tag Endpoint Operation Description Expected Response Actual Response Status
Attribute /jans-config-api/api/v1/attributes GET Gets a list of Jans attributes. 200
Attribute /jans-config-api/api/v1/attributes GET Gets a list of Jans attributes. 401
Attribute /jans-config-api/api/v1/attributes GET Gets a list of Jans attributes. 500
Attribute /jans-config-api/api/v1/attributes POST Adds a new attribute. 201
Attribute /jans-config-api/api/v1/attributes POST Adds a new attribute. 401
Attribute /jans-config-api/api/v1/attributes POST Adds a new attribute. 500
Attribute /jans-config-api/api/v1/attributes PUT Updates an existing attribute. 200
Attribute /jans-config-api/api/v1/attributes PUT Updates an existing attribute. 401
Attribute /jans-config-api/api/v1/attributes PUT Updates an existing attribute. 404
Attribute /jans-config-api/api/v1/attributes PUT Updates an existing attribute. 500
Attribute /jans-config-api/api/v1/attributes/{inum} GET Gets an attribute based on inum. 200
Attribute /jans-config-api/api/v1/attributes/{inum} GET Gets an attribute based on inum. 401
Attribute /jans-config-api/api/v1/attributes/{inum} GET Gets an attribute based on inum. 500
Attribute /jans-config-api/api/v1/attributes/{inum} DELETE Deletes an attribute based on inum. 204
Attribute /jans-config-api/api/v1/attributes/{inum} DELETE Deletes an attribute based on inum. 401
Attribute /jans-config-api/api/v1/attributes/{inum} DELETE Deletes an attribute based on inum. 404
Attribute /jans-config-api/api/v1/attributes/{inum} DELETE Deletes an attribute based on inum. 505
Attribute /jans-config-api/api/v1/attributes/{inum} PATCH Partially modify a jansAttribute. 200
Attribute /jans-config-api/api/v1/attributes/{inum} PATCH Partially modify a jansAttribute. 401
Attribute /jans-config-api/api/v1/attributes/{inum} PATCH Partially modify a jansAttribute. 404
Attribute /jans-config-api/api/v1/attributes/{inum} PATCH Partially modify a jansAttribute. 500

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions