diff --git a/Octokit.Tests/Clients/MetaClientTests.cs b/Octokit.Tests/Clients/MetaClientTests.cs index c804a39726..9e5b5b584b 100644 --- a/Octokit.Tests/Clients/MetaClientTests.cs +++ b/Octokit.Tests/Clients/MetaClientTests.cs @@ -12,15 +12,21 @@ public class TheGetMetadataMethod [Fact] public async Task RequestsTheMetadataEndpoint() { - var meta = new Meta( + var meta = new Meta( false, "12345ABCDE", new[] { "1.1.1.1/24", "1.1.1.2/24" }, new[] { "1.1.2.1/24", "1.1.2.2/24" }, new[] { "1.1.3.1/24", "1.1.3.2/24" }, - new[] { "1.1.4.1", "1.1.4.2" } + new[] { "1.1.4.1/24", "1.1.4.2/24" }, + new[] { "1.1.5.1/24", "1.1.5.2/24" }, + new[] { "1.1.6.1/24", "1.1.6.2/24" }, + new[] { "1.1.7.1", "1.1.7.2" }, + new[] { "1.1.8.1/24", "1.1.8.2/24" }, + new[] { "1.1.9.1", "1.1.9.2" } ); + var apiConnection = Substitute.For(); apiConnection.Get(Arg.Is(u => u.ToString() == "meta")).Returns(Task.FromResult(meta)); var client = new MetaClient(apiConnection); @@ -28,11 +34,18 @@ public async Task RequestsTheMetadataEndpoint() var result = await client.GetMetadata(); Assert.False(result.VerifiablePasswordAuthentication); + #pragma warning disable CS0618 // Type or member is obsolete Assert.Equal("12345ABCDE", result.GitHubServicesSha); + #pragma warning restore CS0618 // Type or member is obsolete Assert.Equal(result.Hooks, new[] { "1.1.1.1/24", "1.1.1.2/24" }); - Assert.Equal(result.Git, new[] { "1.1.2.1/24", "1.1.2.2/24" }); - Assert.Equal(result.Pages, new[] { "1.1.3.1/24", "1.1.3.2/24" }); - Assert.Equal(result.Importer, new[] { "1.1.4.1", "1.1.4.2" }); + Assert.Equal(result.Web, new[] { "1.1.2.1/24", "1.1.2.2/24" }); + Assert.Equal(result.Api, new[] { "1.1.3.1/24", "1.1.3.2/24" }); + Assert.Equal(result.Git, new[] { "1.1.4.1/24", "1.1.4.2/24" }); + Assert.Equal(result.Packages, new[] { "1.1.5.1/24", "1.1.5.2/24" }); + Assert.Equal(result.Pages, new[] { "1.1.6.1/24", "1.1.6.2/24" }); + Assert.Equal(result.Importer, new[] { "1.1.7.1", "1.1.7.2" }); + Assert.Equal(result.Actions, new[] { "1.1.8.1/24", "1.1.8.2/24" }); + Assert.Equal(result.Dependabot, new[] { "1.1.9.1", "1.1.9.2" }); apiConnection.Received() .Get(Arg.Is(u => u.ToString() == "meta"));