feat: some name changes for better understanding on testing

This commit is contained in:
Akhil Mohan
2024-02-18 22:51:10 +05:30
parent 8864c811fe
commit 678306b350
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -68,8 +68,8 @@ describe("Identity token secret ops", async () => {
method: "POST",
url: "/api/v1/auth/universal-auth/login",
body: {
clientSecret: seedData1.machineIdentity.clientCred.secret,
clientId: seedData1.machineIdentity.clientCred.id
clientSecret: seedData1.machineIdentity.clientCredentials.secret,
clientId: seedData1.machineIdentity.clientCredentials.id
}
});
expect(identityLogin.statusCode).toBe(200);
+4 -4
View File
@@ -31,7 +31,7 @@ describe("Secret V3 Router", async () => {
authorization: `Bearer ${jwtAuthToken}`
}
});
const projectKeyEnc = JSON.parse(projectKeyRes.payload);
const projectKeyEncryptionDetails = JSON.parse(projectKeyRes.payload);
const userInfoRes = await testServer.inject({
method: "GET",
@@ -43,9 +43,9 @@ describe("Secret V3 Router", async () => {
const { user: userInfo } = JSON.parse(userInfoRes.payload);
const privateKey = await getUserPrivateKey(seedData1.password, userInfo);
projectKey = decryptAsymmetric({
ciphertext: projectKeyEnc.encryptedKey,
nonce: projectKeyEnc.nonce,
publicKey: projectKeyEnc.sender.publicKey,
ciphertext: projectKeyEncryptionDetails.encryptedKey,
nonce: projectKeyEncryptionDetails.nonce,
publicKey: projectKeyEncryptionDetails.sender.publicKey,
privateKey
});