Public Access
Added dev impersonation and changed api a little bit
This commit is contained in:
1 parent
1b08e7902c
commit
ac97442312
8 files changed
+104
-18
No files matched your search
@@ -43,7 +43,7 @@ class SteamApiServiceTest {
|
||||
}
|
||||
""";
|
||||
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v0001/")))
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v1/")))
|
||||
.andExpect(queryParam("steamid", steamId))
|
||||
.andExpect(queryParam("key", "test-api-key"))
|
||||
.andRespond(withSuccess(jsonResponse, MediaType.APPLICATION_JSON));
|
||||
@@ -102,7 +102,7 @@ class SteamApiServiceTest {
|
||||
}
|
||||
""";
|
||||
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v0001/")))
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v1/")))
|
||||
.andExpect(queryParam("steamid", steamId))
|
||||
.andExpect(queryParam("key", "test-api-key"))
|
||||
.andRespond(withSuccess(jsonResponse, MediaType.APPLICATION_JSON));
|
||||
@@ -130,7 +130,7 @@ class SteamApiServiceTest {
|
||||
}
|
||||
""";
|
||||
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v0001/")))
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v1/")))
|
||||
.andRespond(withSuccess(jsonResponse, MediaType.APPLICATION_JSON));
|
||||
|
||||
List<SteamOwnedGamesResponse.Game> result = steamApiService.getOwnedGames(steamId);
|
||||
@@ -178,7 +178,7 @@ class SteamApiServiceTest {
|
||||
server.expect(requestTo(containsString("/ISteamUser/GetPlayerSummaries/v0002/")))
|
||||
.andRespond(withSuccess(summaryJson, MediaType.APPLICATION_JSON));
|
||||
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v0001/")))
|
||||
server.expect(requestTo(containsString("/IPlayerService/GetOwnedGames/v1/")))
|
||||
.andRespond(withSuccess(gamesJson, MediaType.APPLICATION_JSON));
|
||||
|
||||
Optional<SteamProfileAndGamesResponse> result = steamApiService.getFullPlayerProfile(steamId);
|
||||
|
||||
Reference in new issue
Block a user