feat: added e2ee test for recursive secret operation

This commit is contained in:
=
2024-11-08 19:58:10 +05:30
parent a200469c72
commit e676acbadf
2 changed files with 81 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ export const getSecretsV2 = async (dto: {
environmentSlug: string;
secretPath: string;
authToken: string;
recursive?: boolean;
}) => {
const getSecretsResponse = await testServer.inject({
method: "GET",
@@ -109,7 +110,8 @@ export const getSecretsV2 = async (dto: {
environment: dto.environmentSlug,
secretPath: dto.secretPath,
expandSecretReferences: "true",
include_imports: "true"
include_imports: "true",
recursive: String(dto.recursive)
}
});
expect(getSecretsResponse.statusCode).toBe(200);