From 88d1cbbe019459b06f00a375ea0a62e69dcb959b Mon Sep 17 00:00:00 2001 From: Conor Mongey Date: Wed, 15 Jun 2022 19:50:14 +0100 Subject: [PATCH] Update feature spec for multiple includes --- integration_tests/features/orb_pack.feature | 27 ++++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/integration_tests/features/orb_pack.feature b/integration_tests/features/orb_pack.feature index 0780e78dd..f865a1497 100644 --- a/integration_tests/features/orb_pack.feature +++ b/integration_tests/features/orb_pack.feature @@ -22,22 +22,27 @@ Feature: Orb pack And the exit status should be 0 @mocked_home_directory - Scenario: Orb pack with multiple includes fails + Scenario: Orb pack with multiple includes Given a file named "src/@orb.yml" with: """ commands: test: steps: - run: - command: <> <> + command: <> <> """ - Given a file named "src/script.sh" with "echo Hello, world!" + Given a file named "src/script.sh" with "echo Hello" + Given a file named "src/script2.sh" with "world!" When I run `circleci orb pack src` Then the output should contain: """ - Error: An unexpected error occurred: multiple include statements: '<> <>' + commands: + test: + steps: + - run: + command: echo Hello, world! """ - And the exit status should be 255 + And the exit status should be 0 @mocked_home_directory Scenario: Orb pack with include statement in bigger string @@ -47,15 +52,19 @@ Feature: Orb pack test: steps: - run: - command: include <> + command: echo "<>" """ - Given a file named "src/script.sh" with "echo Hello, world!" + Given a file named "src/script.sh" with "Hello, world!" When I run `circleci orb pack src` Then the output should contain: """ - Error: An unexpected error occurred: entire string must be include statement: 'include <>' + commands: + test: + steps: + - run: + command: echo Hello, world! """ - And the exit status should be 255 + And the exit status should be 0 @mocked_home_directory Scenario: Missing @orb.yml for orb packing