add proxy method with tests for kubernetesbackendclient
Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user