Here is the command I ran:
mvn clean test -Dtest=DistGitCreateSpec
And here is the output
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.732 s <<< FAILURE! - in com.redhat.threescale.productization.DistGitCreateSpec
[ERROR] will start and wait for ansible tower job(com.redhat.threescale.productization.DistGitCreateSpec) Time elapsed: 0.06 s <<< FAILURE!
org.spockframework.mock.TooFewInvocationsError:
Too few invocations for:
1 * mockDistGitUtils.startJob(_, _, _, _, _, _) (0 invocations)
Unmatched invocations (ordered by similarity):
1 * mockValidatingUtils.startJob('some_token', 'containers/3scale-amp-backend', '3scale-amp-2.5-rhel-7', '3scale-amp-2.4-rhel-7', 'yes', 'yes')
1 * mockValidatingUtils.waitForJob('some_token', null)
5 * getPipelineMock("echo").toString()
1 * getPipelineMock("echo").call('3scale-amp-2.5-rhel-7')
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'stage')
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'create_repo')
1 * getPipelineMock("echo").call('containers/3scale-amp-backend')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'repository')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'branch')
2 * getPipelineMock("echo").call('yes')
1 * getPipelineMock("echo").call('3scale-amp-2.4-rhel-7')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'token')
Too few invocations for:
1 * mockDistGitUtils.waitForJob(_, _) (0 invocations)
Unmatched invocations (ordered by similarity):
1 * mockValidatingUtils.waitForJob('some_token', null)
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'stage')
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'create_repo')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'repository')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'branch')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'token')
5 * getPipelineMock("echo").toString()
1 * getPipelineMock("echo").call('3scale-amp-2.5-rhel-7')
1 * getPipelineMock("echo").call('containers/3scale-amp-backend')
2 * getPipelineMock("echo").call('yes')
1 * getPipelineMock("echo").call('3scale-amp-2.4-rhel-7')
1 * mockValidatingUtils.startJob('some_token', 'containers/3scale-amp-backend', '3scale-amp-2.5-rhel-7', '3scale-amp-2.4-rhel-7', 'yes', 'yes')
at com.redhat.threescale.productization.DistGitCreateSpec.will start and wait for ansible tower job(DistGitCreateSpec.groovy:62)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] DistGitCreateSpec.will start and wait for ansible tower job:62 Too few invocations for:
1 * mockDistGitUtils.startJob(_, _, _, _, _, _) (0 invocations)
Unmatched invocations (ordered by similarity):
1 * mockValidatingUtils.startJob('some_token', 'containers/3scale-amp-backend', '3scale-amp-2.5-rhel-7', '3scale-amp-2.4-rhel-7', 'yes', 'yes')
1 * mockValidatingUtils.waitForJob('some_token', null)
5 * getPipelineMock("echo").toString()
1 * getPipelineMock("echo").call('3scale-amp-2.5-rhel-7')
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'stage')
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'create_repo')
1 * getPipelineMock("echo").call('containers/3scale-amp-backend')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'repository')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'branch')
2 * getPipelineMock("echo").call('yes')
1 * getPipelineMock("echo").call('3scale-amp-2.4-rhel-7')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'token')
Too few invocations for:
1 * mockDistGitUtils.waitForJob(_, _) (0 invocations)
Unmatched invocations (ordered by similarity):
1 * mockValidatingUtils.waitForJob('some_token', null)
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'stage')
1 * mockValidatingUtils.ensureYesNo(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'create_repo')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'repository')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'branch')
1 * mockValidatingUtils.ensureNotEmpty(['repository':'containers/3scale-amp-backend', 'token':'some_token', 'branch':'3scale-amp-2.5-rhel-7', 'source':'3scale-amp-2.4-rhel-7', 'stage':'yes', 'create_repo':'yes'], 'token')
5 * getPipelineMock("echo").toString()
1 * getPipelineMock("echo").call('3scale-amp-2.5-rhel-7')
1 * getPipelineMock("echo").call('containers/3scale-amp-backend')
2 * getPipelineMock("echo").call('yes')
1 * getPipelineMock("echo").call('3scale-amp-2.4-rhel-7')
1 * mockValidatingUtils.startJob('some_token', 'containers/3scale-amp-backend', '3scale-amp-2.5-rhel-7', '3scale-amp-2.4-rhel-7', 'yes', 'yes')
[INFO]
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.080 s
[INFO] Finished at: 2019-05-08T12:21:41+03:00
[INFO] Final Memory: 49M/647M
[INFO] ------------------------------------------------------------------------