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

General Ginkgo E2E test framework + Teleporter test cases #93

Merged
merged 216 commits into from
Nov 28, 2023
Merged

Conversation

cam-schultz
Copy link
Contributor

@cam-schultz cam-schultz commented Oct 31, 2023

Why this should be merged

The E2E tests currently spin up a local network and run the tests in a Ginkgo container environment. This PR adds the ability to run the same E2E tests against any network, such as a set of subnets deployed on Fuji.

This PR also serves as a dev branch for the test cases implemented in the PRs listed in #94. Once all of those test cases are implemented and merged here, this PR will be eligible to merge to main.

How this works

Adds a Network interface that may be implemented to point to any network. Adds a layer of indirection in the Ginkgo E2E entrypoint to inject the local network implementation. A Fuji implementation may similarly be provided.

How this was tested

E2E tests, CI. Successfully ran E2E tests against live Fuji subnets.

How is this documented

Added a README section describing how to implement and use Network to generalize the E2E tests.

tests/network/example_fuji_network.go Outdated Show resolved Hide resolved
tests/network/example_fuji_network.go Outdated Show resolved Hide resolved
tests/utils/utils.go Outdated Show resolved Hide resolved
tests/utils/network_setup.go Outdated Show resolved Hide resolved
Copy link
Contributor

@bernard-avalabs bernard-avalabs left a comment

Choose a reason for hiding this comment

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

LGTM. I left some (very) minor formatting comments. I'm not sure if the extra empty lines are intentional. Please disregard if they are.

tests/basic_send_receive.go Outdated Show resolved Hide resolved
tests/basic_send_receive.go Outdated Show resolved Hide resolved
tests/deliver_to_wrong_chain.go Outdated Show resolved Hide resolved
tests/receive_message_twice.go Outdated Show resolved Hide resolved
tests/unallowed_relayer.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@michaelkaplan13 michaelkaplan13 left a comment

Choose a reason for hiding this comment

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

LGTM!

A handful of the outstanding TODOs should be taken care of in #132 once I'm able to update it with the latest changes from here.

geoff-vball
geoff-vball previously approved these changes Nov 27, 2023
geoff-vball
geoff-vball previously approved these changes Nov 27, 2023
Copy link

@minghinmatthewlam minghinmatthewlam left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@geoff-vball geoff-vball left a comment

Choose a reason for hiding this comment

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

👍

@gwen917 gwen917 merged commit 0ce149b into main Nov 28, 2023
12 checks passed
@gwen917 gwen917 deleted the general-e2e branch November 28, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants