@@ -19,7 +19,7 @@ class BasicIntegrationSpec extends BaseTestConfiguration {
1919
2020 def " ansible adhoc executor uses callback envs instead of -t" () {
2121 when :
22- // Reuse the existing node-executor job used in BasicIntegrationSpec
22+
2323 def jobId = " 6b309548-bcc9-40d8-8c79-bfc0d1f1e49c"
2424
2525 JobRun request = new JobRun ()
@@ -36,15 +36,15 @@ class BasicIntegrationSpec extends BaseTestConfiguration {
3636 executionState != null
3737 executionState. getExecutionState() == " SUCCEEDED"
3838
39- // Our fix: no deprecation message about '-t' anywhere in the job logs
39+ // no deprecation message about '-t' anywhere in the job logs
4040 logs. findAll { it. log. contains(" DEPRECATION WARNING" ) && it. log. contains(" '-t'" ) }. isEmpty()
4141
42- // Optional: if you temporarily printed the env in AnsibleRunner, confirm our callback vars showed up .
43- // We make these soft assertions to avoid false negatives on environments that don't echo the env.
42+ // Verify that the expected callback env vars were set .
43+ // assertions to avoid false negatives on environments that don't echo the env.
4444 def envLines = logs. findAll { it. log. contains(" ANSIBLE_CALLBACKS_ENABLED" ) || it. log. contains(" ANSIBLE_CALLBACK_TREE_DIR" ) }
4545 assert envLines == envLines // no-op; keep for readability
4646
47- // Optional: if debug printed " procArgs: [...]" from AnsibleRunner, ensure '-t' isn't there either.
47+ // if debug printed " procArgs: [...]" from AnsibleRunner, ensure '-t' isn't there either.
4848 def procArgsLines = logs. findAll { it. log. contains(" procArgs: [" ) }. collect { it. log }
4949 if (! procArgsLines. isEmpty()) {
5050 assert procArgsLines. every { ! it. contains(" -t " ) && ! it. contains(" ,'-t'," ) }
0 commit comments