Skip to content

Commit a7a18dd

Browse files
authored
[Confidential Ledger] Enable live testing (Azure#24912)
1 parent 423a0ae commit a7a18dd

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@description('Ledger Name')
2+
@minLength(3)
3+
@maxLength(24)
4+
param ledgerName string = resourceGroup().name
5+
6+
@description('The client OID to grant access to test resources.')
7+
param testApplicationOid string
8+
9+
@description('The location of the resource. By default, this is the same as the resource group.')
10+
param location string = resourceGroup().location
11+
12+
var azureConfidentialLedgerUrl = 'https://${ledgerName}.confidential-ledger.azure.com'
13+
14+
resource ledgerName_resource 'Microsoft.ConfidentialLedger/ledgers@2022-05-13' = {
15+
name: ledgerName
16+
location: location
17+
properties: {
18+
ledgerType: 'Public'
19+
aadBasedSecurityPrincipals: [
20+
{
21+
principalId: testApplicationOid
22+
ledgerRoleName: 'Administrator'
23+
}
24+
]
25+
}
26+
}
27+
28+
output CONFIDENTIALLEDGER_ENDPOINT string = azureConfidentialLedgerUrl

sdk/confidentialledger/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
trigger: none
2+
3+
stages:
4+
- template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
5+
parameters:
6+
BuildTargetingString: azure-confidentialledger*
7+
ServiceDirectory: confidentialledger
8+
MatrixReplace:
9+
- TestSamples=.*/true
10+
MaxParallel: 1
11+
EnvVars:
12+
TEST_MODE: "RunLiveNoRecord" # use when allowing preparers to create the rgs for you
13+
AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script

0 commit comments

Comments
 (0)