Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename TEST_AUTH_TOKEN to MOMENTO_API_KEY #553

Merged
merged 2 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
MOMENTO_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 }}
MOMENTO_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
MOMENTO_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
MOMENTO_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"
MOMENTO_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("MOMENTO_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("MOMENTO_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("MOMENTO_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("MOMENTO_API_KEY");
Client = new AuthClient(AuthConfigurations.Default.Latest(LoggerFactory.Create(builder =>
{
builder.AddSimpleConsole(options =>
Expand Down
Loading