Skip to content

Commit 99bf996

Browse files
Alias testing. (Azure#38366)
* alias datamovement.blobs in datamovement.tests * aliased in other package * missed one
1 parent 52c6f64 commit 99bf996

26 files changed

+69
-27
lines changed

sdk/storage/Azure.Storage.Common/src/Shared/StorageVersionExtensions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
Azure.Storage.Files.DataLake.DataLakeClientOptions.ServiceVersion;
1717
#elif ChangeFeedSDK
1818
Azure.Storage.Blobs.BlobClientOptions.ServiceVersion;
19+
#elif DataMovementSDK
20+
Azure.Storage.Blobs.BlobClientOptions.ServiceVersion;
1921
#elif BlobDataMovementSDK
2022
Azure.Storage.Blobs.BlobClientOptions.ServiceVersion;
2123
#else
@@ -37,7 +39,7 @@ internal static class StorageVersionExtensions
3739
/// Gets the latest version of the service supported by this SDK.
3840
/// </summary>
3941
public const ServiceVersion LatestVersion =
40-
#if BlobSDK || QueueSDK || FileSDK || DataLakeSDK || ChangeFeedSDK || BlobDataMovementSDK
42+
#if BlobSDK || QueueSDK || FileSDK || DataLakeSDK || ChangeFeedSDK || DataMovementSDK|| BlobDataMovementSDK
4143
ServiceVersion.V2023_08_03;
4244
#else
4345
ERROR_STORAGE_SERVICE_NOT_DEFINED;
@@ -47,7 +49,7 @@ internal static class StorageVersionExtensions
4749
/// Gets the latest version of the service supported by this SDK.
4850
/// </summary>
4951
internal const ServiceVersion MaxVersion =
50-
#if BlobSDK || QueueSDK || FileSDK || DataLakeSDK || ChangeFeedSDK || BlobDataMovementSDK
52+
#if BlobSDK || QueueSDK || FileSDK || DataLakeSDK || ChangeFeedSDK || DataMovementSDK|| BlobDataMovementSDK
5153
ServiceVersion.V2023_08_03;
5254
#else
5355
ERROR_STORAGE_SERVICE_NOT_DEFINED;

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/Azure.Storage.DataMovement.Blobs.Tests.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88
<ItemGroup>
9-
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\Azure.Storage.DataMovement.Blobs.csproj" />
9+
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\Azure.Storage.DataMovement.Blobs.csproj">
10+
<Aliases>DMBlobs</Aliases>
11+
</ProjectReference>
1012
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\Azure.Storage.DataMovement\src\Azure.Storage.DataMovement.csproj" />
1113
</ItemGroup>
1214
<ItemGroup>

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/BlobStorageResourceProviderTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
extern alias DMBlobs;
45
using System;
5-
using System.Buffers.Text;
6-
using System.Collections.Generic;
7-
using System.Linq;
8-
using System.Text;
9-
using System.Threading.Tasks;
106
using Azure.Core;
117
using Azure.Storage.Blobs;
128
using Azure.Storage.Blobs.Specialized;
139
using Azure.Storage.Tests;
10+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
1411
using Moq;
1512
using NUnit.Framework;
1613

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockAppendBlobStorageResource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
extern alias DMBlobs;
45
using System.Threading;
56
using System.Threading.Tasks;
67
using Azure.Storage.Blobs.Specialized;
8+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
79

810
namespace Azure.Storage.DataMovement.Blobs.Tests
911
{

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockBlobStorageResourceContainer.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using System;
4+
extern alias DMBlobs;
55
using System.Collections.Generic;
6-
using System.Linq;
76
using System.Runtime.CompilerServices;
8-
using System.Text;
97
using System.Threading;
10-
using System.Threading.Tasks;
118
using Azure.Storage.Blobs;
9+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
1210

1311
namespace Azure.Storage.DataMovement.Blobs.Tests
1412
{

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockBlockBlobStorageResource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
extern alias DMBlobs;
45
using System.Threading;
56
using System.Threading.Tasks;
67
using Azure.Storage.Blobs.Specialized;
8+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
79

810
namespace Azure.Storage.DataMovement.Blobs.Tests
911
{

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockPageBlobStorageResource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
extern alias DMBlobs;
45
using System.Threading;
56
using System.Threading.Tasks;
67
using Azure.Storage.Blobs.Specialized;
8+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
79

810
namespace Azure.Storage.DataMovement.Blobs.Tests
911
{

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/RehydrateBlobResourceTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
extern alias DMBlobs;
45
using System;
56
using System.Collections.Generic;
67
using System.IO;
7-
using System.Linq;
88
using System.Threading.Tasks;
99
using Azure.Storage.Blobs.Models;
10-
using Azure.Storage.DataMovement.Blobs;
11-
using Azure.Storage.DataMovement.JobPlan;
1210
using Azure.Storage.Test;
11+
using DMBlobs::Azure.Storage.DataMovement.JobPlan;
12+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
1313
using Moq;
1414
using NUnit.Framework;
1515
using static Azure.Storage.DataMovement.Tests.TransferUtility;

sdk/storage/Azure.Storage.DataMovement.Blobs/tests/StorageResourceEtagManagementTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
extern alias DMBlobs;
45
using System;
56
using System.Collections.Generic;
67
using System.IO;
@@ -11,6 +12,7 @@
1112
using Azure.Storage.Blobs;
1213
using Azure.Storage.Blobs.Models;
1314
using Azure.Storage.Blobs.Specialized;
15+
using DMBlobs::Azure.Storage.DataMovement.Blobs;
1416
using Moq;
1517
using NUnit.Framework;
1618

sdk/storage/Azure.Storage.DataMovement/src/AssemblyInfo.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@
88
"012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265" +
99
"e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593d" +
1010
"aa7b11b4")]
11+
[assembly: InternalsVisibleTo("Azure.Storage.DataMovement.Blobs.Tests, PublicKey=" +
12+
"0024000004800000940000000602000000240000525341310004000001000100d15ddcb2968829" +
13+
"5338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc" +
14+
"012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265" +
15+
"e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593d" +
16+
"aa7b11b4")]
1117
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]

0 commit comments

Comments
 (0)