Commit Graph
289 Commits
Author SHA1 Message Date
Michael Li e19c5472f9 test(e2e): Fix cassandra e2e test (#2548) (#6739)
* chore(e2e): Parallelize installation steps

* chore(e2e): Install missing dependencies

* test(e2e): Improve resiliency of assertions

* CR
2026-05-21 12:58:27 -04:00
Irena Rindos dfce6557d4 chore: replace docker with moby and update opentelemetry (#6717) 2026-05-14 10:43:19 -04:00
dillanb-hashi 0396adc690 test(e2e): Updated testing helper functions for rdp tests (#6686)
* test(e2e): Updated testing helper functions for rdp tests
2026-05-06 13:56:30 -07:00
Anton Averchenkov 5e6c9eecbe Clean up loop captures in tests (#6592)
* Clean up loop captures

* some more
2026-05-01 12:34:33 -04:00
Louis Ruch bb806026b3 feat(pprof): Enable pprof endpoints behind flag (#6644) 2026-04-27 09:35:40 -07:00
Michael Li 0d4ff79f0b test(e2e): Use vault version from variable (#6589) 2026-04-15 14:18:24 -04:00
Michael Li e3f19279c7 fix(e2e): Add debug for flaky bytes up down test (#6572)
* fix(e2e): Increase number of tries in bytes up down test

* test(e2e): Additional debug
2026-04-10 09:19:24 -04:00
Michael Li 4eec5ce0e1 test(bats): Fix flaky connect helper methods (#6535)
* test(bats): Fix flaky connect helper methods

* test(bats): Add more debug

* chore: Fix copywrite headers
2026-04-08 12:34:13 -04:00
Michael Li 1ba947d731 ce: Add infrastructure needed to test worker ssh known hosts (#6554)
(cherry picked from commit d022d7daf62623e5cca9c45cd234fd980d5baa9c)
2026-04-08 11:39:59 -04:00
aditya2548 f8363dd06e [COMPLIANCE] Update Copyright & License Headers 2026-04-06 15:48:57 +05:30
Tony 7b0e391d76 Open test(e2e): fix invalid port for TestCliTcpTargetConnectPending 2026-03-24 10:57:45 -04:00
Michael Li 21f67743d2 test(e2e): Add missing context (#6534) 2026-03-24 10:32:28 -04:00
Michael Li 147dcaafb7 fix(e2e): Address TestCliSearch flakiness (#6496)
* refact(e2e): Create start/stop cache methods

* fix(e2e): Address potential flake

* CR

* CR: Improve check

* CR
2026-03-23 15:03:53 -04:00
Tony 0f9307c0ae test(e2e): Add test for idle pending tcp connect session (#6492) 2026-03-17 10:59:21 -04:00
Michael Li 67f9815c64 chore(e2e): Remove need to modify /etc/hosts (#6486)
* ce: chore(e2e): Remove need for /etc/hosts modifications

(cherry picked from commit df230ea09af3d006db006487ebd644a0d3dd76f2)

* ce: test(e2e): Fix test that was failing

(cherry picked from commit 310ebf2a9b6c7427c1ff6c1c9e9045c1deb13a40)
2026-03-16 10:24:32 -04:00
Michael Li 4a7c954fcd test(e2e): Increase wait time for containers to be ready (#6461) 2026-03-06 11:27:35 -05:00
Michael Li f116a70b7d test(e2e): Move paginate test to its own file (#6440) 2026-02-17 09:54:29 -05:00
Michael Li 1dce1784a3 fix(e2e): Increase amount of time test checks for bytes up down data (#6401) 2026-02-03 15:38:17 -05:00
dillanb-hashi 8dd309771a test(e2e): Randomized project name in tests (#6399)
* test(e2e): Randomized project name in tests
2026-02-03 10:41:01 -07:00
Tony 5175af85d2 test(e2e): vault creds escape '@' for password (#6388) 2026-01-30 15:54:51 -05:00
429247f407 [COMPLIANCE] Update Copyright Headers (#6282)
* [COMPLIANCE] Update Copyright and License Headers

* chore: make gen to generate files with copyright headers

* chore: update missed copyright headers

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
2026-01-28 11:05:07 -06:00
Michael Li 3e3ecd59c9 test(e2e): Reorganize tests to improve CI runtime (#6377) 2026-01-26 17:33:13 -05:00
Michael Li 06af2baf31 test(e2e): Move postgres info to other variables (#6367) 2026-01-23 15:19:03 -05:00
Michael Li a7688470dd test(e2e): Address issue when password starts with @ (#6358)
(cherry picked from commit 00e6359b59d798dd988445f92e49f4fa8409b2b8)
2026-01-22 10:55:40 -05:00
Tony 29ba92e453 chore(e2e): update e2e tests to use t.Context() (#6316) 2026-01-06 17:05:30 -05:00
Tony 5560121c3b chore(e2e): fix linting errors for e2e files (#6307) 2025-12-23 12:13:41 -05:00
dillanb-hashi 9c6ff824c6 test(e2e): Fixed failing database migration test (#6299) 2025-12-12 09:54:43 -07:00
Michael Li 6a0de4337b ce: test(e2e): Add connect method that can work in windows
(cherry picked from commit 6aa5469160e81e5bb8bf38c8cf6ed0c34d6d81f5)
2025-11-18 14:36:26 -05:00
Tony 94c32d2173 ce: refact(e2e): Update WaitForSessionCli to accept e2e options
(cherry picked from commit ab3b5fb361e6f2f854f24306979565a28664fc0a)
2025-11-18 14:36:08 -05:00
Bharath Gajjala c39a50570a fix(db): vault password library migration adjustments and mapping overrides (#6229) 2025-11-13 12:49:25 -08:00
Justin Nguyen 1ac444d0a8 feat(cli): Add support for password credential in redis helper (#6213) 2025-11-13 12:28:54 -08:00
dillanb-hashi d0050ad881 refact(e2e): Enable token to be passed into methods (#6248)
* ce: chore(e2e): Address setup flakiness when getting hostname
* ce: refact(e2e): Enable token to be passed into methods
Co-authored-by: Michael Li <michael.li@hashicorp.com>
2025-11-13 13:19:33 -07:00
Tony 8a7f241107 chore(e2e): Add helper func ConnectCliStdoutPipe (#6243) 2025-11-12 12:47:44 -05:00
Tony f3d44ba817 chore(e2e): update vault create credential funcs (#6239) 2025-11-11 13:07:11 -05:00
Michael Li b3c6cb7929 test(e2e): Add RDP test for Vault LDAP (ce commits) (#6237)
* refact(e2e): Add error output to SetupLdapWithOpenLdap

(cherry picked from commit 12874ec3227500ac03ece452e342f44d9f1ebc7a)

* test(e2e): Add method for setting up vault ldap with active directory

(cherry picked from commit 4f0fe7bba78d25005a5d98e203a3d0bc037a2b69)

* chore(e2e): Add domain controller ipv6 address to e2e tests

(cherry picked from commit 3215194053cd82a4e650522e56f4699946f62ef3)
2025-11-10 13:31:47 -05:00
Hugo 3de584cafa refact(e2e): Split Vault Boundary Controller setup from secrets policy creation 2025-11-05 16:20:44 -05:00
Hugo 9575d5f239 test(e2e): Implement Vault LDAP API and CLI tests 2025-11-05 16:20:44 -05:00
Hugo bbef89b371 feat(dbtest): Add option to create DB based off boundary_template 2025-11-05 16:20:12 -05:00
Michael Li 06d69f699e refact(e2e): Rename credential methods for clarity (#6219)
* refact(e2e): Rename method to usernamepassworddomain

* refact(e2e): Rename method to usernamepassword
2025-11-04 14:29:05 -05:00
4078838f56 feat(mongo): Add MongoDB connection support for Boundary CLI PORT (#6069)
* feat(mongo): add mongo for boundary cli

* Fix: remove changes added by mistake during testing

* feat(enos): install MongoDB client (mongosh) in e2e Docker test runtime

* Remove explicit Boundary DB/server startup from target_tcp_connect_mongo_test.go

* Add a full stop and trigger CI

* feat: add mongosh support to boundary connect mongo

* feat: add mongosh support to boundary connect mongo

* feat: add auth-source flag for MongoDB connect command

- Add -auth-source flag with default value 'admin' for root users
- Add BOUNDARY_CONNECT_MONGO_AUTH_SOURCE environment variable support
- Update documentation with new flag and correct mongosh default
- Improve MongoDB test with explicit auth-source parameter
- Fix Docker configuration formatting for better readability

This ensures MongoDB root users authenticate against the admin database
by default while allowing flexibility for custom authentication databases.

* test(e2e): Fixed false positive in Mongo connect test; use UriNetwork and container hostname

* make gen

* fix: Removed unnecessary variable containerName from the MongoDB E2E test

* feat(connect/mongo): Build URI compatible with mongosh and set default authSource

* feat(connect/mongo): use mongosh flags following PostgreSQL pattern

* remove 'connection string' from auth-source usage text

* Update internal/cmd/commands/connect/mongo.go

Co-authored-by: Bharath Gajjala <120367134+bgajjala8@users.noreply.github.com>

* remove 'connection string' from auth-source usage text

* refacotr: replace authSource flag with authenticationDatabase

---------

Co-authored-by: Enbiya <100806254+enbiyagoral@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2025-10-09 11:13:47 -05:00
Michael Li 710337eaee test(e2e): Add test for connect redis (#6102) 2025-10-02 11:16:53 -04:00
Michael Li a3bb48e4d4 fix(e2e): Address flakes in TestCliSearch (#6080)
* fix(e2e): Address flake in session count

There was a failure where this returned 1 session when the test expected 0. This commit updates the search to only look at sessions within the created project in this test.

* fix(e2e): Address flake in cache status

This commit addresses a flake where the test attempted to stop and start a cache, but when it goes to start the cache, it claims that the cache is already running. A theory is that the test tries start the cache too quickly after stopping it. Now, we add in a status call to check the status of the cache before proceeding.
2025-09-30 09:20:02 -04:00
Justin Nguyen 4548028efe ICU-14484: redis connect helper (#6001)
* add redis connect support
* Setup redis in docker for e2e testing
* Update docs and changelog
* Commenting out e2e tests for now, will revisit in a separate task
2025-09-19 16:20:11 -05:00
dependabot[bot]andJohan Brandhorst-Satzkorn 959fe3ebd3 chore(deps): bump the go group across 7 directories with 5 updates (#6035)
* chore(deps): bump the go group across 7 directories with 5 updates

Bumps the go group with 4 updates in the / directory: [github.com/coder/websocket](https://github.com/coder/websocket), [github.com/docker/docker](https://github.com/docker/docker), [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) and [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt).
Bumps the go group with 2 updates in the /api directory: [github.com/coder/websocket](https://github.com/coder/websocket) and [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary).
Bumps the go group with 1 update in the /plugins/boundary/mains/aws directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary).
Bumps the go group with 1 update in the /plugins/boundary/mains/azure directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary).
Bumps the go group with 1 update in the /plugins/boundary/mains/gcp directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary).
Bumps the go group with 1 update in the /plugins/boundary/mains/minio directory: [github.com/hashicorp/boundary/sdk](https://github.com/hashicorp/boundary).
Bumps the go group with 1 update in the /sdk directory: [github.com/coder/websocket](https://github.com/coder/websocket).

Updates `github.com/coder/websocket` from 1.8.13 to 1.8.14
- [Release notes](https://github.com/coder/websocket/releases)
- [Commits](https://github.com/coder/websocket/compare/v1.8.13...v1.8.14)

Updates `github.com/docker/docker` from 28.3.3+incompatible to 28.4.0+incompatible
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.3.3...v28.4.0)

Updates `github.com/prometheus/client_golang` from 1.23.0 to 1.23.2
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.23.0...v1.23.2)

Updates `mvdan.cc/gofumpt` from 0.8.0 to 0.9.0
- [Release notes](https://github.com/mvdan/gofumpt/releases)
- [Changelog](https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mvdan/gofumpt/compare/v0.8.0...v0.9.0)

Updates `github.com/coder/websocket` from 1.8.13 to 1.8.14
- [Release notes](https://github.com/coder/websocket/releases)
- [Commits](https://github.com/coder/websocket/compare/v1.8.13...v1.8.14)

Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases)
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55)

Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases)
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55)

Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases)
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55)

Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases)
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55)

Updates `github.com/hashicorp/boundary/sdk` from 0.0.54 to 0.0.55
- [Release notes](https://github.com/hashicorp/boundary/releases)
- [Changelog](https://github.com/hashicorp/boundary/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/boundary/compare/api/v0.0.54...api/v0.0.55)

Updates `github.com/coder/websocket` from 1.8.13 to 1.8.14
- [Release notes](https://github.com/coder/websocket/releases)
- [Commits](https://github.com/coder/websocket/compare/v1.8.13...v1.8.14)

---
updated-dependencies:
- dependency-name: github.com/coder/websocket
  dependency-version: 1.8.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/docker/docker
  dependency-version: 28.4.0+incompatible
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.23.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: mvdan.cc/gofumpt
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/coder/websocket
  dependency-version: 1.8.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
  dependency-version: 0.0.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
  dependency-version: 0.0.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
  dependency-version: 0.0.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
  dependency-version: 0.0.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/hashicorp/boundary/sdk
  dependency-version: 0.0.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/coder/websocket
  dependency-version: 1.8.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>

* Format files with latest gofumpt

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2025-09-08 15:17:46 -04:00
Hugo e8a5c5c80d feat(e2e): Common API/CLI functions for targets 2025-09-02 15:13:27 -04:00
Hugo 288f505482 refact(e2e): Modify CreateTargetApi to support different target types 2025-09-02 15:13:23 -04:00
Andrew Gaffney 822d1a7494 test(e2e): Static/vault-generic Username-Password-Domain tests (#1538) 2025-09-02 15:12:42 -04:00
Ryan DerrandBharath Gajjala 4d3cb76c28 Cassandra Connect Support (#5952)
* Init cassandra

* Init cassandra

* Initial Cassandra Command Support For cqlsh

* Add Make Gen

* adding cassandra test

* Cleanup cassandra docker setup

* Adding container wait

* Container restart

* Minor Fix

* Cleanup docker and test

* Adding final tests

* Removing comment

* Fixing cleanup (uncomment)

* Removing bad yaml

* Cleanup

* Cleanup

* Adressing PR review comments

* Adding test support

* fix spacing

* Adding changelog

* docs

* docs

* adding cassandra page

* nav

* Versbose commenting

* cleanup naming of file

* updating helper func to return errors

* doc change

* Removed an incorrect comment and now passing the config by reference.

* Comment cleanup

* Fix option warning in cassandra connect command (#5951)

* Add healthcheck to caller function as it's resposible for container health

* Resolve Comments

* Update Log Typo

---------

Co-authored-by: Bharath Gajjala <120367134+bgajjala8@users.noreply.github.com>
2025-07-30 16:21:11 -05:00
Richard Trinh d621219340 bug: fix multiple connections to same listen port hanging CLI (#5939)
* fix: return error when listen port already in use

* add err handling for proxy start

* add listen port and DefaultClientPort tests

* add err handling for listen info
2025-07-25 11:46:31 -07:00
8b8fb28228 feat: add MySQL command support PORT (#5891)
* feat: add MySQL command support

* Fix MySQL connection according to review feedback

* Update internal/cmd/commands/connect/mysql.go

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* Update internal/cmd/commands/connect/mysql.go

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* Update internal/cmd/commands/connect/mysql.go

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* feat: add MySQL support to boundary connect

* docs: add MySQL to navigation menu

   Fixes content check error by adding mysql.mdx to docs navigation.
   MySQL page now appears in Commands > connect section alongside postgres.

* Update testing/internal/e2e/tests/base_plus/target_tcp_connect_mysql_test.go

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* test: add containerized MySQL connection test for target functionality

* Remove MySQL environment variables from e2e test config

* test: move MySQL e2e test from base_plus to base folder

* Fix MySQL test to support both MySQL and MariaDB clients

* Fix MySQL test to support both MySQL and MariaDB clients

* lint cleanup

* adding error checks

* Make gen

* Test case testing

* Reverting bad comment

* cleaning up extra test file

* Add Mysql to runner (#5893)

* Adding back correct test file

* Removing base plus test file

* Removing base plus test file

* Revert "Removing base plus test file"

This reverts commit ace9cb3e90a028adc1f7c8ef55436ca843abfc15.

* forcing enos docker network name

* Revert "forcing enos docker network name"

This reverts commit 631bdb4a0ef87f5435e06456e8ec0a4573ab3e49.

* changing hosts to looks for sql container

* fix container name

* Adjusting for e2e tests and a bit of cleanup

* missed a commented string

* Bgajjala mysql e2etest v2 (#5900)

* Using Env Vars rather than parsing uri

* Comments fix

* spacing

* Update testing/internal/e2e/tests/base/target_tcp_connect_mysql_test.go

* Spacing

* Update internal/cmd/commands/connect/mysql.go

* adding error checks

* Make gen

* Update testing/internal/e2e/tests/base/target_tcp_connect_mysql_test.go

* Update internal/cmd/commands/connect/mysql.go

* Make gen

* derving target port from uri

* nit

* updating test to use url strings

* nit: spacing

* nit: code organization

* nit: code organization
Co-authored-by: Enbiya Göral

---------

Co-authored-by: Enbiya <menbiyagoral@gmail.com>
Co-authored-by: Enbiya Göral <100806254+enbiyagoral@users.noreply.github.com>
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Co-authored-by: Ryan Derr <54389874+RyanDerr@users.noreply.github.com>
2025-07-08 17:07:27 -05:00