UNPKG

@postdata/cli

Version:

A CLI to run Postdata test scripts in CI environments.

44 lines (43 loc) 1.13 kB
{ "v": 3, "name": "Digest Auth (success state) - collection", "folders": [], "requests": [ { "v": "8", "id": "cm0dm70cw000687bnxi830zz7", "auth": { "authType": "digest", "authActive": true, "username": "<<username>>", "password": "<<password>>", "realm": "", "nonce": "", "algorithm": "MD5", "qop": "auth", "nc": "", "cnonce": "", "opaque": "", "disableRetry": false }, "body": { "body": null, "contentType": null }, "name": "digest-auth-headers", "method": "GET", "params": [], "headers": [], "endpoint": "<<url>>", "testScript": "pw.test(\"Status code is 200\", ()=> { pw.expect(pw.response.status).toBe(200);}); \n pw.test(\"Receives the www-authenticate header\", ()=> { pw.expect(pw.response.headers['www-authenticate']).toBeType('string');});", "preRequestScript": "", "responses": {}, "requestVariables": [] } ], "auth": { "authType": "inherit", "authActive": true }, "headers": [] }