From a76d0ada1ecb7a89089b00505f45987fc8a3a695 Mon Sep 17 00:00:00 2001 From: Marek Michali Date: Mon, 17 Jun 2024 15:44:48 +0200 Subject: [PATCH] Linter --- testing/e2e/skr/kcp/client.js | 6 +++--- testing/e2e/skr/skr-test/oidc/index.js | 14 +++++++------- .../e2e/skr/skr-test/provision/provision-skr.js | 2 +- testing/e2e/skr/skr-test/test.js | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/testing/e2e/skr/kcp/client.js b/testing/e2e/skr/kcp/client.js index 05a65e535e..b46f4cc2ce 100644 --- a/testing/e2e/skr/kcp/client.js +++ b/testing/e2e/skr/kcp/client.js @@ -13,7 +13,7 @@ class KCPConfig { return new KCPConfig(); } constructor() { - this.authType = getEnvOrThrow('KCP_AUTH_TYPE') + this.authType = getEnvOrThrow('KCP_AUTH_TYPE'); this.host = getEnvOrThrow('KCP_KEB_API_URL'); this.kubeConfigApiUrl = getEnvOrThrow('KCP_KUBECONFIG_API_URL'); this.oauthClientID = getEnvOrThrow('KCP_OAUTH2_CLIENT_ID'); @@ -36,12 +36,12 @@ class KCPWrapper { const stream = fs.createWriteStream(`${this.kcpConfigPath}`); stream.once('open', (_) => { - stream.write(`auth-type: "${this.authType}"\n`) + stream.write(`auth-type: "${this.authType}"\n`); stream.write(`keb-api-url: "${this.host}"\n`); stream.write(`kubeconfig-api-url: "${this.kubeConfigApiUrl}"\n`); stream.write(`oauth2-client-id: "${this.oauthClientID}"\n`); stream.write(`oauth2-client-secret: "${this.oauthSecret}"\n`); - stream.write(`oauth2-issuer-url: "${this.oauthIssuer}"\n`); + stream.write(`oauth2-issuer-url: "${this.oauthIssuer}"\n`); stream.write(`gardener-namespace: "${this.gardenerNamespace}"\n`); stream.end(); }); diff --git a/testing/e2e/skr/skr-test/oidc/index.js b/testing/e2e/skr/skr-test/oidc/index.js index f605d005cc..00dd9f328b 100644 --- a/testing/e2e/skr/skr-test/oidc/index.js +++ b/testing/e2e/skr/skr-test/oidc/index.js @@ -34,9 +34,9 @@ function oidcE2ETest(getShootOptionsFunc, getShootInfoFunc) { await ensureValidOIDCConfigInCustomerFacingKubeconfig(keb, options.instanceID, givenOidcConfig); }); - // it('Assure initial cluster admin', async function() { - // await ensureKymaAdminBindingExistsForUser(options.kebUserId); // default user id - // }); + // it('Assure initial cluster admin', async function() { + // await ensureKymaAdminBindingExistsForUser(options.kebUserId); // default user id + // }); it('Update SKR service instance with OIDC config', async function() { this.timeout(updateTimeout); @@ -72,9 +72,9 @@ function oidcE2ETest(getShootOptionsFunc, getShootInfoFunc) { await ensureValidOIDCConfigInCustomerFacingKubeconfig(keb, options.instanceID, options.oidc1); }); - // it('Assure cluster admin is preserved', async function() { - // await ensureKymaAdminBindingExistsForUser(options.kebUserId); - // }); + // it('Assure cluster admin is preserved', async function() { + // await ensureKymaAdminBindingExistsForUser(options.kebUserId); + // }); it('Update SKR service instance with new admins', async function() { this.timeout(updateTimeout); @@ -99,7 +99,7 @@ function oidcE2ETest(getShootOptionsFunc, getShootInfoFunc) { console.log(`\nRuntime status: ${runtimeStatus}`); }); - /* it('Assure only new cluster admins are configured', async function() { + /* it('Assure only new cluster admins are configured', async function() { await ensureKymaAdminBindingExistsForUser(options.administrators1[0]); await ensureKymaAdminBindingExistsForUser(options.administrators1[1]); await ensureKymaAdminBindingDoesNotExistsForUser(options.kebUserId); diff --git a/testing/e2e/skr/skr-test/provision/provision-skr.js b/testing/e2e/skr/skr-test/provision/provision-skr.js index 38ae1d3035..a61bc67c6c 100644 --- a/testing/e2e/skr/skr-test/provision/provision-skr.js +++ b/testing/e2e/skr/skr-test/provision/provision-skr.js @@ -20,7 +20,7 @@ async function provisionSKRAndInitK8sConfig(options, provisioningTimeout) { await initK8sConfig(shoot); } else { console.log('Initiating K8s client... skipped'); - //await initializeK8sClient({kubeconfigPath: shoot.kubeconfig}); + // await initializeK8sClient({kubeconfigPath: shoot.kubeconfig}); } console.log('Initialization of K8s finished...'); diff --git a/testing/e2e/skr/skr-test/test.js b/testing/e2e/skr/skr-test/test.js index 28e62f91f7..09fb895b8a 100644 --- a/testing/e2e/skr/skr-test/test.js +++ b/testing/e2e/skr/skr-test/test.js @@ -34,7 +34,7 @@ describe('SKR test', function() { }); // Run BTP Manager Secret tests - //btpManagerSecretTest(); + // btpManagerSecretTest(); // Run OIDC tests oidcE2ETest(getShootOptionsFunc, getShootInfoFunc);