Skip to content

Commit 59d772f

Browse files
fix(e2e): prevent secure TLS bootstrapping bootstrap token fallback tests from creating server-side errors (#7369)
1 parent 207f270 commit 59d772f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

e2e/scenario_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ func Test_AzureLinuxV2_SecureTLSBootstrapping_BootstrapToken_Fallback(t *testing
195195
VHD: config.VHDAzureLinuxV2Gen2,
196196
BootstrapConfigMutator: func(nbc *datamodel.NodeBootstrappingConfiguration) {
197197
nbc.SecureTLSBootstrappingConfig = &datamodel.SecureTLSBootstrappingConfig{
198-
Enabled: true,
199-
Deadline: (30 * time.Second).String(),
200-
AADResource: "https://management.azure.com/", // use an unexpected AAD resource to force a secure TLS bootstrapping failure
198+
Enabled: true,
199+
Deadline: (30 * time.Second).String(),
200+
UserAssignedIdentityID: "invalid", // use an unexpected user-assigned identity ID to force a secure TLS bootstrapping failure
201201
}
202202
},
203203
},
@@ -1896,9 +1896,9 @@ func Test_Ubuntu2404Gen2_SecureTLSBootstrapping_BootstrapToken_Fallback(t *testi
18961896
VHD: config.VHDUbuntu2404Gen2Containerd,
18971897
BootstrapConfigMutator: func(nbc *datamodel.NodeBootstrappingConfiguration) {
18981898
nbc.SecureTLSBootstrappingConfig = &datamodel.SecureTLSBootstrappingConfig{
1899-
Enabled: true,
1900-
Deadline: (30 * time.Second).String(),
1901-
AADResource: "https://management.azure.com/", // use an unexpected AAD resource to force a secure TLS bootstrapping failure
1899+
Enabled: true,
1900+
Deadline: (30 * time.Second).String(),
1901+
UserAssignedIdentityID: "invalid", // use an unexpected user-assigned identity ID to force a secure TLS bootstrapping failure
19021902
}
19031903
},
19041904
},

0 commit comments

Comments
 (0)