Skip to content

Commit

Permalink
remove one test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitka committed Jan 29, 2025
1 parent ce19c52 commit f35acd2
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions tests/e2e/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,47 +768,7 @@ var _ = Describe("Operator smoke test", func() {
ExecuteSimpleTableE2ETestWithSDK(databaseSample.Name, testobjects.YdbNamespace, databasePath)
})

It("Check init job has additional volumes", func() {
By("create storage tls secret...")
storageCert := testobjects.StorageCertificate()
Expect(k8sClient.Create(ctx, storageCert)).Should(Succeed())

By("create storage...")
storage := testobjects.DefaultStorage(filepath.Join("..", "data", "storage-mirror-3-dc-config.yaml"))

secretName := testobjects.StorageCertificateSecretName
secretPath := fmt.Sprintf("%s/%s", v1alpha1.AdditionalSecretsDir, secretName)

storage.Spec.Secrets = []*corev1.LocalObjectReference{
{
Name: secretName,
},
}

storage.Spec.InitContainers = []corev1.Container{
{
Name: "init-container",
Image: storage.Spec.Image.Name,
Command: []string{"bash", "-xc"},
Args: []string{fmt.Sprintf("ls -la %s", secretPath)},
VolumeMounts: []corev1.VolumeMount{
{
Name: secretName,
MountPath: secretPath,
ReadOnly: true,
},
},
},
}

Expect(k8sClient.Create(ctx, storage)).Should(Succeed())
defer DeleteStorageSafely(ctx, k8sClient, storage)

By("waiting until Storage is ready ...")
WaitUntilStorageReady(ctx, k8sClient, storage.Name, testobjects.YdbNamespace)
})

It("Check init job has additional volumes with GRPCS enabled", func() {
It("Check init job with additional volumes and GRPCS enabled", func() {
By("create storage tls secret...")
storageCert := testobjects.StorageCertificate()
Expect(k8sClient.Create(ctx, storageCert)).Should(Succeed())
Expand Down

0 comments on commit f35acd2

Please sign in to comment.