You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertlen(test_step["commands"]) ==2, "Both default and custom api tests should be run"
242
-
243
-
st_cmd=test_step["commands"][0]
244
-
assertany("SCHEMATHESIS_HOOKS=cloudharness_test.apitest_init"inenvforenvintest_step['environment']), "SCHEMATHESIS_HOOKS hook must be specified in environment"
245
-
assert"api/openapi.yaml"inst_cmd, "Openapi file must be passed to the schemathesis command"
246
-
247
-
assert"-c all"inst_cmd, "Default check loaded is `all` on schemathesis command"
248
-
assert"--exclude-deprecated"inst_cmd, "Custom parameters are loaded from values.yaml"
241
+
assertlen(test_step["commands"]) ==3, "Both default and custom api tests should be run"
242
+
243
+
# First command should change to the values path
244
+
asserttest_step["commands"][0] =="cd $CH_VALUES_PATH", "First command should change to values directory"
245
+
# Second command should run harness-test with api flag and specific app
246
+
harness_test_cmd=test_step["commands"][1]
247
+
assert"harness-test"inharness_test_cmd, "harness-test should be used for api tests"
248
+
assert"-i samples"inharness_test_cmd, "App name should be included with -i flag"
249
+
assert"-a"inharness_test_cmd, "API tests should be run with -a flag"
250
+
# Third command should run custom pytest tests
251
+
assert"pytest -v test/api"intest_step["commands"][2], "Custom pytest tests should be run"
0 commit comments