Skip to content

Commit 794bf85

Browse files
Fixing tests for the configuration endpoint (#384)
1 parent 7542cc1 commit 794bf85

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Consul.Test/ConfigurationTest.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ namespace Consul.Test
2929
[Collection(nameof(ExclusiveCollection))]
3030
public class ConfigurationTest : BaseFixture
3131
{
32-
[Theory]
33-
[InlineData("http")]
34-
[InlineData("https")]
35-
public async Task Configuration_ApplyConfig(string protocol)
32+
[Fact]
33+
public async Task Configuration_ApplyConfig()
3634
{
3735
var payload = new ServiceDefaultsEntry
3836
{
3937
Kind = "service-defaults",
4038
Name = "web",
41-
Protocol = protocol
39+
Protocol = "http"
4240
};
4341

4442
var writeResult = await _client.Configuration.ApplyConfig(payload);
@@ -57,14 +55,14 @@ public async Task Configuration_ListConfig()
5755
{
5856
Kind = "service-defaults",
5957
Name = "web",
60-
Protocol = "https"
58+
Protocol = "http"
6159
};
6260

6361
var secondPayload = new ServiceDefaultsEntry
6462
{
6563
Kind = "service-defaults",
6664
Name = "db",
67-
Protocol = "https"
65+
Protocol = "http"
6866
};
6967
var writeResult = await _client.Configuration.ApplyConfig(firstPayload);
7068
Assert.Equal(HttpStatusCode.OK, writeResult.StatusCode);

0 commit comments

Comments
 (0)