File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -355,3 +355,25 @@ function setup {
355355
356356}
357357
358+
359+ @test " Default job sets block workflow properly" {
360+ # given
361+ process_config_with test/inputs/fulljob.yml
362+
363+ # when
364+ assert_jq_match ' .jobs | length' 1 # only 1 job
365+ assert_jq_match ' .jobs["Single File"].steps | length' 1 # only 1 steps
366+
367+ jq -r ' .jobs["Single File"].steps[0].run.command' $JSON_PROJECT_CONFIG > ${BATS_TMPDIR} /script-${BATS_TEST_NUMBER} .bash
368+
369+ export CIRCLECI_API_KEY=" madethisup"
370+ export CIRCLE_BUILD_NUM=" 2"
371+ export CIRCLE_JOB=" singlejob"
372+ export CIRCLE_PROJECT_USERNAME=" madethisup"
373+ export CIRCLE_PROJECT_REPONAME=" madethisup"
374+ export CIRCLE_REPOSITORY_URL=" madethisup"
375+ export CIRCLE_BRANCH=" madethisup"
376+
377+ run bash ${BATS_TMPDIR} /script-${BATS_TEST_NUMBER} .bash
378+ assert_contains_text " Orb parameter block-workflow is true."
379+ }
You can’t perform that action at this time.
0 commit comments