add proxy method with tests for kubernetesbackendclient

Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
This commit is contained in:
Ruben Vallejo
2023-03-16 11:02:28 -04:00
parent 2e622932a4
commit faac72e5de
10 changed files with 348 additions and 78 deletions
+10
View File
@@ -106,6 +106,16 @@ class MockKubernetesClient implements KubernetesApi {
async getClusters(): Promise<{ name: string; authProvider: string }[]> {
return [{ name: 'mock-cluster', authProvider: 'serviceAccount' }];
}
async proxy(_options: { clusterName: String; path: String }): Promise<any> {
return {
kind: 'Namespace',
apiVersion: 'v1',
metadata: {
name: 'mock-ns',
},
};
}
}
createDevApp()