Skip to content

Commit

Permalink
fix(oceanic): Use new Nattrak API endpoint
Browse files Browse the repository at this point in the history
Format remains the same, new URL.

Resolves VATSIM-UK#452
  • Loading branch information
AndyTWF committed Mar 27, 2022
1 parent 67e96bc commit 717ad68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugin/oceanic/OceanicEventHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace UKControllerPlugin::Oceanic {
Dialog::DialogManager& dialogManager;

// The URL to find nattrak
const std::string nattrakUrl = "https://nattrak.vatsim.net/pluginapi.php";
const std::string nattrakUrl = "https://nattrak.vatsim.net/api/plugins";

// Returned if clearance doesnt exist
const Clearance invalidClearance = Clearance("NOTAVALIDCLEARANCESORRY");
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/oceanic/OceanicEventHandlerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace UKControllerPluginTest {

void SimulateNattrakCall(bool curlError, uint64_t statusCode, std::string body)
{
CurlRequest expectedRequest("https://nattrak.vatsim.net/pluginapi.php", CurlRequest::METHOD_GET);
CurlRequest expectedRequest("https://nattrak.vatsim.net/api/plugins", CurlRequest::METHOD_GET);
EXPECT_CALL(mockCurl, MakeCurlRequest(expectedRequest))
.Times(1)
.WillOnce(Return(CurlResponse(body, curlError, statusCode)));
Expand Down

0 comments on commit 717ad68

Please sign in to comment.