Merge pull request 'day 7: Authentication and Authorization' (#2) from Sami/RestAssured:main into main
Reviewed-on: #2
This commit is contained in:
commit
20ea80437b
@ -70,4 +70,12 @@ public class AuthenticationTest {
|
|||||||
.get("https://api.github.com/user/repos")
|
.get("https://api.github.com/user/repos")
|
||||||
.then().statusCode(200).log().all();
|
.then().statusCode(200).log().all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(priority = 7)
|
||||||
|
void testAPIKeyAuth() {
|
||||||
|
|
||||||
|
given().queryParam("appid", "53f8437943998c07789a6693aec69607")
|
||||||
|
.when().get("https://api.openweathermap.org/data/2.5/weather?q=Chicago&appid=53f8437943998c07789a6693aec69607")
|
||||||
|
.then().statusCode(200).log().all();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user