fix: process headers correctly in Digest Auth and other updates (#4494)

This commit is contained in:
James George
2024-10-30 04:42:19 -07:00
committed by GitHub
parent 1236e6b719
commit 8ac934599a
8 changed files with 105 additions and 85 deletions

View File

@@ -422,7 +422,7 @@ describe("hopp test [options] <file_path_or_id>", () => {
describe("Digest Authorization type", () => {
test("Successfully translates the authorization information to headers/query params and sends it along with the request", async () => {
const COLL_PATH = getTestJsonFilePath(
"digest-auth-coll.json",
"digest-auth-success-coll.json",
"collection"
);
const ENVS_PATH = getTestJsonFilePath(
@@ -436,6 +436,22 @@ describe("hopp test [options] <file_path_or_id>", () => {
expect(error).toBeNull();
});
});
test("Supports disabling request retries", async () => {
const COLL_PATH = getTestJsonFilePath(
"digest-auth-failure-coll.json",
"collection"
);
const ENVS_PATH = getTestJsonFilePath(
"digest-auth-envs.json",
"environment"
);
const args = `test ${COLL_PATH} -e ${ENVS_PATH}`;
const { error } = await runCLI(args);
expect(error).toBeTruthy();
});
});
describe("Test `hopp test <file_path_or_id> --delay <delay_in_ms>` command:", () => {