Commit Graph

303 Commits (45a9a266bdda7ef8b280ae2bbb4806d20f4927a8)

Author SHA1 Message Date
Anita Akaeze 2b07d8010b
NET-2397: Add readme.md to upgrade test subdirectory (#16610) (#16696)
* NET-2397: Add readme.md to upgrade test subdirectory

* remove test code

* fix link and update  steps of adding new test cases (#16654)

* fix link and update  steps of adding new test cases

* Apply suggestions from code review



---------



---------

Co-authored-by: cskh <hui.kang@hashicorp.com>
Co-authored-by: Nick Irvine <115657443+nfi-hashicorp@users.noreply.github.com>
2023-03-21 08:50:23 -05:00
hc-github-team-consul-core 9e88415e4d
Backport of Snapshot restore tests into release/1.15.x (#16672)
* backport of commit a8525f8315

* backport of commit a2d560517c

* backport of commit 958c279dbc

* backport of commit 1c1b88bc6a

* backport of commit cd25976169

* backport of commit d95619f85f

* backport of commit 15a4645e7f

* backport of commit abb2203af5

---------

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
Co-authored-by: Paul Banks <pbanks@hashicorp.com>
Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-03-19 23:33:52 +00:00
hc-github-team-consul-core eb63d46abb
Backport of [API Gateway] Fix invalid cluster causing gateway programming delay into release/1.15.x (#16668)
* backport of commit 9ea73b3b8d

* backport of commit d3cffdeb4d

* backport of commit 0848aac017

* backport of commit 90b5e39d2d

* Refactor and fix flaky tests

* Fix bad merge

* add file that was never backported

* Fix bad merge again

* fix duplicate method

* remove extra import

* backport a slew of testing library code

* backport changes coinciding with library update

* backport changes coinciding with library update

---------

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
2023-03-17 15:02:28 -04:00
Semir Patel 99e1ccefc2 bump api and sdk modules 2023-03-07 13:42:33 -06:00
hc-github-team-consul-core 88496d7f8a
NET-2904 Fixes API Gateway Route Service Weight Division Error (#16540)
Co-authored-by: Melisa Griffin <missylbytes@users.noreply.github.com>
2023-03-06 10:11:27 -05:00
hc-github-team-consul-core 0f139f2439
Backport of Fix resolution of service resolvers with subsets for external upstreams into release/1.15.x (#16525)
* backport of commit 892d389d9b

* backport of commit 8a2468d6b5

* backport of commit f56894fdc1

* backport of commit ced73fc2ce

---------

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
2023-03-03 19:44:50 +00:00
hc-github-team-consul-core 9c409797e6
Backport of Fix issue where terminating gateway service resolvers weren't properly cleaned up into release/1.15.x (#16521)
* backport of commit e14b4301fa

* backport of commit 525501337d

* backport of commit b1b2abc14a

* backport of commit ecaeff26aa

---------

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
2023-03-03 16:45:47 +00:00
hc-github-team-consul-core 10b5250126
Backport of Gateway Test HTTPPathRewrite into release/1.15.x (#16466)
* no-op commit due to failed cherry-picking

* add http url path rewrite

* add Mike's test back in

* update kind to use api.APIGateway

---------

Co-authored-by: temp <temp@hashicorp.com>
Co-authored-by: Sarah Alsmiller <sarah.alsmiller@hashicorp.com>
Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com>
2023-02-28 16:36:54 -06:00
cskh 31e094b36e
upgrade test: consolidate resolver test cases (#16443) (#16457) 2023-02-28 16:31:52 +00:00
hc-github-team-consul-core 9902dab7bc
Backport of Basic gobased API gateway spinup test into release/1.15.x (#16423)
* backport of commit 60a62add31

* backport of commit 560cd55675

* backport of commit bd3ff14638

* backport of commit b8a4c8319d

* backport of commit 184b6bbcb0

* backport of commit cc213b67b4

* backport of commit e706bc7cac

* backport of commit 064a3c0104

* backport of commit b8aa15ef54

* updated GetPort interface

* fix getport

* fix syntax issues

* fix gofmt error

* removed deprecated random calls, removed unused port variable

* clean up duplicate comment

* Update test/integration/consul-container/test/gateways/gateway_endpoint_test.go

* parralelize this test

* delete extra line

* clean up unneeded comments

---------

Co-authored-by: Sarah Alsmiller <sarah.alsmiller@hashicorp.com>
Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com>
2023-02-27 20:06:38 +00:00
hc-github-team-consul-core 291690bbb3
backport of commit e17298b6b8 (#16441)
Co-authored-by: Anita Akaeze <anita.akaeze@hashicorp.com>
2023-02-27 19:28:51 +00:00
hc-github-team-consul-core b457e8bbf4
backport of commit 9fa59888fa (#16440)
Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-02-27 19:17:32 +00:00
hc-github-team-consul-core 8ba11d7380
backport of commit 7e236479c0 (#16272)
Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-02-22 20:58:17 +00:00
cskh bda302b2fa
Revert "feat: envoy extension - http local rate limit (#16196)" (#16373)
This reverts commit e91bc9c058.
2023-02-22 14:59:53 -05:00
hc-github-team-consul-core deaef1d6b4
backport of commit 3253386a68 (#16370)
Co-authored-by: Anita Akaeze <anita.akaeze@hashicorp.com>
2023-02-22 18:09:58 +00:00
hc-github-team-consul-core 87d97798bf
backport of commit a0598b81a3 (#16363)
Co-authored-by: Derek Menteer <derek.menteer@hashicorp.com>
2023-02-22 16:51:54 +00:00
hc-github-team-consul-core 6b5d96744d
backport of commit 813264e160 (#16359)
Co-authored-by: cskh <hui.kang@hashicorp.com>
2023-02-22 16:16:22 +00:00
hc-github-team-consul-core aad218d4d0
backport of commit bb33b6060b (#16357)
Co-authored-by: Xinyi Wang <xinyi.wang@hashicorp.com>
2023-02-22 15:54:59 +00:00
hc-github-team-consul-core 3d232666ae
Backport of [API Gateway] Fix targeting service splitters in HTTPRoutes into release/1.15.x (#16353)
* backport of commit 06fc59c26f

* backport of commit cd4e6e9677

---------

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
2023-02-22 04:34:39 +00:00
hc-github-team-consul-core 1241135e68
Backport of [API Gateway] Validate listener name is not empty into release/1.15.x (#16341)
* backport of commit cabcb052fd

* backport of commit 89baddca25

---------

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
2023-02-21 19:34:04 +00:00
hc-github-team-consul-core 0e89df2b7a
Backport of [OSS] security: update go to 1.20.1 into release/1.15.x (#16314)
* backport of commit 2a8cdf1747

* backport of commit 716d162048

* backport of commit 2c757fac4f

* backport of commit f81c5d4933

* backport of commit ff4f0596f3

* backport of commit 31bbca9fe4

* backport of commit 2f54191353

* backport of commit c263147180

---------

Co-authored-by: DanStough <dan.stough@hashicorp.com>
2023-02-17 21:00:25 +00:00
Andrew Stucki e4e7c69f44
Fix hostname alignment checks for HTTPRoutes (#16315) 2023-02-17 20:47:38 +00:00
hc-github-team-consul-core 4920cb4a77
Backport of Inline API Gateway TLS cert code into release/1.15.x (#16306)
* Inline API Gateway TLS cert code (#16295)

* Include secret type when building resources from config snapshot

* First pass at generating envoy secrets from api-gateway snapshot

* Update comments for xDS update order

* Add secret type + corresponding golden files to existing tests

* Initialize test helpers for testing api-gateway resource generation

* Generate golden files for new api-gateway xDS resource test

* Support ADS for TLS certificates on api-gateway

* Configure TLS on api-gateway listeners

* Inline TLS cert code

* update tests

* Add SNI support so we can have multiple certificates

* Remove commented out section from helper

* regen deep-copy

* Add tcp tls test

---------

Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>

* Fix bad merge

---------

Co-authored-by: Andrew Stucki <andrew.stucki@hashicorp.com>
Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com>
2023-02-17 14:46:49 -05:00
Nitya Dhanushkodi 94f4347ffe
Backport: troubleshoot: fixes and updated messages (#16294) (#16309) 2023-02-17 10:53:20 -08:00
hc-github-team-consul-core 1d994d707e
Backport of add integration tests for troubleshoot into release/1.15.x (#16261)
* backport of commit 74dcceeeb2

* cherry pick from PR 16223

---------

Co-authored-by: Maliz <maliheh.monshizadeh@hashicorp.com>
2023-02-15 08:11:57 -08:00
cskh 5b7f36c2ce
integ test: fix retry upstream test (#16246) 2023-02-13 15:16:56 -05:00
Andrew Stucki 9bb0ecfc18
[API Gateway] Add integration test for HTTP routes (#16236)
* [API Gateway] Add integration test for conflicted TCP listeners

* [API Gateway] Update simple test to leverage intentions and multiple listeners

* Fix broken unit test

* [API Gateway] Add integration test for HTTP routes
2023-02-13 14:18:05 -05:00
cskh ab5dac3414
upgrade test: peering with http router config entry (#16231)
* upgrade test: peering with http router config entry
2023-02-13 14:09:12 -05:00
Andrew Stucki 8ff2974dbe
[API Gateway] Update simple test to leverage intentions and multiple listeners (#16228)
* [API Gateway] Add integration test for conflicted TCP listeners

* [API Gateway] Update simple test to leverage intentions and multiple listeners

* Fix broken unit test

* PR suggestions
2023-02-10 21:13:44 +00:00
Andrew Stucki 318ba215ab
[API Gateway] Add integration test for conflicted TCP listeners (#16225) 2023-02-10 11:34:01 -06:00
Derek Menteer 4f2ce60654
Fix peering acceptors in secondary datacenters. (#16230)
Prior to this commit, secondary datacenters could not be initialized
as peering acceptors if ACLs were enabled. This is due to the fact that
internal server-to-server API calls would fail because the management
token was not generated. This PR makes it so that both primary and
secondary datacenters generate their own management token whenever
a leader is elected in their respective clusters.
2023-02-10 09:47:17 -06:00
Andrew Stucki 3b9c569561
Simple API Gateway e2e test for tcp routes (#16222)
* Simple API Gateway e2e test for tcp routes

* Drop DNSSans since we don't front the Gateway with a leaf cert
2023-02-09 16:20:12 -05:00
Andrew Stucki f4210d47dd
Add basic smoke test to make sure an APIGateway runs (#16217) 2023-02-09 11:32:10 -05:00
Anita Akaeze d72ad5fb95
Merge pull request #4216 from hashicorp/NET-2252-add-assert-fortioname (#16212)
NET-2252: integration tests: add assert.FortioName
2023-02-09 09:45:31 -05:00
cskh e91bc9c058
feat: envoy extension - http local rate limit (#16196)
- http local rate limit
- Apply rate limit only to local_app
- unit test and integ test
2023-02-07 21:56:15 -05:00
cskh b4151780d6
Upgrade test: verify the agent token is working after upgrade (#16164)
1. Upgraded agent can inherit the persisted token and join the cluster
2. Agent token prior to upgrade is still valid after upgrade
3. Enable ACL in the agent configuration
2023-02-07 14:13:19 -05:00
wangxinyi7 906ebb97f6
change log level (#16128) 2023-02-06 12:58:13 -08:00
Anita Akaeze f58d5bb221
NET-2087: Restart proxy sidecar during cluster upgrade (#16140) 2023-02-06 13:09:44 -05:00
Anita Akaeze fcf18222c5
add assertions (#16087) 2023-02-03 10:20:22 -05:00
Dan Upton e40b731a52
rate: add prometheus definitions, docs, and clearer names (#15945) 2023-02-03 12:01:57 +00:00
Anita Akaeze 08a19e532d
NO_JIRA: Add function to get container status before making api call (#16116) 2023-02-01 10:48:54 -05:00
cskh f6da81c9d0
improvement: prevent filter being added twice from any enovy extension (#16112)
* improvement: prevent filter being added twice from any enovy extension

* break if error != nil

* update test
2023-01-31 16:49:45 +00:00
cskh 9da61c1cec
Upgrade test: retain sidecar containers during upgrade. (#16100) 2023-01-30 09:49:52 -05:00
cskh ffb81782de
Upgrade test: peering control plane traffic through mesh gateway (#16091) 2023-01-27 11:25:48 -05:00
cskh 5fa9ab28dc
integ test: remove hardcoded upstream local bind port and max number of envoy sidecar (#16092) 2023-01-27 15:19:10 +00:00
cskh ebdb8e5fb2
flaky test: use retry long to wait for config entry upgrade (#16068)
* flaky test: use retry long to wait for config entry upgrade

* increase wait for rbac policy
2023-01-26 11:01:17 -05:00
cskh dbaab52786
Post upgrade test validation: envoy endpoint and register service (#16067) 2023-01-25 12:27:36 -05:00
Dan Stough bb71d045e1
test: run integration tests in parallel (#16035) 2023-01-24 14:51:50 -05:00
R.B. Boyer 96389eb266
test: container tests wait for available networks (#16045) 2023-01-23 14:14:24 -06:00
Dan Stough 91d6a81c14
test(integration): add access logging test (#16008) 2023-01-20 17:02:44 -05:00