Skip to content

Commit

Permalink
chore: rename TEST_AUTH_TOKEN to TEST_API_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 committed Apr 19, 2024
1 parent bffb35a commit e628140
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
grpc-web: true
runs-on: ${{ matrix.os }}
env:
TEST_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}

steps:
- name: Get current time
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-push-to-main-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
grpc-web: true
runs-on: ${{ matrix.os }}
env:
TEST_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}

steps:
- name: Get current time
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ Unless you are testing older .NET runtimes on Windows, you should run the tests
- https://dotnet.microsoft.com/en-us/download/dotnet/6.0

```
TEST_AUTH_TOKEN=$your_momento_token make test-net6
TEST_API_KEY=$your_momento_token make test-net6
```

To test against older .NET runtimes run:

```
TEST_AUTH_TOKEN=$your_momento_token make test-net-framework
TEST_API_KEY=$your_momento_token make test-net-framework
```

To run specific tests:

```
TEST_AUTH_TOKEN=$your_momento_token dotnet test --framework net6.0 --filter "FullyQualifiedName~CacheDataTest"
TEST_API_KEY=$your_momento_token dotnet test --framework net6.0 --filter "FullyQualifiedName~CacheDataTest"
```
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CacheEagerConnectionTest
builder.SetMinimumLevel(LogLevel.Information);
});
private readonly TimeSpan defaultTtl = TimeSpan.FromMinutes(1);
private readonly ICredentialProvider authProvider = new EnvMomentoTokenProvider("TEST_AUTH_TOKEN");
private readonly ICredentialProvider authProvider = new EnvMomentoTokenProvider("TEST_API_KEY");

[Fact]
public void CacheClientConstructor_LazyConnection()
Expand Down
6 changes: 3 additions & 3 deletions tests/Integration/Momento.Sdk.Tests/Fixtures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CacheClientFixture : IDisposable

public CacheClientFixture()
{
AuthProvider = new EnvMomentoTokenProvider("TEST_AUTH_TOKEN");
AuthProvider = new EnvMomentoTokenProvider("TEST_API_KEY");
CacheName = $"dotnet-integration-{Utils.NewGuidString()}";
Client = new TestCacheClient(Configurations.Laptop.Latest(LoggerFactory.Create(builder =>
{
Expand Down Expand Up @@ -60,7 +60,7 @@ public class TopicClientFixture : IDisposable

public TopicClientFixture()
{
AuthProvider = new EnvMomentoTokenProvider("TEST_AUTH_TOKEN");
AuthProvider = new EnvMomentoTokenProvider("TEST_API_KEY");
Client = new TopicClient(TopicConfigurations.Laptop.latest(LoggerFactory.Create(builder =>
{
builder.AddSimpleConsole(options =>
Expand Down Expand Up @@ -96,7 +96,7 @@ public class AuthClientFixture : IDisposable

public AuthClientFixture()
{
AuthProvider = new EnvMomentoTokenProvider("TEST_AUTH_TOKEN");
AuthProvider = new EnvMomentoTokenProvider("TEST_API_KEY");
Client = new AuthClient(AuthConfigurations.Default.Latest(LoggerFactory.Create(builder =>
{
builder.AddSimpleConsole(options =>
Expand Down

0 comments on commit e628140

Please sign in to comment.