Skip to content

Merge pull request #39 from karl-sjogren/dependabot/github_actions/ac… #20

Merge pull request #39 from karl-sjogren/dependabot/github_actions/ac…

Merge pull request #39 from karl-sjogren/dependabot/github_actions/ac… #20

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / 🧪 .NET test results succeeded Dec 27, 2023 in 0s

🧪 .NET test results ✅

Tests passed successfully

Report Passed Failed Skipped Time
tests/RobotsTxt.Samples.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_12.trx 1✅ 3s
tests/RobotsTxt.Samples.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_15.trx 1✅ 1s
tests/RobotsTxt.Samples.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_16.trx 1✅ 1s
tests/RobotsTxt.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_12.trx 24✅ 3s
tests/RobotsTxt.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_14.trx 24✅ 2s
tests/RobotsTxt.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_16.trx 24✅ 1s

✅ tests/RobotsTxt.Samples.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_12.trx

1 tests were completed in 3s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RobotsTxt.Samples.Tests.MiddlewareTests 1✅ 389ms

✅ RobotsTxt.Samples.Tests.MiddlewareTests

✅ CoolRobotsTxtProviderShouldReturnAnAllowAllToTheMiddlewareAsync

✅ tests/RobotsTxt.Samples.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_15.trx

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RobotsTxt.Samples.Tests.MiddlewareTests 1✅ 169ms

✅ RobotsTxt.Samples.Tests.MiddlewareTests

✅ CoolRobotsTxtProviderShouldReturnAnAllowAllToTheMiddlewareAsync

✅ tests/RobotsTxt.Samples.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_16.trx

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RobotsTxt.Samples.Tests.MiddlewareTests 1✅ 338ms

✅ RobotsTxt.Samples.Tests.MiddlewareTests

✅ CoolRobotsTxtProviderShouldReturnAnAllowAllToTheMiddlewareAsync

✅ tests/RobotsTxt.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_12.trx

24 tests were completed in 3s with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RobotsTxt.Tests.RobotsTxtMiddlewareTests 6✅ 462ms
RobotsTxt.Tests.RobotsTxtOptionsBuilderTests 11✅ 122ms
RobotsTxt.Tests.ServiceCollectionExtensionTests 7✅ 341ms

✅ RobotsTxt.Tests.RobotsTxtMiddlewareTests

✅ RobotsTxtShouldFallThroughOnInvalidPathAsync
✅ RobotsTxtShouldRenderACommentIfEmptyAsync
✅ RobotsTxtShouldRenderAllowAllCorrectlyAsync
✅ RobotsTxtShouldRenderDenyAllCorrectlyAsync
✅ RobotsTxtShouldRenderForTheCorrextEnvironmentAsync
✅ RobotsTxtShouldRenderOnCorrectPathAsync

✅ RobotsTxt.Tests.RobotsTxtOptionsBuilderTests

✅ ShouldClearPreviousSectionsWhenCallingAllowAll
✅ ShouldClearPreviousSectionsWhenCallingDenyAll
✅ ShouldNotThrowOnInvalidEnvironment
✅ ShouldNotThrowOnValidSitemapUrl
✅ ShouldThrowOnInvalidEnvironment(environment: "")
✅ ShouldThrowOnInvalidEnvironment(environment: "\t")
✅ ShouldThrowOnInvalidEnvironment(environment: null)
✅ ShouldThrowOnInvalidSitemapUrl(url: "")
✅ ShouldThrowOnInvalidSitemapUrl(url: "/")
✅ ShouldThrowOnInvalidSitemapUrl(url: "/sitemap.xml")
✅ ShouldThrowOnInvalidSitemapUrl(url: null)

✅ RobotsTxt.Tests.ServiceCollectionExtensionTests

✅ AddStaticRobotsTxt_WhenRegisteringMultipleOptionsWithDifferentHostNameOptions_RegistersProviderAsScoped
✅ AddStaticRobotsTxt_WhenRegisteringWithoutHostname_RegistersProviderAsSingleton
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "cool-horses-with-glasses.com", sitemapUrl: "https://cool-horses-with-glasses.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "example-com-test-site.com", sitemapUrl: "https://example.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "example.com", sitemapUrl: "https://example.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "squirrels-with-hats.com", sitemapUrl: "https://sample-website.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "www.example.com", sitemapUrl: "https://example.com/sitemap.xml")

✅ tests/RobotsTxt.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_14.trx

24 tests were completed in 2s with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RobotsTxt.Tests.RobotsTxtMiddlewareTests 6✅ 318ms
RobotsTxt.Tests.RobotsTxtOptionsBuilderTests 11✅ 41ms
RobotsTxt.Tests.ServiceCollectionExtensionTests 7✅ 339ms

✅ RobotsTxt.Tests.RobotsTxtMiddlewareTests

