Skip to content

Commit 118c55f

Browse files
authored
Improve functional tests runtime (#6870)
1 parent 694cde9 commit 118c55f

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/NuGetGallery.FunctionalTests/Commandline/NuGetCommandLineTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ public async Task UploadAndDownloadPackageWithMinClientVersion()
137137

138138
[PackageLockFact]
139139
[Description("Verifies push version, and delete are not allowed on a locked package")]
140-
[Priority(2)]
141-
[Category("P2Tests")]
140+
[Priority(1)]
141+
[Category("P1Tests")]
142142
public async Task LockedPackageCannotBeModified()
143143
{
144144
// Arrange

tests/NuGetGallery.FunctionalTests/License/LicenseTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public LicenseTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
2121

2222
[Fact]
2323
[Description("Push an invalidp package with license expression and verify uploading is blocked")]
24-
[Priority(2)]
25-
[Category("P2Tests")]
24+
[Priority(1)]
25+
[Category("P1Tests")]
2626
public async Task UploadInValidPackageWithLicenseExpression()
2727
{
2828
// Arrange
@@ -45,8 +45,8 @@ public async Task UploadInValidPackageWithLicenseExpression()
4545

4646
[Theory]
4747
[Description("Push an invalid package with license file and verify uploading is blocked")]
48-
[Priority(2)]
49-
[Category("P2Tests")]
48+
[Priority(1)]
49+
[Category("P1Tests")]
5050
[InlineData("https://testNugetLicenseUrl", "license.txt", "license.txt", "It's a license", "when a license file is packaged, <licenseUrl> must be set to ")]
5151
[InlineData("https://aka.ms/deprecateLicenseUrl", "licensefolder\\license.txt", "license.txt", "It's a license", "does not exist in the package")]
5252
public async Task UploadInValidPackageWithLicenseFile(string licenseUrl, string licenseFile, string licenseFileName, string licenseFileContents, string expectedErrorMessage)

tests/NuGetGallery.FunctionalTests/PackageCreation/ApiPushTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public ApiPushTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
2828

2929
[Fact]
3030
[Description("Pushes many packages of the same ID and version. Verifies exactly one push succeeds and the rest fail with a conflict.")]
31-
[Priority(2)]
32-
[Category("P2Tests")]
31+
[Priority(1)]
32+
[Category("P1Tests")]
3333
public async Task DuplicatePushesAreRejectedAndNotDeleted()
3434
{
3535
// Arrange

tests/NuGetGallery.FunctionalTests/Statistics/PackageStatisticsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public async Task PackageFeedStatsSanityTest()
5353
/// </summary>
5454
[Fact]
5555
[Description("Verify the webresponse for stats/downloads/last6weeks/ contains the right amount of packages")]
56-
[Priority(2)]
57-
[Category("P2Tests")]
56+
[Priority(1)]
57+
[Category("P1Tests")]
5858
public async Task PackageFeedCountParameterTest()
5959
{
6060
var request = WebRequest.Create(UrlHelper.V2FeedRootUrl + @"stats/downloads/last6weeks/");

tests/NuGetGallery.FunctionalTests/TyposquattingCheck/TyposquattingCheckForUploadPackageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public TyposquattingCheckForUploadPackageTests(ITestOutputHelper testOutputHelpe
2121

2222
[TyposquattingTestFact]
2323
[Description("Push a package with a typosquatting Id and verify uploading is blocked")]
24-
[Priority(2)]
25-
[Category("P2Tests")]
24+
[Priority(1)]
25+
[Category("P1Tests")]
2626
public async Task UploadTyposquattingPackageAndBlockUser()
2727
{
2828
var packageId = "newtonsoft-json";

0 commit comments

Comments
 (0)