-
Notifications
You must be signed in to change notification settings - Fork 33
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
[E2E] Adds staking, unstaking, and sending tests #653
Conversation
* creates the e2e/tests directory for godog tests * adds a simple root command feature * adds a make target for running the e2e tests * adds godog to deps
- readme updates - adds mermaid chart to README - fixes rootDir in Tiltfile
- refactors out superfluous step defintion - cleanup
- adds the Send test - makes the Send command respect non-interactive mode CLI flags - adds the E2E design doc and updates the README - adds the E2E changelog
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest date in app/docs/CHANGELOG.md is incorrect.
Latest: 2023-03-31, Current: 2023-04-05
Latest date in build/docs/CHANGELOG.md is incorrect.
Latest: 2023-04-04, Current: 2023-04-05
Latest date in e2e/docs/CHANGELOG.md is incorrect.
Latest: 2023-03-31, Current: 2023-04-05
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
AI-Generated Pull Request Summary: This pull request introduces a new End-to-End (E2E) Testing Framework for Pocket 1.0 with a focus on behavior-driven development using Cucumber tests and Kubernetes orchestration. Various scenarios are added for validators, such as staking, unstaking, and sending POKT. The changes also include dependency updates, improvements in the passphrase input flow, and modifications to the CI/CD configurations. New documentation has been added, including a README and a CHANGELOG for the E2E framework. Lastly, there are updates to Tiltfile, Makefile, and the addition of new utility functions and binaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest date in app/docs/CHANGELOG.md is incorrect.
Latest: 2023-03-31, Current: 2023-04-05
Latest date in build/docs/CHANGELOG.md is incorrect.
Latest: 2023-04-04, Current: 2023-04-05
Latest date in e2e/docs/CHANGELOG.md is incorrect.
Latest: 2023-03-31, Current: 2023-04-05
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
AI-Generated Pull Request Summary: This pull request introduces various updates and additions across multiple files, including the implementation of the Pocket 1.0 E2E (End-to-End) Testing Framework, new test files, and updated dependencies. Changes include adding new files like |
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest date in app/client/doc/CHANGELOG.md is incorrect.
Latest: 2023-04-07, Current: 2023-04-10
Latest date in persistence/docs/CHANGELOG.md is incorrect.
Latest: 2023-04-07, Current: 2023-04-10
Latest date in rpc/doc/CHANGELOG.md is incorrect.
Latest: 2023-04-07, Current: 2023-04-10
Latest date in runtime/docs/CHANGELOG.md is incorrect.
Latest: 2023-04-07, Current: 2023-04-10
Latest date in shared/CHANGELOG.md is incorrect.
Latest: 2023-04-07, Current: 2023-04-10
Latest date in utility/doc/CHANGELOG.md is incorrect.
Latest: 2023-04-07, Current: 2023-04-10
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
AI-Generated Summary: This pull request introduces various changes across multiple files, focusing on improving governance parameters handling, adding and updating end-to-end tests, and modifying documentation. Key updates include adding conditional statements to enhance user experience, introducing new test files, modifying existing test functions, updating import statements and dependencies, and introducing new RPC functions and command-line interface capabilities. Additionally, changes have been made to the Makefile and the persistence package for better code organization and versatility. |
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
The check succeeded, dismissing the review comment.
AI-Generated Summary: This pull request includes a wide array of changes across multiple files, with a focus on end-to-end testing, updating governance parameters, and dependency upgrades. Key changes involve the introduction of a new generic framework for managing parameters in the |
- adds the Send test - makes the Send command respect non-interactive mode CLI flags - adds the E2E design doc and updates the README - adds the E2E changelog
- adds the Send test - makes the Send command respect non-interactive mode CLI flags - adds the E2E design doc and updates the README - adds the E2E changelog
- adds the Send test - makes the Send command respect non-interactive mode CLI flags - adds the E2E design doc and updates the README - adds the E2E changelog
- adds the Send test - makes the Send command respect non-interactive mode CLI flags - adds the E2E design doc and updates the README - adds the E2E changelog
- adds the Send test - makes the Send command respect non-interactive mode CLI flags - adds the E2E design doc and updates the README - adds the E2E changelog
279d0bf
to
7c19ea5
Compare
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
AI-Generated Summary: This pull request introduces a new end-to-end (E2E) testing framework for the Pocket 1.0 project, with several new files added and modifications made to existing ones. Notable changes include the addition of a binary file |
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
AI-Generated Summary: This pull request includes updates to the |
@@ -211,7 +211,7 @@ func getClientset() (*kubernetes.Clientset, error) { | |||
} | |||
clientset, err := kubernetes.NewForConfig(kubeConfig) | |||
if err != nil { | |||
return nil, fmt.Errorf("failed to get clientset from config: %w", err) | |||
return nil, fmt.Errorf("failed to12gg get clientset from config: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dylanlott Seems like a small typo merged in at the very end.
@@ -0,0 +1,229 @@ | |||
# Pocket 1.0 E2E Testing Framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dylanlott It seems like a lot of changes made to this file were reverted.
- Some of the headers are bolded again
- Ommit toc is reverted
- Dates were introduced back
- All the nits and suggestions were added back
Please re-review when you have a chance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in #663
…p-modules * pokt/main: update pocket repo read.me (#667) Update reviewpad.yml [KEYBASE] Add improve comment on keybase config (#665) [E2E] Chore: Doc updates (#663) [E2E] Adds staking, unstaking, and sending tests (#653) [Utility][RPC][CLI] Querying governance parameters (Issue #619) (#622) [Persistence][Utility] Separate all CreateAndApply functions into more functional components - Issue #508 (#652) [Persistence][Utility] Pools Address hack removal + state accessor fix for params and flags (#654) [PERSISTENCE] SavePoints and Rollbacks design document (Issue #493) (#533) Update reviewpad.yml Added ChatGPT-CodeReview workflow (#649) Update reviewpad.yml Added default reviewpad.yml file (#648) [DevNet] tweaks for remote environments (#601) [Documentation] Swap validator and non-validator triggers when finished synching (#646) [Consensus] Configuration entry point state sync (#528)
…p-modules * pokt/main: update pocket repo read.me (#667) Update reviewpad.yml [KEYBASE] Add improve comment on keybase config (#665) [E2E] Chore: Doc updates (#663) [E2E] Adds staking, unstaking, and sending tests (#653) [Utility][RPC][CLI] Querying governance parameters (Issue #619) (#622) [Persistence][Utility] Separate all CreateAndApply functions into more functional components - Issue #508 (#652) [Persistence][Utility] Pools Address hack removal + state accessor fix for params and flags (#654) [PERSISTENCE] SavePoints and Rollbacks design document (Issue #493) (#533) Update reviewpad.yml Added ChatGPT-CodeReview workflow (#649) Update reviewpad.yml Added default reviewpad.yml file (#648) [DevNet] tweaks for remote environments (#601) [Documentation] Swap validator and non-validator triggers when finished synching (#646) [Consensus] Configuration entry point state sync (#528)
Description
This PR introduces the E2E test harness and tests for Stake, Unstake, and Send commands.
make test_e2e
which callsgo test
with the proper flags and arguments to run the Cucumber E2E tests.client
binary with the cluster'skubectl exec
. This means that the test runner must have a LocalNet up and running with a properly configured Kubeconfig at the default$HOME/.kube/config
path.Issue
Fixes #466
Closes #589 (this PR achieves the same but adds more test cases)
Type of change
Please mark the relevant option(s):
List of changes
e2e/tests
directorygodog
dependency for running tests.-tags=e2e
is provided.test_e2e
that runs the E2E tests.PocketClient
single-function interface for interacting with a built binary.e2e
directory that contains documentation about how to use, develop with, and run the E2E tests.Testing
make develop_test
; if any code changes were madeStaking & Unstaking test demo 🎥
Required Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)