Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Adds a simple basic auth test for the /me endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemers committed Jun 15, 2017
1 parent bcef2c2 commit 09f8c1a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/groovy/com/stormpath/tck/me/MeIT.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,20 @@ class MeIT extends AbstractIT {
.spec(AccountResponseSpec.matchesAccount(account))
}

/**
* Test that Basic with user/password works against /me
*/
@Test(groups=["v100", "json"])
void meWithBasicAuthReturnsJsonUser() throws Exception {

given()
.auth().preemptive().basic(account.username, account.password)
.when()
.get(MeRoute)
.then()
.spec(AccountResponseSpec.matchesAccount(account))
}

/**
* We should not have linked resources.
* @see https://github.com/stormpath/stormpath-framework-tck/issues/64
Expand Down

0 comments on commit 09f8c1a

Please sign in to comment.