29 references to PackageFeedStatus
Microsoft.DotNet.Build.Tasks.Feed (19)
src\common\AzureStorageUtils.cs (9)
207
public static async Task<
PackageFeedStatus
> CompareLocalPackageToFeedPackage(
239
public static async Task<
PackageFeedStatus
> CompareLocalPackageToFeedPackage(
248
PackageFeedStatus
result =
PackageFeedStatus
.Unknown;
266
result =
PackageFeedStatus
.ExistsAndDifferent;
278
result =
PackageFeedStatus
.ExistsAndDifferent;
287
result = streamsMatch ?
PackageFeedStatus
.ExistsAndIdenticalToLocal :
PackageFeedStatus
.ExistsAndDifferent;
297
result =
PackageFeedStatus
.DoesNotExist;
src\PublishArtifactsInManifestBase.cs (10)
1372
Func<string, string, HttpClient, MsBuildUtils.TaskLoggingHelper, Task<
PackageFeedStatus
>> CompareLocalPackageToFeedPackageCallBack = null,
1380
var
packageStatus =
PackageFeedStatus
.Unknown;
1396
packageStatus =
PackageFeedStatus
.ExistsAndIdenticalToLocal;
1407
case
PackageFeedStatus
.ExistsAndIdenticalToLocal:
1412
case
PackageFeedStatus
.ExistsAndDifferent:
1426
while (packageStatus !=
PackageFeedStatus
.ExistsAndIdenticalToLocal && // Success
1427
packageStatus !=
PackageFeedStatus
.ExistsAndDifferent && // Give up: Non-retriable error
1430
if (packageStatus !=
PackageFeedStatus
.ExistsAndIdenticalToLocal)
1444
if (packageStatus !=
PackageFeedStatus
.ExistsAndIdenticalToLocal && nugetResult?.ExitCode != 0)
Microsoft.DotNet.Build.Tasks.Feed.Tests (10)
GeneralTests.cs (6)
104
[InlineData("", HttpStatusCode.NotFound,
PackageFeedStatus
.DoesNotExist)]
105
[InlineData("test-package-b", HttpStatusCode.OK,
PackageFeedStatus
.ExistsAndDifferent)]
106
[InlineData("test-package-a", HttpStatusCode.OK,
PackageFeedStatus
.ExistsAndIdenticalToLocal)]
107
[InlineData("", HttpStatusCode.InternalServerError,
PackageFeedStatus
.Unknown)]
111
PackageFeedStatus
expectedResult)
127
var
result = await CompareLocalPackageToFeedPackage(
PublishArtifactsInManifestTests.cs (4)
106
Func<string, string, HttpClient, MsBuildUtils.TaskLoggingHelper, Task<
PackageFeedStatus
>> testCompareLocalPackage = async (string localPackageFullPath, string packageContentUrl, HttpClient client, MsBuildUtils.TaskLoggingHelper log) =>
112
return localPackageMatchesFeed ?
PackageFeedStatus
.ExistsAndIdenticalToLocal :
PackageFeedStatus
.ExistsAndDifferent;
116
return
PackageFeedStatus
.DoesNotExist;