Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information
dshafer committed Oct 15, 2018
1 parent 0a6e879 commit 5fe72033bd7b64aa4bdd686a14a5835c92eacad0
Showing with 14 additions and 14 deletions.
  1. +14 −14 Single_Entity.robot
@@ -15,7 +15,7 @@ URN-Style Entity ID
URL-Style Entity ID
[Documentation] GET an entity with a URL-style entityID
[Tags] http-get entity-id-url
${resp}= Get uri=/entities/https:%2f%2fcarmenwiki.osu.edu%2fshibboleth
${resp}= Get uri=/entities/https:%2F%2Fcarmenwiki.osu.edu%2Fshibboleth
Should Be Equal As Strings ${resp.status_code} 200
${root}= Parse XML ${resp.text}
Should Be Equal ${root.tag} EntityDescriptor
@@ -37,6 +37,14 @@ Colons Encoded
${root}= Parse XML ${resp.text}
Should Be Equal ${root.tag} EntityDescriptor

Colons Unencoded
[Documentation] GET an entity with colons in the entityID percent-encoded
[Tags] http-get entity-id-urn encode-colons
${resp}= Get uri=/entities/urn:mace:incommon:internet2.edu
Should Be Equal As Strings ${resp.status_code} 200
${root}= Parse XML ${resp.text}
Should Be Equal ${root.tag} EntityDescriptor

Lowercase Encoding
[Documentation] GET an entity using lowercase percent-encoding
[Tags] http-get entity-id-url encoding-lowercase
@@ -53,19 +61,11 @@ Uppercase Encoding
${root}= Parse XML ${resp.text}
Should Be Equal ${root.tag} EntityDescriptor

SHA-1 Hash (Lowercase)
[Documentation] GET an entity by the lowercase SHA-1 hash of its entityID
[Tags] http-get sha-1 sha-1-lowercase
# `$ echo urn:mace:incommon:internet2.edu |shasum`
${resp}= Get uri=/entities/15fd47b743804831a6a443a37170c8983116c7a2
Should Be Equal As Strings ${resp.status_code} 200
${root}= Parse XML ${resp.text}
Should Be Equal ${root.tag} EntityDescriptor

SHA-1 Hash (Uppercase)
[Documentation] GET an entity by the uppercase SHA-1 hash of its entityID
[Tags] http-get sha-1 sha-1-uppercase
${resp}= Get uri=/entities/15FD47B743804831A6A443A37170C8983116C7A2
SHA-1 Hash
[Documentation] GET an entity by the SHA-1 hash of its entityID
[Tags] http-get sha-1
# `$ echo -n urn:mace:incommon:internet2.edu |shasum -a 1`
${resp}= Get uri=/entities/{sha1}c58d27e972e66f1f26ad5318b303bca955a56021
Should Be Equal As Strings ${resp.status_code} 200
${root}= Parse XML ${resp.text}
Should Be Equal ${root.tag} EntityDescriptor

0 comments on commit 5fe7203

Please sign in to comment.
You can’t perform that action at this time.