Skip to content

Commit 8ec922f

Browse files
authored
Reenable registered server tests, update recordings (Azure#12724)
1 parent c2d949b commit 8ec922f

File tree

7 files changed

+2481
-1274
lines changed

7 files changed

+2481
-1274
lines changed

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/Helpers/StorageSyncManagementTestUtilities.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,10 @@ public static SyncGroupCreateParameters GetDefaultSyncGroupParameters()
224224
};
225225
}
226226

227+
// Note: Secondary certificate must be different from primary certificate.
227228
internal static string GetSecondaryCertificate()
228229
{
229-
return "MIIC4jCCAcqgAwIBAgIQP7n31LE24L1CfAmLKBKi6TANBgkqhkiG9w0BAQ0FADAZMRcwFQYDVQQDEw5hbnBpbnQtVGVzdFZNMzAeFw0yMDA0MDYyMDE5NDJaFw0yMTA0MDcyMDE5NDJaMBkxFzAVBgNVBAMTDmFucGludC1UZXN0Vk0zMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr9n0XUYEuWmXzZw9DNhSsp3QALPTPvHizpRJS4+g/ZRsjkiAwrgmOUX2XLYD/ThTNrHc7xga71gyuo7p+AsJy5dxdwi+bK2j7fJI/qU4waFKR9oA/Uu0uhWJ1GcPK72zM/DiG0rGlgEJUJe/Eq/DxWHDydYN2LLcI1fA9SpN3TawEs2zP1wxNX4olhstCm7J7ip3m9UY1gnKaI95ZOutEyrq9nEBMw/PaV9U0Tzq6w22aQDtu1CNrge5Kzpduw1qo2b/+eOZycsPuvupSB6Hl0/BUpqNVgQg56Q1znrTt0NKHcEumpu/v5w1OV7NcDNcsQmujvsHvk5Ze8FptsVA3QIDAQABoyYwJDAiBgNVHSUBAf8EGDAWBggrBgEFBQcDAgYKKwYBBAGCNwoDDDANBgkqhkiG9w0BAQ0FAAOCAQEACverHCPOmBbUuZnnrqBc2z5hL+K22WjpHBL5sxhaAiexqvM0OjH+ifFWHyGge+03/UEjhfdN3OFe0n0gAsweWuyc33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PHmupEAKSeEoI++D9AuxIX0emD6QLf4TFGzN2/7bmBNhmEoDdDSOIiwjo2AF1oVNkSmNfH1bswPigrD2va4orP9xsxEaYsI181EXq5xcHO/sfHOGALcHEX/ph5VQ6Gn87vrQih6TfpegtC328ckcPAkpDJS6idB4U6B7S3ceZo6bWYnVW3DitwEytxkQkoA==";
230231
}
231232

232233
public static CloudEndpointCreateParameters GetDefaultCloudEndpointParameters()

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/SessionRecords/RegisteredServerTests/RegisteredServerCreateTest.json

Lines changed: 429 additions & 222 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/SessionRecords/RegisteredServerTests/RegisteredServerDeleteTest.json

Lines changed: 623 additions & 359 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/SessionRecords/RegisteredServerTests/RegisteredServerGetTest.json

Lines changed: 471 additions & 207 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/SessionRecords/RegisteredServerTests/RegisteredServerListTest.json

Lines changed: 475 additions & 211 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/SessionRecords/RegisteredServerTests/RegisteredServerTriggerRolloverTest.json

Lines changed: 476 additions & 269 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storagesync/Microsoft.Azure.Management.StorageSync/tests/Tests/RegisteredServerTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.StorageSync.Tests
1616
{
1717
public class RegisteredServerTests
1818
{
19-
[Fact(Skip = "Pending bug fix in the service")]
19+
[Fact]
2020
public void RegisteredServerCreateTest()
2121
{
2222
var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK };
@@ -50,7 +50,7 @@ public void RegisteredServerCreateTest()
5050
}
5151
}
5252

53-
[Fact(Skip = "Pending bug fix in the service")]
53+
[Fact]
5454
public void RegisteredServerGetTest()
5555
{
5656
var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK };
@@ -87,7 +87,7 @@ public void RegisteredServerGetTest()
8787
}
8888
}
8989

90-
[Fact(Skip = "Pending bug fix in the service")]
90+
[Fact]
9191
public void RegisteredServerTriggerRolloverTest()
9292
{
9393
var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK };
@@ -127,7 +127,7 @@ public void RegisteredServerTriggerRolloverTest()
127127
}
128128
}
129129

130-
[Fact(Skip = "Pending bug fix in the service")]
130+
[Fact]
131131
public void RegisteredServerListTest()
132132
{
133133
var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK };
@@ -165,7 +165,7 @@ public void RegisteredServerListTest()
165165
}
166166
}
167167

168-
[Fact(Skip = "Pending bug fix in the service")]
168+
[Fact]
169169
public void RegisteredServerDeleteTest()
170170
{
171171
var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK };

0 commit comments

Comments
 (0)