Michael Li
ae28bf7838
test(e2e): Update test to also use a username/password credential in vault ( #2595 )
...
* test(e2e): Add test that uses a vault username/password
* refact(e2e): Use go:embed for policy file
2022-11-08 16:45:55 -05:00
Michael Li
80cdbc305d
test(e2e): Check that an active session ends if the user is deleted ( #2588 )
...
Adds a new test to the e2e test suite that checks that an active session ends once the user is deleted.
2022-11-02 20:05:15 -04:00
Michael Li
d68d57e884
fix(e2e): Add retry when checking if session is active ( #2586 )
...
Observed some flakiness here. A test reported that the session was still "pending". Adding additional retries to ensure that it will eventually go active.
2022-11-01 18:41:56 -04:00
Michael Li
48e6156428
test(e2e): Add test that creates a group
2022-10-31 13:29:09 -04:00
Michael Li
02dc9be85f
refact(e2e): Create role functions
2022-10-31 10:36:18 -04:00
Michael Li
81bb361148
test(e2e): Add ssh localhost test ( #2579 )
...
This adds a test case where a user would do `boundary connect` in one terminal and `ssh localhost` in another to get to the target.
2022-10-28 16:36:18 -04:00
Michael Li
f4a38a7fc9
fix(e2e): Fix authentication flakiness
...
There was a misunderstanding of how goroutines work. Turns out, the goroutine uses the same keyring as the main routine, which can result in some conflicts depending on when the goroutine executes
2022-10-27 17:40:13 -04:00
Michael Li
c1449c4fd8
test(e2e): Add additional checks to credential store tests
2022-10-27 17:40:13 -04:00
Michael Li
935cc830aa
test(e2e): Add test for vault using the connect authz-token option
2022-10-27 17:40:13 -04:00
Michael Li
0424d379cf
refact(e2e): Reorganize test directory
...
Rearranges the directory structure to align better with the enos scenarios. Tests will now be added in the `tests` directory, with a folder in the directory corresponding to an enos scenario.
2022-10-27 17:40:13 -04:00
Johan Brandhorst-Satzkorn
f57454b6b9
Rewrite interface{} to any ( #2535 )
...
* chore: Rewrite interface{} to any
* Add ignore revs
2022-10-25 19:29:38 -04:00
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
ab223493a3
fix(e2e): Remove unused code
2022-10-20 10:52:11 -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
01301cd32a
fix(e2e): Add missing requires
2022-10-19 10:46:57 -04:00
Michael Li
d8448d2184
doc(e2e): Fix typo
2022-10-12 09:49:08 -04:00
Michael Li
f9dfd024ed
doc(e2e): Add info for adding tests
2022-10-12 09:49:08 -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
Michael Li
8fe0d13caa
test(e2e): Add vault tests
...
Adds the first set of vault tests. This test sets up vault as a credential store and creates a set
of credentials for a target.
2022-09-27 12:21:10 -04:00
Michael Li
21e4b70e27
test(e2e): Add end-to-end tests (connect to first target)
...
This adds the initial end-to-end tests. These tests validate the admin workflow
of setting up their first target
2022-09-16 15:30:12 -04:00