From a8b41f32a3abbd65f5d98fd378374d3f9cb39d13 Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Fri, 20 Aug 2021 11:12:02 +0100 Subject: [PATCH] fixes existing changes and adds 1 new test for k8 Signed-off-by: Brian Fletcher --- .../ConfigClusterLocator.test.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/plugins/kubernetes-backend/src/cluster-locator/ConfigClusterLocator.test.ts b/plugins/kubernetes-backend/src/cluster-locator/ConfigClusterLocator.test.ts index 1642ca5580..dac96e4cef 100644 --- a/plugins/kubernetes-backend/src/cluster-locator/ConfigClusterLocator.test.ts +++ b/plugins/kubernetes-backend/src/cluster-locator/ConfigClusterLocator.test.ts @@ -115,6 +115,14 @@ describe('ConfigClusterLocator', () => { authProvider: 'aws', skipTLSVerify: true, }, + { + assumeRole: 'SomeRole', + name: 'cluster2', + externalId: 'SomeExternalId', + url: 'http://localhost:8081', + authProvider: 'aws', + skipTLSVerify: true, + }, ], }); @@ -127,6 +135,7 @@ describe('ConfigClusterLocator', () => { assumeRole: undefined, name: 'cluster1', serviceAccountToken: 'token', + externalId: undefined, url: 'http://localhost:8080', authProvider: 'aws', skipTLSVerify: false, @@ -134,11 +143,21 @@ describe('ConfigClusterLocator', () => { { assumeRole: 'SomeRole', name: 'cluster2', + externalId: undefined, serviceAccountToken: undefined, url: 'http://localhost:8081', authProvider: 'aws', skipTLSVerify: true, }, + { + assumeRole: 'SomeRole', + name: 'cluster2', + externalId: 'SomeExternalId', + url: 'http://localhost:8081', + serviceAccountToken: undefined, + authProvider: 'aws', + skipTLSVerify: true, + }, ]); }); });