Update plugins/kubernetes-backend/src/service/KubernetesFetcher.test.ts

Co-authored-by: Jamie Klassen <jamie.klassen@broadcom.com>
Signed-off-by: Andrés Mauricio Gómez P <andmagom@outlook.com>
This commit is contained in:
Andrés Mauricio Gómez P
2024-01-04 08:09:17 -05:00
committed by GitHub
parent 3cc0d26206
commit 15b8c1c48d
@@ -813,7 +813,7 @@ describe('KubernetesFetcher', () => {
expect(agent.options.rejectUnauthorized).toBe(false);
});
it('should use a x509 client cert authentication strategy to consume kubeapi when backstage-kubernetes-auth field is not provided and the authStrategy enables x509 client cert authentication - fetchObjectsForService', async () => {
it('fetchObjectsForService authenticates with k8s using x509 client cert from authentication strategy', async () => {
worker.use(
rest.get('https://localhost:9999/api/v1/pods', (req, res, ctx) =>
res(