Browse Source

Backport of integ-test: fix upgrade test for CE into release/1.17.x (#19676)

integ-test: fix upgrade test for CE (#19673)
pull/19684/head
hc-github-team-consul-core 1 year ago committed by GitHub
parent
commit
a5b8e504e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .github/workflows/nightly-test-integrations.yml
  2. 10
      test-integ/upgrade/basic/common.go

3
.github/workflows/nightly-test-integrations.yml

@ -406,7 +406,6 @@ jobs:
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large ) }}
needs:
- setup
- dev-build
permissions:
id-token: write # NOTE: this permission is explicitly required for Vault auth.
contents: read
@ -454,7 +453,7 @@ jobs:
-- \
go test \
-tags "${{ env.GOTAGS }}" \
-timeout=60m \
-timeout=20m \
-parallel=2 \
-json \
./... \

10
test-integ/upgrade/basic/common.go

@ -161,12 +161,12 @@ func newCommonTopo(t *testing.T) *commonTopo {
},
},
},
Enterprise: true,
Enterprise: utils.IsEnterprise(),
InitialConfigEntries: []api.ConfigEntry{
&api.ProxyConfigEntry{
Kind: api.ProxyDefaults,
Name: "global",
Partition: "default",
Partition: topoutil.ConfigEntryPartition("default"),
Config: map[string]any{
"protocol": "http",
},
@ -174,14 +174,12 @@ func newCommonTopo(t *testing.T) *commonTopo {
&api.ServiceConfigEntry{
Kind: api.ServiceDefaults,
Name: "static-server",
Partition: "default",
Namespace: "default",
Partition: topoutil.ConfigEntryPartition("default"),
},
&api.ServiceIntentionsConfigEntry{
Kind: api.ServiceIntentions,
Name: "static-server",
Partition: "default",
Namespace: "default",
Partition: topoutil.ConfigEntryPartition("default"),
Sources: []*api.SourceIntention{
{
Name: "static-client",

Loading…
Cancel
Save