Skip to content

chore: Sync code integration test for nested stack#3943

Merged
qingchm merged 10 commits intoaws:developfrom
qingchm:nested_code_integ
Jun 8, 2022
Merged

chore: Sync code integration test for nested stack#3943
qingchm merged 10 commits intoaws:developfrom
qingchm:nested_code_integ

Conversation

@qingchm
Copy link
Contributor

@qingchm qingchm commented Jun 7, 2022

Which issue(s) does this change fix?

N.A.

Why is this change necessary?

To add integration test on nested stack support on code sync.

How does it address the issue?

By adding in nested stack test cases.

What side effects does this change have?

Not known.

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@qingchm qingchm marked this pull request as ready for review June 7, 2022 18:11
self.assertIn("extra_message", lambda_response)
self.assertEqual(lambda_response.get("message"), "10")

@pytest.mark.skip(reason="Currently not properly supported")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the nested support for code sync on Api and Statemachine is merged, this line will be removed.

self.assertIn("extra_message", lambda_response)
self.assertEqual(lambda_response.get("message"), "10")

@pytest.mark.skip(reason="Currently not properly supported")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the nested support for code sync on Api and Statemachine is merged, this line will be removed.

ignore_errors=True,
)
shutil.copytree(
self.test_data_path.joinpath("nested").joinpath("after").joinpath("apigateway"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change this directory to be a location under child stack.

ignore_errors=True,
)
shutil.copytree(
self.test_data_path.joinpath("nested").joinpath("after").joinpath("apigateway"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change this directory to be a location under child stack.

"body": json.dumps({
"message": f"{layer_method()+6}",
"location": ip.text.replace("\n", "")
# "extra_message": np.array([1, 2, 3, 4, 5, 6]).tolist() # checking external library call will succeed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we remove this line and the numpy import as weel since we are not used.

@qingchm qingchm requested a review from mingkun2020 June 8, 2022 16:47
@qingchm qingchm enabled auto-merge (squash) June 8, 2022 21:55
@qingchm qingchm merged commit c2822ba into aws:develop Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants