@@ -18,12 +18,11 @@ Test New-AzIntegrationAccountAgreement command
18
18
#>
19
19
function Test-CreateIntegrationAccountAgreementX12
20
20
{
21
- $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountX12AgreementContent .json"
21
+ $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " X12AgreementContent .json"
22
22
$agreementX12Content = [IO.File ]::ReadAllText($agreementX12FilePath )
23
23
24
- $resourceGroupName = getAssetname
25
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
26
- $integrationAccountName = getAssetname
24
+ $resourceGroup = TestSetup- CreateResourceGroup
25
+ $integrationAccountName = " IA-" + (getAssetname)
27
26
28
27
$integrationAccountX12AgreementName = getAssetname
29
28
$integrationAccountX12AgreementName1 = getAssetname
@@ -66,12 +65,11 @@ Test New-AzIntegrationAccountAgreement command
66
65
#>
67
66
function Test-CreateIntegrationAccountAgreementAS2
68
67
{
69
- $agreementAS2FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountAS2AgreementContent .json"
68
+ $agreementAS2FilePath = Join-Path $TestOutputRoot " Resources" " AS2AgreementContent .json"
70
69
$agreementAS2Content = [IO.File ]::ReadAllText($agreementAS2FilePath )
71
70
72
- $resourceGroupName = getAssetname
73
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
74
- $integrationAccountName = getAssetname
71
+ $resourceGroup = TestSetup- CreateResourceGroup
72
+ $integrationAccountName = " IA-" + (getAssetname)
75
73
76
74
$integrationAccountAS2AgreementName = getAssetname
77
75
$integrationAccountAS2AgreementName1 = getAssetname
@@ -100,12 +98,11 @@ Test New-AzIntegrationAccountAgreement command
100
98
#>
101
99
function Test-CreateIntegrationAccountAgreementEdifact
102
100
{
103
- $agreementEdifactFilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountEdifactAgreementContent .json"
101
+ $agreementEdifactFilePath = Join-Path $TestOutputRoot " Resources" " EdifactAgreementContent .json"
104
102
$agreementEdifactContent = [IO.File ]::ReadAllText($agreementEdifactFilePath )
105
103
106
- $resourceGroupName = getAssetname
107
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
108
- $integrationAccountName = getAssetname
104
+ $resourceGroup = TestSetup- CreateResourceGroup
105
+ $integrationAccountName = " IA-" + (getAssetname)
109
106
110
107
$integrationAccountEdifactAgreementName = getAssetname
111
108
$integrationAccountEdifactAgreementName1 = getAssetname
@@ -135,12 +132,11 @@ Test New-AzIntegrationAccountAgreement command with negative scenario.
135
132
#>
136
133
function Test-CreateIntegrationAccountAgreementWithFailure
137
134
{
138
- $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountX12AgreementContent .json"
135
+ $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " X12AgreementContent .json"
139
136
$agreementX12Content = [IO.File ]::ReadAllText($agreementX12FilePath )
140
137
141
- $resourceGroupName = getAssetname
142
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
143
- $integrationAccountName = getAssetname
138
+ $resourceGroup = TestSetup- CreateResourceGroup
139
+ $integrationAccountName = " IA-" + (getAssetname)
144
140
145
141
$integrationAccountX12AgreementName = getAssetname
146
142
@@ -170,14 +166,13 @@ Test Get-AzIntegrationAccountAgreement command
170
166
#>
171
167
function Test-GetIntegrationAccountAgreement
172
168
{
173
- $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountX12AgreementContent .json"
169
+ $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " X12AgreementContent .json"
174
170
$agreementX12Content = [IO.File ]::ReadAllText($agreementX12FilePath )
175
171
176
172
Assert-ThrowsContains { Get-AzIntegrationAccountAgreement - ResourceGroupName " Random83da135" - IntegrationAccountName " DoesNotMatter" - AgreementName " DoesNotMatter" } " Resource group 'Random83da135' could not be found."
177
173
178
- $resourceGroupName = getAssetname
179
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
180
- $integrationAccountName = getAssetname
174
+ $resourceGroup = TestSetup- CreateResourceGroup
175
+ $integrationAccountName = " IA-" + (getAssetname)
181
176
182
177
$integrationAccountX12AgreementName = getAssetname
183
178
@@ -207,14 +202,13 @@ Test Remove-AzIntegrationAccountAgreement command
207
202
#>
208
203
function Test-RemoveIntegrationAccountAgreement
209
204
{
210
- $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountX12AgreementContent .json"
205
+ $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " X12AgreementContent .json"
211
206
$agreementX12Content = [IO.File ]::ReadAllText($agreementX12FilePath )
212
207
213
- $resourceGroupName = getAssetname
214
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
215
- $integrationAccountName = getAssetname
208
+ $resourceGroup = TestSetup- CreateResourceGroup
209
+ $integrationAccountName = " IA-" + (getAssetname)
216
210
217
- $integrationAccountX12AgreementName = getAssetname
211
+ $integrationAccountX12AgreementName = getAssetname
218
212
219
213
$integrationAccount = TestSetup- CreateIntegrationAccount $resourceGroup.ResourceGroupName $integrationAccountName
220
214
@@ -238,15 +232,14 @@ Test Set-AzIntegrationAccountAgreement command
238
232
#>
239
233
function Test-UpdateIntegrationAccountAgreement
240
234
{
241
- $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountX12AgreementContent .json"
235
+ $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " X12AgreementContent .json"
242
236
$agreementX12Content = [IO.File ]::ReadAllText($agreementX12FilePath )
243
237
244
- $agreementAS2FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountAS2AgreementContent .json"
238
+ $agreementAS2FilePath = Join-Path $TestOutputRoot " Resources" " AS2AgreementContent .json"
245
239
$agreementAS2Content = [IO.File ]::ReadAllText($agreementAS2FilePath )
246
240
247
- $resourceGroupName = getAssetname
248
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
249
- $integrationAccountName = getAssetname
241
+ $resourceGroup = TestSetup- CreateResourceGroup
242
+ $integrationAccountName = " IA-" + (getAssetname)
250
243
251
244
$integrationAccountAgreementName = getAssetname
252
245
@@ -324,12 +317,11 @@ Test Get-AzIntegrationAccountAgreement command : paging test
324
317
#>
325
318
function Test-ListIntegrationAccountAgreement
326
319
{
327
- $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " IntegrationAccountX12AgreementContent .json"
320
+ $agreementX12FilePath = Join-Path $TestOutputRoot " Resources" " X12AgreementContent .json"
328
321
$agreementX12Content = [IO.File ]::ReadAllText($agreementX12FilePath )
329
322
330
- $resourceGroupName = getAssetname
331
- $resourceGroup = TestSetup- CreateNamedResourceGroup $resourceGroupName
332
- $integrationAccountName = getAssetname
323
+ $resourceGroup = TestSetup- CreateResourceGroup
324
+ $integrationAccountName = " IA-" + (getAssetname)
333
325
334
326
$integrationAccount = TestSetup- CreateIntegrationAccount $resourceGroup.ResourceGroupName $integrationAccountName
335
327
0 commit comments