tests/NuGetGallery.FunctionalTests/ErrorHandling/ErrorHandlingTests.cs
/// <summary>
/// Verify the behavior when a URL with restricted characters is used.
/// </summary>
Verify the behavior when a URL with restricted characters is used.
Verify the behavior when a URL with restricted characters is used .
[Theory]
        [Priority(2)]
        [Category("P2Tests")]
        [InlineData("/api/v2/lazy/%3E=1.0.5%20%3C1.1")]
        [InlineData("/api/v2/mysql/*")]
        [InlineData("/api/v2/comb/%3E=0.0.2")]
        [InlineData("/.nuGetV3/feed.json:properties")]
        [InlineData("/.nuGetV3/registration-semver2/serilog/page/0.1.6/1.2.47.json:properties")]
        public async Task RejectedUrl(string relativePath)
        {
            var response = await GetTestResponseAsync(relativePath);
            Validator.SimpleHtml(HttpStatusCode.BadRequest)(response);
        }
[ Theory ] [ Priority ( 2 ) ] [ Category ( " " ) ] [ InlineData ( " " ) ] [ InlineData ( " " ) ] [ InlineData ( " " ) ] [ InlineData ( " " ) ] [ InlineData ( " " ) ] public async Task RejectedUrl ( string relativePath ) { var response = await GetTestResponseAsync ( relativePath ) ; Validator . SimpleHtml ( HttpStatusCode . BadRequest ) ( response ) ; }
Verify the behavior when a URL with restricted characters is used.
Verify the behavior when a URL with restricted characters is used .
// Arrange & Act // Assert
relativePath
string