fix(cd): persist controlled profile before b5 gate
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 51s
CD Pipeline / build-and-deploy (push) Successful in 7m19s
CD Pipeline / post-deploy-checks (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 51s
CD Pipeline / build-and-deploy (push) Successful in 7m19s
CD Pipeline / post-deploy-checks (push) Has been cancelled
This commit is contained in:
@@ -829,11 +829,18 @@ def test_controlled_runtime_skips_b5_before_docker_socket_use() -> None:
|
||||
text = _workflow_text()
|
||||
b5_start = text.index("- name: Integration Tests (B5")
|
||||
docker_socket = text.index("-v /var/run/docker.sock:/var/run/docker.sock", b5_start)
|
||||
persisted_profile_write = text.index('> .awoooi-cd-test-profile')
|
||||
persisted_profile_read = text.index(
|
||||
'tr -d \'\\r\\n\' < .awoooi-cd-test-profile',
|
||||
b5_start,
|
||||
)
|
||||
controlled_gate = text.index(
|
||||
'if [ "${AWOOOI_CD_TEST_PROFILE:-full}" = "controlled-runtime" ]; then',
|
||||
b5_start,
|
||||
)
|
||||
exit_zero = text.index("exit 0", controlled_gate)
|
||||
assert persisted_profile_write < b5_start
|
||||
assert b5_start < persisted_profile_read < controlled_gate
|
||||
assert controlled_gate < exit_zero < docker_socket
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user