Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/docs/http-proxy-mi…
Browse files Browse the repository at this point in the history
…ddleware-2.0.7
  • Loading branch information
marcin-krystianc authored Oct 23, 2024
2 parents 9b351eb + 794bf85 commit 3dd7b6b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Consul.Test/ConfigurationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,14 @@ namespace Consul.Test
[Collection(nameof(ExclusiveCollection))]
public class ConfigurationTest : BaseFixture
{
[Theory]
[InlineData("http")]
[InlineData("https")]
public async Task Configuration_ApplyConfig(string protocol)
[Fact]
public async Task Configuration_ApplyConfig()
{
var payload = new ServiceDefaultsEntry
{
Kind = "service-defaults",
Name = "web",
Protocol = protocol
Protocol = "http"
};

var writeResult = await _client.Configuration.ApplyConfig(payload);
Expand All @@ -57,14 +55,14 @@ public async Task Configuration_ListConfig()
{
Kind = "service-defaults",
Name = "web",
Protocol = "https"
Protocol = "http"
};

var secondPayload = new ServiceDefaultsEntry
{
Kind = "service-defaults",
Name = "db",
Protocol = "https"
Protocol = "http"
};
var writeResult = await _client.Configuration.ApplyConfig(firstPayload);
Assert.Equal(HttpStatusCode.OK, writeResult.StatusCode);
Expand Down

0 comments on commit 3dd7b6b

Please sign in to comment.