Skip to content

Commit 4171655

Browse files
committed
fix: Update tests to consider cd command
1 parent 9feb464 commit 4171655

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tools/deployment-cli-tools/ch_cli_tools/codefresh.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,7 @@ def api_tests_commands(app_config: ApplicationHarnessConfig, run_custom_tests, a
462462
if api_config.autotest:
463463
# harness-test requires values.yaml generated & domain; Codefresh sets environment accordingly.
464464
# We limit to the specific app using -i and run only api tests with -a
465-
commands.append(f"echo $CH_VALUES_PATH")
466465
commands.append(f"cd $CH_VALUES_PATH")
467-
commands.append(f"ls -la")
468466
commands.append(f"harness-test . -i {app_name} -a")
469467
if run_custom_tests:
470468
commands.append("pytest -v test/api")

tools/deployment-cli-tools/tests/test_codefresh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def test_create_codefresh_configuration_tests():
238238

239239
assert any("allvalues.yaml" in v for v in test_step['volumes'])
240240

241-
assert len(test_step["commands"]) == 2, "Both default and custom api tests should be run"
241+
assert len(test_step["commands"]) == 3, "Both default and custom api tests should be run"
242242

243243
st_cmd = test_step["commands"][0]
244244
assert any("SCHEMATHESIS_HOOKS=cloudharness_test.apitest_init" in env for env in test_step['environment']), "SCHEMATHESIS_HOOKS hook must be specified in environment"

0 commit comments

Comments
 (0)