Skip to content

Commit cf7178e

Browse files
authored
Switch to NuGetTestData for static test packages (#8324)
Progress on NuGet/Engineering#3513
1 parent fd7fe13 commit cf7178e

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

tests/NuGetGallery.FunctionalTests.Core/Constants.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ public static class Constants
3232
public const string StatsPageDefaultText = "Statistics last updated";
3333
public const string ContactOwnersText = "Your message has been sent to the owners of";
3434
public const string UnListedPackageText = "This package is unlisted and hidden from package listings";
35-
public const string TestAccount = "NugetTestAccount";
35+
public const string TestDataAccount = "NuGetTestData";
3636
public const string TestPackageId = "BaseTestPackage";
3737
public const string TestPackageIdDotNetTool = "BaseTestPackage.DotnetTool";
3838
public const string TestPackageIdARandomType = "BaseTestPackage.ARandomType";
3939
public const string TestPackageIdTemplate = "BaseTestPackage.Template";
4040
public const string TestPackageIdWithPrereleases = "BaseTestPackage.SearchFilters";
4141
public const string TestPackageIdNoStable = "BaseTestPackage.NoStable";
42-
public const string TestOrganizationCollaboratorPackageId = "BaseTestOrganizationCollaboratorPackage";
4342
public const string ReadOnlyModeError = "Error 503 - Read-only Mode";
4443
public const string UploadFailureMessage = "The package upload via Nuget.exe didnt succeed properly. Check the logs to see the process error and output stream";
4544
public const string PackageInstallFailureMessage = "Package install failed. Either the file is not present on disk or it is corrupted. Check logs for details";

tests/NuGetGallery.FunctionalTests/PackageRetrieval/PackageListTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public async Task MakeSureSortedByDownloadsWork(
3838
var sortByParam = string.IsNullOrEmpty(sortBy) ? string.Empty : $"&sortBy={sortBy}";
3939
var feedUrl = new Uri(
4040
new Uri(UrlHelper.BaseUrl),
41-
$"/packages?testData=true&q=owner%3A{Constants.TestAccount}{sortByParam}");
41+
$"/packages?testData=true&q=owner%3A{Constants.TestDataAccount}{sortByParam}");
4242

4343
// Act
4444
using (var httpClient = new HttpClient())
@@ -65,7 +65,7 @@ public async Task MakeSureLastUpdatedSortingWorks(string sortBy)
6565
var sortByParam = string.IsNullOrEmpty(sortBy) ? string.Empty : $"&sortBy={sortBy}";
6666
var feedUrl = new Uri(
6767
new Uri(UrlHelper.BaseUrl),
68-
$"/packages?testData=true&q=owner%3A{Constants.TestAccount}{sortByParam}");
68+
$"/packages?testData=true&q=owner%3A{Constants.TestDataAccount}{sortByParam}");
6969

7070
// Act
7171
using (var httpClient = new HttpClient())
@@ -97,7 +97,7 @@ public async Task ExpectPackageTypeFilterToWork(
9797
var packageTypeParam = string.IsNullOrEmpty(packageType) ? string.Empty : $"&packageType={packageType}";
9898
var feedUrl = new Uri(
9999
new Uri(UrlHelper.BaseUrl),
100-
$"/packages?testData=true&q=packageid%3A{Uri.EscapeUriString(id)}+owner%3A{Constants.TestAccount}{packageTypeParam}");
100+
$"/packages?testData=true&q=packageid%3A{Uri.EscapeUriString(id)}+owner%3A{Constants.TestDataAccount}{packageTypeParam}");
101101

102102
// Act
103103
using (var httpClient = new HttpClient())

0 commit comments

Comments
 (0)