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