Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken integration tests due to new Go code binding in EB #3785

Merged
merged 2 commits into from
Mar 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions tests/integration/init/schemas/test_init_with_schemas_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_init_interactive_with_event_bridge_app_aws_registry(self):
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 7: Infrastructure event management - Use case
# 1: Java Runtime
# 2: Java Runtime (java11)
# 2: Maven
# 2: select event-bridge app from scratch
# test-project: response to name
Expand All @@ -32,7 +32,7 @@ def test_init_interactive_with_event_bridge_app_aws_registry(self):
user_input = """
1
7
1
2
2
2
eb-app-maven
Expand All @@ -58,7 +58,7 @@ def test_init_interactive_with_event_bridge_app_partner_registry(self):
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 7: Infrastructure event management - Use case
# 1: Java Runtime
# 2: Java Runtime
# 2: Maven
# 2: select event-bridge app from scratch
# test-project: response to name
Expand All @@ -69,7 +69,7 @@ def test_init_interactive_with_event_bridge_app_partner_registry(self):
user_input = """
1
7
1
2
2
2
eb-app-maven
Expand Down Expand Up @@ -105,7 +105,7 @@ def test_init_interactive_with_event_bridge_app_pagination(self):
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 7: Infrastructure event management - Use case
# 1: Java Runtime
# 2: Java Runtime
# 2: Maven
# 2: select event-bridge app from scratch
# eb-app-maven: response to name
Expand All @@ -118,7 +118,7 @@ def test_init_interactive_with_event_bridge_app_pagination(self):
user_input = """
1
7
1
2
2
2
eb-app-maven
Expand All @@ -145,7 +145,7 @@ def test_init_interactive_with_event_bridge_app_customer_registry(self):
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 7: Infrastructure event management - Use case
# 1: Java Runtime
# 2: Java Runtime
# 2: Maven
# 2: select event-bridge app from scratch
# eb-app-maven: response to name
Expand All @@ -156,7 +156,7 @@ def test_init_interactive_with_event_bridge_app_customer_registry(self):
user_input = """
1
7
1
2
2
2
eb-app-maven
Expand Down Expand Up @@ -192,9 +192,9 @@ def test_init_interactive_with_event_bridge_app_aws_schemas_python(self):
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 7: Infrastructure event management - Use case
# 6: Python 3.7
# 6: Python 3.8
# 2: select event-bridge app from scratch
# eb-app-python37: response to name
# eb-app-python38: response to name
# Y: Use default aws configuration
# 4: select aws.events as registries
# 1: select aws schema
Expand All @@ -204,7 +204,7 @@ def test_init_interactive_with_event_bridge_app_aws_schemas_python(self):
7
6
2
eb-app-python37
eb-app-python38
Y
1
4
Expand All @@ -215,7 +215,7 @@ def test_init_interactive_with_event_bridge_app_aws_schemas_python(self):
result = runner.invoke(init_cmd, ["--output-dir", temp], input=user_input)

self.assertFalse(result.exception)
expected_output_folder = Path(temp, "eb-app-python37")
expected_output_folder = Path(temp, "eb-app-python38")
self.assertTrue(expected_output_folder.exists)
self.assertTrue(expected_output_folder.is_dir())
self.assertTrue(Path(expected_output_folder, "hello_world_function", "schema").is_dir())
Expand Down Expand Up @@ -256,9 +256,9 @@ def test_init_interactive_with_event_bridge_app_non_default_profile_selection(se
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 3: Infrastructure event management - Use case
# 6: Python 3.7
# 6: Python 3.8
# 2: select event-bridge app from scratch
# eb-app-python37: response to name
# eb-app-python38: response to name
# N: Use default profile
# 2: uses second profile from displayed one (myprofile)
# schemas aws region us-east-1
Expand All @@ -270,7 +270,7 @@ def test_init_interactive_with_event_bridge_app_non_default_profile_selection(se
7
6
2
eb-app-python37
eb-app-python38
3
N
2
Expand All @@ -283,7 +283,7 @@ def test_init_interactive_with_event_bridge_app_non_default_profile_selection(se
result = runner.invoke(init_cmd, ["--output-dir", temp], input=user_input)

self.assertFalse(result.exception)
expected_output_folder = Path(temp, "eb-app-python37")
expected_output_folder = Path(temp, "eb-app-python38")
self.assertTrue(expected_output_folder.exists)
self.assertTrue(expected_output_folder.is_dir())
self.assertTrue(Path(expected_output_folder, "hello_world_function", "schema").is_dir())
Expand All @@ -295,9 +295,9 @@ def test_init_interactive_with_event_bridge_app_non_supported_schemas_region(sel
# WHEN the user follows interactive init prompts
# 1: AWS Quick Start Templates
# 7: Infrastructure event management - Use case
# 6: Python 3.7
# 6: Python 3.8
# 2: select event-bridge app from scratch
# eb-app-python37: response to name
# eb-app-python38: response to name
# Y: Use default profile
# 1: select aws.events as registries
# 1: select aws schema
Expand All @@ -307,7 +307,7 @@ def test_init_interactive_with_event_bridge_app_non_supported_schemas_region(sel
7
6
2
eb-app-python37
eb-app-python38
Y
1
1
Expand Down