Commit Graph
100 Commits
Author SHA1 Message Date
Michael Li 9398248c32 test(e2e): Add user name to AWS resources (#5149)
This change makes it easier to identify who generated these resources when looking at the AWS console
2024-10-07 14:12:00 -04:00
Irena Rindos 35679c6a5b chore(config): remove deprecated controllers field (#5125)
* chore(config): remove deprecated controllers field
2024-09-23 11:45:34 -04:00
Michael Li edd7ec62f8 test(e2e): Add support for an hcp worker (#4939) 2024-07-23 10:59:39 -04:00
Michael Li 80abefda1b chore(e2e): Add audit logs to aws boundary instances (#4924) 2024-07-09 11:32:49 -04:00
Michael Li 6e5fd945a3 chore(e2e): Add instance ips to output (#4913) 2024-07-09 10:34:17 -04:00
Michael Li 1909889a6f chore(e2e): Define docker attributes to prevent forced replacement on second launch (#4918)
* chore(e2e): Define settings to prevent forced replacement

On a second `terraform apply`, there were a few attributes forcing the replacement (i.e. regeneration) of the resource. This commit defines some attributes explicitly to prevent the regeneration from occurring.

* chore(e2e): Add extra timeout for openssh server
2024-07-08 10:08:34 -04:00
Michael Li 8b45b1c515 chore(e2e): Add boundary to path (#4901)
This adds the boundary application to the path on the respective ec2 instances.
2024-06-24 14:01:58 -04:00
Michael Li 333b9e855d chore(e2e): Use public version of enos (#4872)
* chore(e2e): Use public version of enos

* chore(e2e): Move vault module to this repo

terraform-enos-aws-vault is no longer supported
2024-06-10 11:13:09 -04:00
Michael Li d408f65519 test(e2e): Add support for dynamic credentials (#4878)
These changes are necessary to enable testing of dynamic credentials when creating storage buckets.
2024-06-07 12:05:11 -04:00
Michael Li 3da1615ddb test(e2e): Add check for ldap account attribute mapping (#4867) 2024-06-04 14:24:15 -04:00
Michael Li 61db074b1e chore(e2e): Clean up UI docker scenario (#4843)
* chore(e2e): Remove unused worker token

* chore(e2e): Remove unused variable
2024-06-04 13:03:41 -04:00
Michael Li 8dd419ab85 chore(e2e): Add minio variables to UI test module (#4840) 2024-05-29 17:11:37 -04:00
Michael Li 69dfeacc55 chore(e2e): Remove call to tparse (#4817) 2024-05-23 09:54:27 -04:00
Michael Li 3733af2163 test(e2e): Add support for credential rotation in minio buckets (#4744)
* test(e2e): Update minio module to add permissions for credential rotation

* test(e2e): Add minio user id to test suite
2024-04-29 14:57:48 -04:00
Michael Li 1416ac5e07 test(e2e): Add module for iam user with credential rotation support (#4718) 2024-04-25 11:59:45 -04:00
Michael Li 400e36ee21 test(e2e): Update postgres version (#4701)
15.3 is no longer available
2024-04-23 12:16:45 -04:00
Michael Li d0997661d0 chore(e2e): Increase timeout when setting up container (#4661)
When setting up the docker container in this module, there's a an additional script that runs (00-trust-user-ca) that takes some time to execute. This can occasionally take longer than the current 20s timeout, so we are bumping it here
2024-04-19 09:46:56 -04:00
Michael Li 69d686bc9a test(e2e): Set a minio alias in the container (#4646)
This alias will be used by commands in a test when using the minio client. An alias needs to be defined in order for commands like retrieving an object from the bucket to work successfully.
2024-04-16 15:22:05 -04:00
Michael Li d4e314cde8 test(e2e): Remove leftover debug line (#4588) 2024-04-02 12:02:21 -04:00
Michael Li cb28fe4296 test(e2e): Add module for minio docker container (#4578) 2024-03-29 10:27:39 -04:00
Michael Li b251e7a8b9 chore(e2e): Add session recording resources for UI tests (#4498) 2024-03-14 10:09:51 -04:00
Michael Li 4158993a4d chore(e2e): Bump timeout to 25m (#4489)
There have been a few instances where the e2e tests runtime hit this limit. For now, we will update the timeout to make things pass more regularly. There will also be some additional activity to reorganize the e2e tests as runtime has become too long.
2024-03-06 17:23:31 -05:00
Michael Li ad6893e039 test(e2e): Provide public ca key to UI tests (#4478) 2024-03-04 15:24:39 -05:00
Michael Li 72d4f1142b test(e2e): Use vault server instead of vault dev (#4453) 2024-03-04 14:30:00 -05:00
Michael Li 61fb079371 test(e2e): Add test for authentication when no keyring is available (#4378) 2024-02-09 13:07:17 -05:00
Michael Li 293952a698 test(e2e): Fix where max_page_size is defined (#4381) 2024-02-08 16:42:07 -05:00
Michael Li 31ca969f4f Revert "chore(e2e): Remove need for tparse (#4326)" (#4362)
This reverts commit f18bc5262f.
2024-02-05 17:48:00 -05:00
Michael Li f18bc5262f chore(e2e): Remove need for tparse (#4326) 2024-02-05 16:14:42 -05:00
Johan Brandhorst-Satzkorn c334ec700c enos: support max_page_size in AWS scenarios (#4352) 2024-02-02 09:21:21 -08:00
Michael Li 629ed661b3 chore(e2e): Fix iam user creation (#4287) 2024-01-25 11:55:14 -05:00
dani a2c7bc8545 fix(e2e): update enos policies to include s3:ListBucket (#4255) 2024-01-19 12:27:45 -05:00
Louis Ruch 957cd59d91 test(e2e): Update e2e timeout (#4241) 2024-01-17 09:45:34 -08:00
Michael Li 3bf925ca32 test(e2e): Decrease rate limit in config (#4183) 2024-01-05 07:43:21 -08:00
Johan Brandhorst-SatzkornandMichael Li 6198fe279e Target pagination e2e test (#4010)
* testing/e2e: Use a separate config file for database init

The other config file contains templated parameters, which was causing
errors when loading the config file, even though the values were never
used.

* testing/e2e: add target pagination test

Exercises target pagination both over the CLI and the API. These tests
run in <10s on my machine, though they each involve creating 1000
targets (with current defaults).

---------

Co-authored-by: Michael Li <michael.li@hashicorp.com>
2024-01-05 07:43:20 -08:00
Michael Li ec8902ec68 test(e2e): Add docker-based infra scenario for Admin UI tests (#4166)
* chore(e2e): Add docker-based scenario for Admin UI tests

* test(e2e): Trim space in worker_led_token output
2023-12-22 10:10:29 -05:00
Michael Li b696f1653d test(e2e): Add worker ip to aws tests (#4153) 2023-12-14 13:48:29 -05:00
Michael Li 600a2dff24 test(e2e): Add rate limit test (#4135) (#4143)
* test(e2e): Add rate limit test (#4135)

(cherry picked from commit 9bf350d622a14ea39feaca29861c738a5deff9bb)

* test(e2e): Modify rate limit test due to timing issues (#4145)

The rate limit test was running into failures due to some hard-coded assumptions (waiting for a command to last longer than 3 seconds to determine if the CLI auto-retried). This change makes it more resilient.

(cherry picked from commit 3535f15922c37fda5457f02cf8ae894203359042)
2023-12-13 10:17:04 -05:00
Michael Li 093f889333 test(e2e): Add test for LDAP (#4061)
* test(e2e): Add test for LDAP

This adds the infrastructure and a test for an LDAP workflow

* test(e2e): Refactor test packages

This reduces the number of scenarios needed

* CR

* fixup! test(e2e): Add test for LDAP
2023-11-28 16:25:26 -05:00
Michael Li b0127116f3 test(e2e): Add test for worker-led worker registration (#4014)
* refact(e2e): Create module to run boundary commands

* test(e2e): Add worker-led registration test
2023-11-09 09:55:47 -05:00
Michael Li 466b5e20ea test(e2e): Add support for -additional-valid-principals test (#3966)
* test(e2e): Remove unnecessary error checks

* test(e2e): Install docker cli in test runner
2023-10-31 17:06:14 -04:00
Michael Li f0a4bce17c test(e2e): Add test for controller-led worker registration (#3882)
* test(e2e): Add test for controller led worker registration

* chore(e2e): Rename log files to ensure uniqueness

This updates the log files to be based on the scenario name instead of just the test package in case some scenarios run the same test package
2023-10-30 09:48:08 -04:00
Michael Li 752f20fa27 test(e2e): Wait until target ec2 instance is ready to be used (#3910) 2023-10-24 18:20:02 -04:00
Michael Li 29a4d8c4d9 test(e2e): Change deadlock timeout to default (#3874)
This was occasionally causing some flaky behavior in tests. Removing this setting to use the default timeout value.
2023-10-20 14:03:11 -04:00
Michael Li 578d87081a test(e2e): Add test with scp operations (#3812)
* chore(e2e): Allow ssh to targets to assist with debugging

* test(e2e): Add test with scp operations

* CR: Use io.CopyN to optimize memory allocation

This mitigates the need to allocate a 256K string
2023-10-10 14:55:51 -04:00
Michael Li 9c9e033271 chore(enos): Move terraform-enos-aws-boundary to boundary (#3773)
* chore(enos): Move `terraform-enos-aws-boundary` to `boundary`

* chore(enos): Rename module tag

* chore(enos): Refactor module names

* fixup! chore(enos): Move `terraform-enos-aws-boundary` to `boundary`

* fixup! chore(enos): Move `terraform-enos-aws-boundary` to `boundary`

* chore(enos): Refactored hard-coded module tag
2023-10-10 09:28:04 -04:00
Michael Li 16a29ae9ab chore(enos): Provide boundary edition when building UI (#3781) 2023-09-27 17:40:45 -04:00
Michael Li 12c12f378a chore(enos): Move terraform-enos-aws-infra to boundary (#3745)
* chore(enos): Move terraform-enos-aws-infra to boundary

The terraform-enos-aws-infra repo was a terraform module to set up the base aws infrastructure. Vault made some local updates that might mitigate flakiness we've been seeing ("can't delete due to dependencies" error). We are replacing our usage of that module Vault's local copy.

* chore(enos): Modify service user to allow DeleteRoute

* fixup! chore(enos): Move terraform-enos-aws-infra to boundary

* chore(enos): Rename variable for clarity
2023-09-20 11:07:50 -04:00
Michael Li 72efe74f24 test(e2e): Add worker health check when setting up infra (#3708)
* test(e2e): Add worker health check when setting up infra

* test(e2e): Set limits on postgres container

This was done to potentially reduce some load on runners
2023-09-13 10:20:57 -04:00
Michael Li e552b12f22 test(e2e): Add missing proxy listener to config file (#3715) 2023-09-12 18:44:53 -04:00
Michael Li ff34cb629e test(e2e): Add a test for a single-hop worker (#3690)
* refact(e2e): Add env for workers

* test(e2e): Add test for single-hop worker

* fixup! refact(e2e): Add env for workers

* fixup! test(e2e): Add test for single-hop worker

* fixup! test(e2e): Add test for single-hop worker

* fixup! test(e2e): Add test for single-hop worker

* fixup! test(e2e): Add test for single-hop worker
2023-09-11 14:25:32 -04:00