From e93f4016845e294ecafdb70999b7613b86f21f4f Mon Sep 17 00:00:00 2001 From: Sami Date: Sat, 12 Oct 2024 03:09:19 -0400 Subject: [PATCH] day 7: Authentication and Authorization --- .../java/zacksolutions/DaySeven/AuthenticationTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/zacksolutions/DaySeven/AuthenticationTest.java b/src/test/java/zacksolutions/DaySeven/AuthenticationTest.java index df17c90..cc0ea0b 100644 --- a/src/test/java/zacksolutions/DaySeven/AuthenticationTest.java +++ b/src/test/java/zacksolutions/DaySeven/AuthenticationTest.java @@ -70,4 +70,12 @@ public class AuthenticationTest { .get("https://api.github.com/user/repos") .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(); + } }