Michael Li
57ffc71849
refact(e2e): Add context as an argument for cli methods
...
This was done have some alignment with the corresponding api methods as well as matching standard Go conventions.
2022-10-25 16:23:52 -04:00
Michael Li
a956e8dec9
refact(e2e): Add WithEnv option to RunCommand
...
This was done to keep the scope of environment variables to just the command execution
2022-10-25 16:23:52 -04:00
Michael Li
1cc2b0b820
doc(e2e): Update typo in comments
2022-10-25 16:23:52 -04:00
Michael Li
6bd168b2a3
test(e2e): Add test that creates a user with the right permissions to start a session
2022-10-25 16:23:52 -04:00
Michael Li
07b16e877c
refact(e2e): Rename original session cancelling test
2022-10-25 16:23:52 -04:00
Michael Li
5d795e6104
refact(e2e): Add support for authenticating as any user
2022-10-25 16:23:52 -04:00
Michael Li
5b0ff4f058
test(e2e): Port "credential stores deletion check" from bats test to e2e test suite
...
The "can not read deleted $NEW_STORE static store" bats test was demonstrating flaky behavior where it would fail due to the credential store read still returning something valid. This check has been moved to an e2e test in order to add some retry logic to the check.
2022-10-20 13:47:46 -04:00
Michael Li
79bc3d4878
refact(e2e): Create credential store function
2022-10-20 13:47:46 -04:00
Michael Li
56ed25a88c
test(e2e): Rename file for clarity
2022-10-20 10:47:07 -04:00
Michael Li
a4e27d877d
refact(e2e): Update RunCommand to have context argument
2022-10-19 10:46:57 -04:00
Michael Li
84aa65ccc5
test(e2e): Add test that cancels a session
2022-10-19 10:46:57 -04:00
Michael Li
cb3f057878
test(e2e): Add test that uses connect authz-token option
2022-10-19 10:46:57 -04:00
Michael Li
ff960e1fb1
refact(e2e): Rename files for consistency
2022-10-19 10:46:57 -04:00
Michael Li
618eca19f5
refact(e2e): Create functions for commonly used operations
...
Many tests had duplicate code to create the base level domain objects in a boundary environment. This commit refactors that code to use functions for these commonly used operations.
2022-10-19 10:46:57 -04:00
Michael Li
051d337b21
refact(e2e): Move logging to helper function
2022-10-19 10:46:57 -04:00
Michael Li
1f87da9fd4
fix(e2e): Fix comment typo
2022-10-19 10:46:57 -04:00
Michael Li
719200612d
refact(e2e): Remove use of AwsHostSetCount env
...
Instead of passing in the number of hosts created for a host set, we can just use the length of the IP addresses to determine that value.
2022-10-12 09:49:08 -04:00
Michael Li
5365b29007
refact(e2e): Port enos smoke test into e2e test suite
...
This adds a test case to the e2e test suite and unifies where testing is located.
2022-10-12 09:49:08 -04:00
Michael Li
1361c3cc6d
refact(e2e): Move environment variables into its own file
2022-10-12 09:49:08 -04:00
Michael Li
86dafced1a
fix(e2e): Add missing require
2022-10-12 09:49:08 -04:00
Michael Li
0afef63dca
refact(e2e): Use envconfig's required property
2022-10-05 11:54:16 -04:00
Michael Li and Josh Brand
da0fb9d38a
test(e2e): Add dynamic host catalog test (AWS)
...
This adds the initial set of tests that validate setting up a dynamic host catalog on AWS
Co-authored-by: Josh Brand <jbrand@hashicorp.com >
2022-10-05 11:54:16 -04:00