Skip to content

Commit

Permalink
Adjust API tests to fetch creds from globals (#7806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero authored Feb 21, 2024
1 parent 8595aff commit 7e61483
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Api/ApiTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public void Setup()
{
ReloadConfiguration();

TestAccount = Config.GetInt("job-user-id", 1);
TestToken = Config.Get("api-access-token", "EnterTokenHere");
TestOrganization = Config.Get("job-organization-id", "EnterOrgHere");
DataFolder = Config.Get("data-folder");
TestAccount = Globals.UserId;
TestToken = Globals.UserToken;
TestOrganization = Globals.OrganizationID;
DataFolder = Globals.DataFolder;

ApiClient = new Api.Api();
ApiClient.Initialize(TestAccount, TestToken, DataFolder);
Expand Down

0 comments on commit 7e61483

Please sign in to comment.