diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c09495fc..6c9e253e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/on-push-to-main-branch.yaml b/.github/workflows/on-push-to-main-branch.yaml index 01586c0d..cd17e8ee 100644 --- a/.github/workflows/on-push-to-main-branch.yaml +++ b/.github/workflows/on-push-to-main-branch.yaml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aa89a2f2..70db0f27 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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" ``` diff --git a/tests/Integration/Momento.Sdk.Tests/CacheEagerConnectionTest.cs b/tests/Integration/Momento.Sdk.Tests/CacheEagerConnectionTest.cs index 6b1541e4..6e095aa5 100644 --- a/tests/Integration/Momento.Sdk.Tests/CacheEagerConnectionTest.cs +++ b/tests/Integration/Momento.Sdk.Tests/CacheEagerConnectionTest.cs @@ -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() diff --git a/tests/Integration/Momento.Sdk.Tests/Fixtures.cs b/tests/Integration/Momento.Sdk.Tests/Fixtures.cs index 214ab2e5..370e9533 100644 --- a/tests/Integration/Momento.Sdk.Tests/Fixtures.cs +++ b/tests/Integration/Momento.Sdk.Tests/Fixtures.cs @@ -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 => { @@ -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 => @@ -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 =>