Skip to content

Commit

Permalink
record tests to validate fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo Santamaria Gomez committed Jul 29, 2019
1 parent 23cc7e9 commit c47f788
Show file tree
Hide file tree
Showing 22 changed files with 7,283 additions and 46,135 deletions.
12 changes: 6 additions & 6 deletions src/ServiceFabric/ServiceFabric.Test/ScenarioTests/Common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ function Get-NewCertName
function Get-SecretUrl
{
# Thumbprint for this cert should be specified in TestServiceFabric.cs in ServiceFabricCmdletBase.TestThumbprint
return "https://azurermsfkvtest.vault.azure.net/secrets/AzureRMSFTestCert2/f6bb2b6492e04ffb8fb6acc6cd05005a"
return "https://azurermsfkvtest.vault.azure.net:443/secrets/AzureRMSFTestCert2/8ab331aafa88400cbe32e5dc7ea53443"
}

function Get-Thumbprint
{
# Change the thumbprint in the TestServiceFabric.cs file as well in ServiceFabricCmdletBase.TestThumbprint
return "EC8CA0BBC391A08860115619701E2B858FF44C72"
return "C20BE98DB1592F7505E24AD92DE072649D691987"
}

function Get-CertAppSecretUrl
{
# Thumbprint for this cert should be specified in TestServiceFabric.cs in ServiceFabricCmdletBase.TestThumbprintAppCert
return "https://azurermsfkvtest.vault.azure.net:443/secrets/AzureRMSFTestCertApp/722cb6a2fd80461d8c60f2fc6107346e"
return "https://azurermsfkvtest.vault.azure.net:443/secrets/AzureRMSFTestCertApp/c63c8876220f4384858b0fcde658439e"
}

function Get-CertAppThumbprint
{
# Change the thumbprint in the TestServiceFabric.cs file as well in ServiceFabricCmdletBase.TestThumbprintAppCert
return "07F8E7F9A90CB655FED09548969A97C8CF6BDFAC"
return "656AD4B7774A1EAC0AE6C7561B0B2A05154B16B2"
}

function Get-CACertCommonName
Expand All @@ -101,12 +101,12 @@ function Get-CACertIssuerThumbprint

function Get-CACertSecretUrl
{
return "https://azurermsfkvtest.vault.azure.net:443/secrets/azurermsfcntest/6f453495b69c4cf9ae42f12bd7f89620"
return "https://azurermsfkvtest.vault.azure.net:443/secrets/azurermsfcntest/1153e8007bd245b28e3bca5d8794eb91"
}

function Get-CertWUSecretUrl
{
return "https://azurermsfkvtestwu.vault.azure.net:443/secrets/AzureRMSFTestCertWU/7d400ad07f874c08b6325338bc44be39"
return "https://azurermsfkvtestwu.vault.azure.net:443/secrets/AzureRMSFTestCertWU/5cb0fba2f1fb4e69aec2748fda1bb936"
}

