Skip to content

Commit a062ea3

Browse files
committed
Migrate aescbc to ote
1 parent cee7acb commit a062ea3

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

test/e2e/encryption_test.go

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
package e2e
22

33
import (
4-
"fmt"
54
"testing"
6-
7-
"github.com/openshift/cluster-kube-apiserver-operator/pkg/operator/operatorclient"
8-
operatorencryption "github.com/openshift/cluster-kube-apiserver-operator/test/library/encryption"
9-
library "github.com/openshift/library-go/test/library/encryption"
105
)
116

7+
// This test calls the shared test function which
8+
// can be called from both standard Go tests and Ginkgo tests.
9+
//
10+
// This situation is temporary until we test the new e2e-gcp-operator-serial-ote job.
11+
// Eventually all tests will be run only as part of the OTE framework.
1212
func TestEncryptionTypeAESCBC(t *testing.T) {
13-
library.TestEncryptionTypeAESCBC(t, library.BasicScenario{
14-
Namespace: operatorclient.GlobalMachineSpecifiedConfigNamespace,
15-
LabelSelector: "encryption.apiserver.operator.openshift.io/component" + "=" + operatorclient.TargetNamespace,
16-
EncryptionConfigSecretName: fmt.Sprintf("encryption-config-%s", operatorclient.TargetNamespace),
17-
EncryptionConfigSecretNamespace: operatorclient.GlobalMachineSpecifiedConfigNamespace,
18-
OperatorNamespace: operatorclient.OperatorNamespace,
19-
TargetGRs: operatorencryption.DefaultTargetGRs,
20-
AssertFunc: operatorencryption.AssertSecretsAndConfigMaps,
21-
})
13+
testEncryptionTypeAESCBC(t)
2214
}

0 commit comments

Comments
 (0)