Skip to content

Commit

Permalink
Add tests for IdP-only aggregate (#6) (MDQ-162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafer authored Dec 7, 2018
1 parent 2af9988 commit bb06f3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions InCommon.robot
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*** Settings ***
Library Collections
Resource MDQ.robot
Variables variables.py

Expand All @@ -12,3 +13,14 @@ URN-Style Entity ID
[Documentation] GET an entity with a URN-style entityID
${resp}= Get Entity baseUrl=${BASE_URL} identifier=${INC_ENTITY_ID_URN}
Should Be Equal As Strings ${resp.status_code} 200

All IdPs Collection
[Documentation] GET the collection of all IdPs
${resp}= Get Entity baseUrl=${BASE_URL} identifier=${INC_ALL_IDPS}
Should Be Equal As Strings ${resp.status_code} 200

All IdPs Collection (Gzip)
[Documentation] GET the collection of all IdPs with Gzip compression
${resp}= Get Entity With Gzip baseUrl=${BASE_URL} identifier=${INC_ALL_IDPS}
Should Be Equal As Strings ${resp.status_code} 200 msg=MUST support gzip compression
Dictionary Should Contain Item ${resp.headers} content-encoding gzip msg=MUST support gzip compression
3 changes: 3 additions & 0 deletions variables.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ INC_ENTITY_ID_URL_ENCODED = "https:%2F%2Ffm.incommon.org%2Fsp"

# InCommon URN-style entityID
INC_ENTITY_ID_URN = "urn:mace:incommon:internet2.edu"

# InCommon collection of all IdPs
INC_ALL_IDPS = "idps/all"

0 comments on commit bb06f3c

Please sign in to comment.