function Get-DurabilityLevel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public TestServiceFabric(ITestOutputHelper output)
ServiceFabricCmdletBase.RunningTest = true;
ServiceFabricCmdletBase.NewCreatedKeyVaultWaitTimeInSec = 0;
//change the thumbprint in the common.ps1 file as well
ServiceFabricCmdletBase.TestThumbprint = "EC8CA0BBC391A08860115619701E2B858FF44C72";
ServiceFabricCmdletBase.TestThumbprint = "C20BE98DB1592F7505E24AD92DE072649D691987";
ServiceFabricCmdletBase.TestCommonNameCACert = "azurermsfcntest.southcentralus.cloudapp.azure.com";
ServiceFabricCmdletBase.TestCommonNameAppCert = "AzureRMSFTestCertApp";
ServiceFabricCmdletBase.TestThumbprintAppCert = "07F8E7F9A90CB655FED09548969A97C8CF6BDFAC";
ServiceFabricCmdletBase.TestThumbprintAppCert = "656AD4B7774A1EAC0AE6C7561B0B2A05154B16B2";
ServiceFabricCmdletBase.TestAppCert = false;
}

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
"adcf8a95-5942-41e6-94d8-beca67c960cc"
"3517c48d-4a20-4ff0-9403-4dc81b5b3be9"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.27019.06",
"FxVersion/4.6.27817.01",
"OSName/Windows",
"OSVersion/Microsoft.Windows.10.0.17763.",
"OSVersion/Microsoft.Windows.10.0.18362.",
"Microsoft.Azure.Management.ServiceFabric.ServiceFabricManagementClient/1.1.0.0"
]
},
Expand All @@ -39,19 +39,19 @@
"11999"
],
"x-ms-request-id": [
"fcab4f09-3424-4815-b07d-29a5e5646070"
"366c24a8-806b-4d99-ba33-966a250f0531"
],
"x-ms-correlation-request-id": [
"fcab4f09-3424-4815-b07d-29a5e5646070"
"366c24a8-806b-4d99-ba33-966a250f0531"
],
"x-ms-routing-request-id": [
"WESTUS2:20190116T001953Z:fcab4f09-3424-4815-b07d-29a5e5646070"
"WESTUS:20190728T222111Z:366c24a8-806b-4d99-ba33-966a250f0531"
],
"Date": [
"Wed, 16 Jan 2019 00:19:52 GMT"
"Sun, 28 Jul 2019 22:21:10 GMT"
],
"Content-Length": [
"2801"
"2483"
],
"Content-Type": [
"application/json"
Expand All @@ -60,7 +60,7 @@
"-1"
]
},
"ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/azurermsfrg/providers/Microsoft.ServiceFabric/clusters/azurermsfclustertest\",\r\n \"name\": \"azurermsfclustertest\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636831684953225738\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"6d665870-a90f-47a9-8efe-927c11164c38\",\r\n \"clusterCodeVersion\": \"6.4.622.9590\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"https://azurermsfclustertest.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/6d665870-a90f-47a9-8efe-927c11164c38\",\r\n \"certificate\": {\r\n \"thumbprint\": \"98DB1981A448E6D3F079150A73CDBFC20B094FFD\",\r\n \"thumbprintSecondary\": \"EC8CA0BBC391A08860115619701E2B858FF44C72\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [\r\n {\r\n \"certificateCommonName\": \"cn=AzureRMSFTestCert2\",\r\n \"certificateIssuerThumbprint\": \"EC8CA0BBC391A08860115619701E2B858FF44C72\",\r\n \"isAdmin\": false\r\n }\r\n ],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"NamingService\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"MaxFileOperationTimeout\",\r\n \"value\": \"5000\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"movceivkf3yzy2\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://movceivkf3yzy2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://movceivkf3yzy2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://movceivkf3yzy2.table.core.windows.net/\"\r\n },\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Bronze\",\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"vmInstanceCount\": 5,\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"upgradeMode\": \"Manual\",\r\n \"addonFeatures\": [],\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"6.4.622.9590\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}",
"ResponseBody": "{\r\n \"type\": \"Microsoft.ServiceFabric/clusters\",\r\n \"location\": \"southcentralus\",\r\n \"id\": \"/subscriptions/b36cdf46-b75d-4dc2-9fe1-1296ee8c623d/resourcegroups/azurermsfrg/providers/Microsoft.ServiceFabric/clusters/azurermsfclustertest\",\r\n \"name\": \"azurermsfclustertest\",\r\n \"tags\": {},\r\n \"etag\": \"W/\\\"636999448797704628\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"04487e6d-6a83-420d-bbc6-d3b02cd8f598\",\r\n \"clusterCodeVersion\": \"6.5.658.9590\",\r\n \"clusterState\": \"Ready\",\r\n \"managementEndpoint\": \"https://azurermsfclustertest.southcentralus.cloudapp.azure.com:19080\",\r\n \"clusterEndpoint\": \"https://warp-test-winfabrp-southcentralus.trafficmanager.net/runtime/clusters/04487e6d-6a83-420d-bbc6-d3b02cd8f598\",\r\n \"certificate\": {\r\n \"thumbprint\": \"11E4349A3B3AD8D233B7B6A936E2AA7191418464\",\r\n \"thumbprintSecondary\": \"C20BE98DB1592F7505E24AD92DE072649D691987\",\r\n \"x509StoreName\": \"My\"\r\n },\r\n \"clientCertificateThumbprints\": [],\r\n \"clientCertificateCommonNames\": [],\r\n \"fabricSettings\": [\r\n {\r\n \"name\": \"Security\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"ClusterProtectionLevel\",\r\n \"value\": \"EncryptAndSign\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"vmImage\": \"Windows\",\r\n \"reliabilityLevel\": \"Silver\",\r\n \"nodeTypes\": [\r\n {\r\n \"name\": \"nt1vm\",\r\n \"vmInstanceCount\": 5,\r\n \"clientConnectionEndpointPort\": 19000,\r\n \"httpGatewayEndpointPort\": 19080,\r\n \"applicationPorts\": {\r\n \"startPort\": 20000,\r\n \"endPort\": 30000\r\n },\r\n \"ephemeralPorts\": {\r\n \"startPort\": 49152,\r\n \"endPort\": 65534\r\n },\r\n \"isPrimary\": true,\r\n \"durabilityLevel\": \"Bronze\"\r\n }\r\n ],\r\n \"diagnosticsStorageAccountConfig\": {\r\n \"storageAccountName\": \"movceivkf3yzy2\",\r\n \"primaryAccessKey\": \"\",\r\n \"secondaryAccessKey\": \"\",\r\n \"protectedAccountKeyName\": \"StorageAccountKey1\",\r\n \"blobEndpoint\": \"https://movceivkf3yzy2.blob.core.windows.net/\",\r\n \"queueEndpoint\": \"https://movceivkf3yzy2.queue.core.windows.net/\",\r\n \"tableEndpoint\": \"https://movceivkf3yzy2.table.core.windows.net/\"\r\n },\r\n \"upgradeMode\": \"Automatic\",\r\n \"addonFeatures\": [],\r\n \"availableClusterVersions\": [\r\n {\r\n \"codeVersion\": \"6.5.658.9590\",\r\n \"supportExpiryUtc\": \"9999-12-31T23:59:59.9999999\",\r\n \"environment\": \"Windows\"\r\n }\r\n ]\r\n }\r\n}",
"StatusCode": 200
}
],
Expand Down
Loading

0 comments on commit c47f788

Please sign in to comment.