Skip to content

Commit

Permalink
New cassettes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyril Gaudin committed Jun 16, 2016
1 parent 7714401 commit 26c591f
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 140 deletions.
70 changes: 35 additions & 35 deletions tests/cassettes/sign_batch.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions tests/cassettes/sign_prepared_pdf.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions tests/cassettes/sign_unprepared_pdf.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions tests/cassettes/wrong_customer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,61 @@
"version": 1,
"interactions": [
{
"request": {
"body": "{\"SignRequest\": {\"InputDocuments\": {\"DocumentHash\": {\"dsig.DigestMethod\": {\"@Algorithm\": \"http://www.w3.org/2001/04/xmlenc#sha256\"}, \"dsig.DigestValue\": \"9ebjDuUxyzsAKM9TPCYJTdI/La6WjXEIsbkAKMXThkM=\"}}, \"OptionalInputs\": {\"sc.AddRevocationInformation\": {\"@Type\": \"BOTH\"}, \"SignatureType\": \"urn:ietf:rfc:3369\", \"ClaimedIdentity\": {\"Name\": \"X:Y\"}, \"AddTimestamp\": {\"@Type\": \"urn:ietf:rfc:3161\"}}, \"@RequestID\": \"f67f38449d314d5a8868734cb50c37fc\", \"@Profile\": \"http://ais.swisscom.ch/1.0\"}}",
"headers": {
"Content-Type": [
"application/json;charset=UTF-8"
],
"User-Agent": [
"python-requests/2.10.0"
],
"Connection": [
"keep-alive"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Accept": [
"application/json"
],
"Content-Length": [
"504"
]
},
"method": "POST",
"uri": "https://ais.swisscom.com/AIS-Server/rs/v1.0/sign"
},
"response": {
"status": {
"message": "OK",
"code": 200
},
"body": {
"string": "{\"SignResponse\":{\"@RequestID\":\"ba76a066708346fb8880c1bb0692f770\",\"@Profile\":\"http:\\/\\/ais.swisscom.ch\\/1.0\",\"Result\":{\"ResultMajor\":\"urn:oasis:names:tc:dss:1.0:resultmajor:RequesterError\",\"ResultMinor\":\"http:\\/\\/ais.swisscom.ch\\/1.0\\/resultminor\\/AuthenticationFailed\",\"ResultMessage\":{\"@xml.lang\":\"en\",\"$\":\"Either ClaimedIdentity or SSL certificate check failed\"}}}}"
},
"headers": {
"date": [
"Thu, 02 Jun 2016 13:17:45 GMT"
"Thu, 16 Jun 2016 11:09:45 GMT"
],
"server": [
"Apache"
],
"x-frame-options": [
"SAMEORIGIN"
],
"connection": [
"Keep-Alive"
],
"content-type": [
"application/json"
],
"keep-alive": [
"timeout=10, max=500"
],
"connection": [
"Keep-Alive"
],
"set-cookie": [
"AL_BALANCE=$xc/q259YP6zfJJ34TzVKDrgUvSOoQLsZIIEI9r9jzag21RPcv8e; Path=/"
"AL_BALANCE=$xc/BZx6UeIU7IHjiYusQfB9Vrb7zzF00KHUurb9lXAScBJxcHkS; Path=/"
]
}
},
"request": {
"method": "POST",
"uri": "https://ais.swisscom.com/AIS-Server/rs/v1.0/sign",
"body": "{\"SignRequest\": {\"@RequestID\": \"ba76a066708346fb8880c1bb0692f770\", \"OptionalInputs\": {\"SignatureType\": \"urn:ietf:rfc:3369\", \"sc.AddRevocationInformation\": {\"@Type\": \"BOTH\"}, \"ClaimedIdentity\": {\"Name\": \"X:Y\"}, \"AddTimestamp\": {\"@Type\": \"urn:ietf:rfc:3161\"}}, \"InputDocuments\": {\"DocumentHash\": {\"dsig.DigestMethod\": {\"@Algorithm\": \"http://www.w3.org/2001/04/xmlenc#sha256\"}, \"dsig.DigestValue\": \"PRQuHE7wAGFy4gaXF939SbbV2awQlBxq08jwdqWneFo=\"}}, \"@Profile\": \"http://ais.swisscom.ch/1.0\"}}",
"headers": {
"Accept": [
"application/json"
],
"server": [
"Apache"
"Content-Length": [
"504"
],
"Connection": [
"keep-alive"
],
"Content-Type": [
"application/json;charset=UTF-8"
],
"User-Agent": [
"python-requests/2.10.0"
],
"Accept-Encoding": [
"gzip, deflate"
]
},
"body": {
"string": "{\"SignResponse\":{\"@RequestID\":\"f67f38449d314d5a8868734cb50c37fc\",\"@Profile\":\"http:\\/\\/ais.swisscom.ch\\/1.0\",\"Result\":{\"ResultMajor\":\"urn:oasis:names:tc:dss:1.0:resultmajor:RequesterError\",\"ResultMinor\":\"http:\\/\\/ais.swisscom.ch\\/1.0\\/resultminor\\/AuthenticationFailed\",\"ResultMessage\":{\"@xml.lang\":\"en\",\"$\":\"Either ClaimedIdentity or SSL certificate check failed\"}}}}"
}
}
}
Expand Down

0 comments on commit 26c591f

Please sign in to comment.