mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Run transformation integration tests in parallel
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
This commit is contained in:
parent
1e048d5f24
commit
689363be06
@ -890,7 +890,10 @@ func TestEncryptionConfigHotReloadFilePolling(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
|
tc := tc
|
||||||
t.Run(tc.name, func(t *testing.T) {
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
socketPath := getSocketPath()
|
socketPath := getSocketPath()
|
||||||
encryptionConfig := fmt.Sprintf(`
|
encryptionConfig := fmt.Sprintf(`
|
||||||
kind: EncryptionConfiguration
|
kind: EncryptionConfiguration
|
||||||
|
@ -412,6 +412,7 @@ func TestKMSv2ProviderKeyIDStaleness(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testKMSv2ProviderKeyIDStaleness(t *testing.T) {
|
func testKMSv2ProviderKeyIDStaleness(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
socketPath := getSocketPath()
|
socketPath := getSocketPath()
|
||||||
encryptionConfig := fmt.Sprintf(`
|
encryptionConfig := fmt.Sprintf(`
|
||||||
kind: EncryptionConfiguration
|
kind: EncryptionConfiguration
|
||||||
@ -1347,6 +1348,7 @@ func TestKMSv2ProviderLegacyData(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testKMSv2ProviderLegacyData(t *testing.T) {
|
func testKMSv2ProviderLegacyData(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
socketPath := getSocketPath()
|
socketPath := getSocketPath()
|
||||||
encryptionConfig := fmt.Sprintf(`
|
encryptionConfig := fmt.Sprintf(`
|
||||||
kind: EncryptionConfiguration
|
kind: EncryptionConfiguration
|
||||||
|
@ -85,17 +85,20 @@ func TestSecretsShouldBeTransformed(t *testing.T) {
|
|||||||
// TODO: add secretbox
|
// TODO: add secretbox
|
||||||
}
|
}
|
||||||
for _, tt := range testCases {
|
for _, tt := range testCases {
|
||||||
test, err := newTransformTest(t, tt.transformerConfigContent, false, "", nil)
|
tt := tt
|
||||||
if err != nil {
|
t.Run(tt.transformerPrefix, func(t *testing.T) {
|
||||||
t.Fatalf("failed to setup test for envelop %s, error was %v", tt.transformerPrefix, err)
|
t.Parallel()
|
||||||
continue
|
test, err := newTransformTest(t, tt.transformerConfigContent, false, "", nil)
|
||||||
}
|
if err != nil {
|
||||||
test.secret, err = test.createSecret(testSecret, testNamespace)
|
t.Fatalf("failed to setup test for envelop %s, error was %v", tt.transformerPrefix, err)
|
||||||
if err != nil {
|
}
|
||||||
t.Fatalf("Failed to create test secret, error: %v", err)
|
test.secret, err = test.createSecret(testSecret, testNamespace)
|
||||||
}
|
if err != nil {
|
||||||
test.runResource(test.logger, tt.unSealFunc, tt.transformerPrefix, "", "v1", "secrets", test.secret.Name, test.secret.Namespace)
|
t.Fatalf("Failed to create test secret, error: %v", err)
|
||||||
test.cleanUp()
|
}
|
||||||
|
test.runResource(test.logger, tt.unSealFunc, tt.transformerPrefix, "", "v1", "secrets", test.secret.Name, test.secret.Namespace)
|
||||||
|
test.cleanUp()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user