@@ -23,13 +23,13 @@ Get With Custom Auth
2323
2424Get With Digest Auth
2525 [Tags] get get-cert
26- ${auth } = Create List user pass
26+ ${auth } = Create List user passwd
2727 Create Digest Session
2828 ... authsession
2929 ... ${HTTP_LOCAL_SERVER }
3030 ... auth=${auth }
3131 ... debug=3
32- ${resp } = GET On Session authsession /digest-auth/auth/user/pass
32+ ${resp } = GET On Session authsession /digest-auth/auth/user/passwd
3333 Should Be Equal As Strings ${resp.status_code } 200
3434 Should Be Equal As Strings ${resp.json()['authenticated'] } True
3535
@@ -38,8 +38,8 @@ Get With Auth with Robot Secrets
3838 Skip If $SECRET_PASSWORD == "not-supported"
3939 ... msg=robot version does not support secrets
4040 ${auth } = Create List user ${SECRET_PASSWORD }
41- Create Session httpbin https://httpbin.org auth= ${ auth } verify =${CURDIR }${ / } cacert.pem
42- ${resp } = GET On Session httpbin /basic-auth/user/passwd
41+ Create Session authsession ${ HTTP_LOCAL_SERVER } auth =${auth }
42+ ${resp } = GET On Session authsession /basic-auth/user/passwd
4343 Should Be Equal As Strings ${resp.status_code } 200
4444 Should Be Equal As Strings ${resp.json()['authenticated'] } True
4545
@@ -53,8 +53,7 @@ Get With Digest Auth with Robot Secrets
5353 ... ${HTTP_LOCAL_SERVER }
5454 ... auth=${auth }
5555 ... debug=3
56- ... verify=${CURDIR }${/ } cacert.pem
57- ${resp } = GET On Session httpbin /digest-auth/auth/user/passwd
56+ ${resp } = GET On Session authsession /digest-auth/auth/user/passwd
5857 Should Be Equal As Strings ${resp.status_code } 200
5958 Should Be Equal As Strings ${resp.json()['authenticated'] } True
6059
@@ -63,16 +62,6 @@ Session-less GET With Auth with Robot Secrets
6362 Skip If $SECRET_PASSWORD == "not-supported"
6463 ... msg=robot version does not support secrets
6564 ${auth } = Create List user ${SECRET_PASSWORD }
66- ${resp } = GET https://httpbin.org/ basic-auth/user/passwd auth=${auth } verify= ${ CURDIR }${ / } cacert.pem
65+ ${resp } = GET ${ HTTP_LOCAL_SERVER } / basic-auth/user/passwd auth=${auth }
6766 Should Be Equal As Strings ${resp.status_code } 200
6867 Should Be Equal As Strings ${resp.json()['authenticated'] } True
69-
70- Session-less POST With Auth with Robot Secrets
71- [Tags] robot-74 post post-cert session-less
72- Skip If $SECRET_PASSWORD == "not-supported"
73- ... msg=robot version does not support secrets
74- ${auth } = Create List user ${SECRET_PASSWORD }
75- ${data } = Create Dictionary test=data
76- ${resp } = POST https://httpbin.org/post json=${data } auth=${auth } verify=${CURDIR }${/ } cacert.pem
77- Should Be Equal As Strings ${resp.status_code } 200
78- Should Be Equal As Strings ${resp.json()['json']['test'] } data
0 commit comments