✅ RobotsTxtShouldFallThroughOnInvalidPathAsync
✅ RobotsTxtShouldRenderACommentIfEmptyAsync
✅ RobotsTxtShouldRenderAllowAllCorrectlyAsync
✅ RobotsTxtShouldRenderDenyAllCorrectlyAsync
✅ RobotsTxtShouldRenderForTheCorrextEnvironmentAsync
✅ RobotsTxtShouldRenderOnCorrectPathAsync

✅ RobotsTxt.Tests.RobotsTxtOptionsBuilderTests

✅ ShouldClearPreviousSectionsWhenCallingAllowAll
✅ ShouldClearPreviousSectionsWhenCallingDenyAll
✅ ShouldNotThrowOnInvalidEnvironment
✅ ShouldNotThrowOnValidSitemapUrl
✅ ShouldThrowOnInvalidEnvironment(environment: "")
✅ ShouldThrowOnInvalidEnvironment(environment: "\t")
✅ ShouldThrowOnInvalidEnvironment(environment: null)
✅ ShouldThrowOnInvalidSitemapUrl(url: "")
✅ ShouldThrowOnInvalidSitemapUrl(url: "/")
✅ ShouldThrowOnInvalidSitemapUrl(url: "/sitemap.xml")
✅ ShouldThrowOnInvalidSitemapUrl(url: null)

✅ RobotsTxt.Tests.ServiceCollectionExtensionTests

✅ AddStaticRobotsTxt_WhenRegisteringMultipleOptionsWithDifferentHostNameOptions_RegistersProviderAsScoped
✅ AddStaticRobotsTxt_WhenRegisteringWithoutHostname_RegistersProviderAsSingleton
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "cool-horses-with-glasses.com", sitemapUrl: "https://cool-horses-with-glasses.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "example-com-test-site.com", sitemapUrl: "https://example.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "example.com", sitemapUrl: "https://example.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "squirrels-with-hats.com", sitemapUrl: "https://sample-website.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "www.example.com", sitemapUrl: "https://example.com/sitemap.xml")

✅ tests/RobotsTxt.Tests/TestResults/_fv-az773-27_2023-12-27_08_30_16.trx

24 tests were completed in 1s with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RobotsTxt.Tests.RobotsTxtMiddlewareTests 6✅ 325ms
RobotsTxt.Tests.RobotsTxtOptionsBuilderTests 11✅ 104ms
RobotsTxt.Tests.ServiceCollectionExtensionTests 7✅ 309ms

✅ RobotsTxt.Tests.RobotsTxtMiddlewareTests

✅ RobotsTxtShouldFallThroughOnInvalidPathAsync
✅ RobotsTxtShouldRenderACommentIfEmptyAsync
✅ RobotsTxtShouldRenderAllowAllCorrectlyAsync
✅ RobotsTxtShouldRenderDenyAllCorrectlyAsync
✅ RobotsTxtShouldRenderForTheCorrextEnvironmentAsync
✅ RobotsTxtShouldRenderOnCorrectPathAsync

✅ RobotsTxt.Tests.RobotsTxtOptionsBuilderTests

✅ ShouldClearPreviousSectionsWhenCallingAllowAll
✅ ShouldClearPreviousSectionsWhenCallingDenyAll
✅ ShouldNotThrowOnInvalidEnvironment
✅ ShouldNotThrowOnValidSitemapUrl
✅ ShouldThrowOnInvalidEnvironment(environment: "")
✅ ShouldThrowOnInvalidEnvironment(environment: "\t")
✅ ShouldThrowOnInvalidEnvironment(environment: null)
✅ ShouldThrowOnInvalidSitemapUrl(url: "")
✅ ShouldThrowOnInvalidSitemapUrl(url: "/")
✅ ShouldThrowOnInvalidSitemapUrl(url: "/sitemap.xml")
✅ ShouldThrowOnInvalidSitemapUrl(url: null)

✅ RobotsTxt.Tests.ServiceCollectionExtensionTests

✅ AddStaticRobotsTxt_WhenRegisteringMultipleOptionsWithDifferentHostNameOptions_RegistersProviderAsScoped
✅ AddStaticRobotsTxt_WhenRegisteringWithoutHostname_RegistersProviderAsSingleton
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "cool-horses-with-glasses.com", sitemapUrl: "https://cool-horses-with-glasses.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "example-com-test-site.com", sitemapUrl: "https://example.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "example.com", sitemapUrl: "https://example.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "squirrels-with-hats.com", sitemapUrl: "https://sample-website.com/sitemap.xml")
✅ CreateRobotsTxtProviderForMultipleHosts_WhenCalledWithDifferentHostnames_ReturnsExpectedResultAsync(hostname: "www.example.com", sitemapUrl: "https://example.com/sitemap.xml")