Commit Graph
2480 Commits
Author SHA1 Message Date
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
stephan242 220456d092 Remove duplicate sentence (#2560) 2022-10-25 11:14:50 -04:00
Irena Rindos 2ab6ca6a84 Remove unrelated error from error message (#2558) 2022-10-24 12:23:59 -04:00
Todd 73f7004c74 Add RLocks for all read access to s.connInfoMaps in a session (#2553)
* Add RLocks for all read access to s.connInfoMaps in a session
2022-10-20 14:05:27 -07:00
Michael Li 8af92997c8 Merge pull request #2549 from hashicorp/moduli-flaky-bats-credential-store-ICU-6336
test(e2e): Fix flaky test in `credential_stores.bats`
2022-10-20 15:00:47 -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
PPacent d2572a343c Fixing dead link for OSS getting started
Fixing dead link for OSS getting starte
2022-10-19 21:12:25 -07:00
Todd c2d02966c6 When checking authorized actions, read the worker we created for the test. (#2548) 2022-10-19 11:02:09 -07:00
Michael Li 43f2ec54f5 Merge pull request #2541 from hashicorp/moduli-session-test-ICU-6405
test(e2e): Add "Connect via Authz-Token" and "Session Canceling" tests
2022-10-19 12:58:37 -04:00
HashiBot 9123551390 chore: Update Digital Team Files + clear redirects (#2547)
This is in support of the Boundary GA rollout to https://developer.hashicorp.com
2022-10-19 12:20:29 -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
Jeff Mitchell 37273d7a9c Fix two items: (#2544)
* Randomize order of worker output. This uses the standard
  rand.Shuffle() call; cribbed from
  https://pkg.go.dev/math/rand#example-Shuffle
* Have some error/eventing in the worker status path use the base
  context instead of the status-call-specific context to allow eventing
  after a timeout event
2022-10-18 16:57:07 -04:00
Michael Li 16e90ddd35 fix(bats): Fix flakiness in sessions.bats tests (#2537)
The sessions.bats tests were seeing some flaky behavior when listing sessions but not getting the expected amount back. This is due to the connect_nc command that is currently used, which will immediately set the session to be "canceled" once it returns. This can cause subsequent operations to  get unexpected results (sometimes, listing sessions would return an empty list if the created sessions go to a "terminated" state).
2022-10-17 10:27:35 -04:00
Haotian 3be8b6efed refactor(metric): move common metrics functions out of 'internal' directory (#2536) 2022-10-12 11:04:32 -07:00
Mariano Asselborn 40fa1bbb18 Enable Iron Bank integration (#2530) 2022-10-12 12:12:22 -04:00
hashicorp-copywrite[bot]andCalebAlbers bbf5e9de33 Add or update MPL 2.0 license (#2533)
Co-authored-by: CalebAlbers <CalebAlbers@users.noreply.github.com>
2022-10-12 12:05:15 -04:00
Michael Li a0cd3d17c4 Merge pull request #2527 from hashicorp/moduli-remove-enos-smoke-test
test(e2e): Port enos smoke test to e2e test suite
2022-10-12 10:34:58 -04:00
Josh Brand 0857cbb663 fix(e2e): Add missing project tags for targets 2022-10-12 09:49:08 -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
Todd fa39fe5b0f Delete the base auth account when a concrete auth account is deleted (#2528) 2022-10-11 16:59:52 -07:00
Todd 1437d5452d Filter out null named workers when looking up the worker id in bats (#2531) 2022-10-11 14:01:20 -07:00
Todd c9d902ebd0 Add worker create, list, read, update, and delete cli ui tests. (#2384) 2022-10-10 12:37:17 -07:00
Michael Li 007ef4d9ef Merge pull request #2502 from hashicorp/manthony-ICU-5928
Extend enos-run.yml to cover E2E testing
2022-10-07 13:32:42 -04:00
Michael Li a12846d9af refact(enos): Increase clarity in module variable name
This variable defines the IP address of a target used in tests. We should pass in the address itself instead of a list of addresses that will get converted to a single address eventually anyways.
2022-10-06 18:35:23 -04:00
871cf0b963 chore: Add workflow for e2e tests
This adds a github actions workflow to run the new e2e test suite

Co-authored-by: Michael Anthony <manthony@hashicorp.com>
Co-authored-by: Josh Brand <jbrand@hashicorp.com>
2022-10-06 18:35:23 -04:00
HashiBotandBryce Kalow 848ad63cdf Upgrade next version (#2526)
Co-authored-by: Bryce Kalow <bkalow@hashicorp.com>
2022-10-06 13:51:30 -05:00
Timothy Messier f39833ebad chore: Add downstream merge triggers (#2524)
Trigger a downstream merge. This requires that the DOWNSTREAM_SLUG
environment variable is set in CircleCI. This will trigger downstream
merges for main and all release branches.
2022-10-06 13:38:27 -04:00
Michael Li 51de0878c3 Merge pull request #2506 from hashicorp/moduli-e2e-host-aws
Add AWS Dynamic Host Catalog e2e test
2022-10-05 14:23:28 -04:00
Michael Li 0afef63dca refact(e2e): Use envconfig's required property 2022-10-05 11:54:16 -04:00
Michael LiandJosh 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