@@ -124,11 +124,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
124
124
# Verifying objects
125
125
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
126
126
# oracle has implicit commit, sorry folks
127
- $logTable | Should - BeIn $testResults.name
128
- ' a' | Should - BeIn $testResults.name
129
- ' b' | Should -Not - BeIn $testResults.name
130
- ' c' | Should -Not - BeIn $testResults.name
131
- ' d' | Should -Not - BeIn $testResults.name
127
+ $logTable | Should - BeIn $testResults.NAME
128
+ ' a' | Should - BeIn $testResults.NAME
129
+ ' b' | Should -Not - BeIn $testResults.NAME
130
+ ' c' | Should -Not - BeIn $testResults.NAME
131
+ ' d' | Should -Not - BeIn $testResults.NAME
132
132
}
133
133
134
134
}
@@ -144,11 +144,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
144
144
{ $null = Install-DBOPackage $packageName @connParams - SchemaVersionTable $logTable - DeploymentMethod NoTransaction } | Should Throw ' name is already used by an existing object'
145
145
# Verifying objects
146
146
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
147
- $logTable | Should BeIn $testResults.name
148
- ' a' | Should BeIn $testResults.name
149
- ' b' | Should Not BeIn $testResults.name
150
- ' c' | Should Not BeIn $testResults.name
151
- ' d' | Should Not BeIn $testResults.name
147
+ $logTable | Should BeIn $testResults.NAME
148
+ ' a' | Should BeIn $testResults.NAME
149
+ ' b' | Should Not BeIn $testResults.NAME
150
+ ' c' | Should Not BeIn $testResults.NAME
151
+ ' d' | Should Not BeIn $testResults.NAME
152
152
}
153
153
}
154
154
Context " testing regular deployment" {
@@ -186,11 +186,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
186
186
187
187
# Verifying objects
188
188
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
189
- $logTable | Should BeIn $testResults.name
190
- ' a' | Should BeIn $testResults.name
191
- ' b' | Should BeIn $testResults.name
192
- ' c' | Should Not BeIn $testResults.name
193
- ' d' | Should Not BeIn $testResults.name
189
+ $logTable | Should BeIn $testResults.NAME
190
+ ' a' | Should BeIn $testResults.NAME
191
+ ' b' | Should BeIn $testResults.NAME
192
+ ' c' | Should Not BeIn $testResults.NAME
193
+ ' d' | Should Not BeIn $testResults.NAME
194
194
}
195
195
It " should re-deploy version 1.0 pipelining a string" {
196
196
$testResults = " $workFolder \pv1.zip" | Install-DBOPackage @connParams - Build ' 1.0' - SchemaVersionTable $logTable - OutputFile " $workFolder \log.txt"
@@ -211,11 +211,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
211
211
' No new scripts need to be executed - completing.' | Should BeIn (Get-Content " $workFolder \log.txt" | Select-Object - Skip 1 )
212
212
# Verifying objects
213
213
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
214
- $logTable | Should BeIn $testResults.name
215
- ' a' | Should BeIn $testResults.name
216
- ' b' | Should BeIn $testResults.name
217
- ' c' | Should Not BeIn $testResults.name
218
- ' d' | Should Not BeIn $testResults.name
214
+ $logTable | Should BeIn $testResults.NAME
215
+ ' a' | Should BeIn $testResults.NAME
216
+ ' b' | Should BeIn $testResults.NAME
217
+ ' c' | Should Not BeIn $testResults.NAME
218
+ ' d' | Should Not BeIn $testResults.NAME
219
219
}
220
220
It " should deploy version 2.0 using pipelined Get-DBOPackage" {
221
221
$testResults = Get-DBOPackage " $workFolder \pv1.zip" | Install-DBOPackage @connParams - Build ' 1.0' , ' 2.0' - SchemaVersionTable $logTable - OutputFile " $workFolder \log.txt"
@@ -237,11 +237,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
237
237
$output | Should BeIn $standardOutput2
238
238
# Verifying objects
239
239
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
240
- $logTable | Should BeIn $testResults.name
241
- ' a' | Should BeIn $testResults.name
242
- ' b' | Should BeIn $testResults.name
243
- ' c' | Should BeIn $testResults.name
244
- ' d' | Should BeIn $testResults.name
240
+ $logTable | Should BeIn $testResults.NAME
241
+ ' a' | Should BeIn $testResults.NAME
242
+ ' b' | Should BeIn $testResults.NAME
243
+ ' c' | Should BeIn $testResults.NAME
244
+ ' d' | Should BeIn $testResults.NAME
245
245
}
246
246
It " should re-deploy version 2.0 using pipelined FileSystemObject" {
247
247
$testResults = Get-Item " $workFolder \pv1.zip" | Install-DBOPackage @connParams - SchemaVersionTable $logTable - OutputFile " $workFolder \log.txt"
@@ -262,11 +262,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
262
262
' No new scripts need to be executed - completing.' | Should BeIn (Get-Content " $workFolder \log.txt" | Select-Object - Skip 1 )
263
263
# Verifying objects
264
264
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
265
- $logTable | Should BeIn $testResults.name
266
- ' a' | Should BeIn $testResults.name
267
- ' b' | Should BeIn $testResults.name
268
- ' c' | Should BeIn $testResults.name
269
- ' d' | Should BeIn $testResults.name
265
+ $logTable | Should BeIn $testResults.NAME
266
+ ' a' | Should BeIn $testResults.NAME
267
+ ' b' | Should BeIn $testResults.NAME
268
+ ' c' | Should BeIn $testResults.NAME
269
+ ' d' | Should BeIn $testResults.NAME
270
270
}
271
271
It " should deploy in a reversed order: 2.0 before 1.0" {
272
272
$null = Invoke-DBOQuery @connParams - InputFile $dropObjectsScript
@@ -286,11 +286,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
286
286
' Upgrade successful' | Should BeIn $testResults.DeploymentLog
287
287
288
288
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
289
- $logTable | Should BeIn $testResults.name
290
- ' a' | Should BeIn $testResults.name
291
- ' b' | Should BeIn $testResults.name
292
- ' c' | Should BeIn $testResults.name
293
- ' d' | Should BeIn $testResults.name
289
+ $logTable | Should BeIn $testResults.NAME
290
+ ' a' | Should BeIn $testResults.NAME
291
+ ' b' | Should BeIn $testResults.NAME
292
+ ' c' | Should BeIn $testResults.NAME
293
+ ' d' | Should BeIn $testResults.NAME
294
294
}
295
295
}
296
296
# Context "testing timeouts" {
@@ -381,11 +381,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
381
381
382
382
# Verifying objects
383
383
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
384
- $logTable | Should Not BeIn $testResults.name
385
- ' a' | Should Not BeIn $testResults.name
386
- ' b' | Should Not BeIn $testResults.name
387
- ' c' | Should Not BeIn $testResults.name
388
- ' d' | Should Not BeIn $testResults.name
384
+ $logTable | Should Not BeIn $testResults.NAME
385
+ ' a' | Should Not BeIn $testResults.NAME
386
+ ' b' | Should Not BeIn $testResults.NAME
387
+ ' c' | Should Not BeIn $testResults.NAME
388
+ ' d' | Should Not BeIn $testResults.NAME
389
389
}
390
390
}
391
391
Context " testing regular deployment with configuration overrides" {
@@ -433,11 +433,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
433
433
434
434
# Verifying objects
435
435
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
436
- $logTable | Should BeIn $testResults.name
437
- ' a' | Should BeIn $testResults.name
438
- ' b' | Should BeIn $testResults.name
439
- ' c' | Should Not BeIn $testResults.name
440
- ' d' | Should Not BeIn $testResults.name
436
+ $logTable | Should BeIn $testResults.NAME
437
+ ' a' | Should BeIn $testResults.NAME
438
+ ' b' | Should BeIn $testResults.NAME
439
+ ' c' | Should Not BeIn $testResults.NAME
440
+ ' d' | Should Not BeIn $testResults.NAME
441
441
}
442
442
It " should deploy version 2.0 using -Configuration object override" {
443
443
$testResults = Install-DBOPackage - Type Oracle " $workFolder \pv2.zip" - Configuration @ {
@@ -466,11 +466,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
466
466
$output | Should BeIn $standardOutput2
467
467
# Verifying objects
468
468
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
469
- $logTable | Should BeIn $testResults.name
470
- ' a' | Should BeIn $testResults.name
471
- ' b' | Should BeIn $testResults.name
472
- ' c' | Should BeIn $testResults.name
473
- ' d' | Should BeIn $testResults.name
469
+ $logTable | Should BeIn $testResults.NAME
470
+ ' a' | Should BeIn $testResults.NAME
471
+ ' b' | Should BeIn $testResults.NAME
472
+ ' c' | Should BeIn $testResults.NAME
473
+ ' d' | Should BeIn $testResults.NAME
474
474
}
475
475
}
476
476
Context " testing deployment without specifying SchemaVersion table" {
@@ -502,11 +502,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
502
502
503
503
# Verifying objects
504
504
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
505
- ' SchemaVersions' | Should BeIn $testResults.name
506
- ' a' | Should BeIn $testResults.name
507
- ' b' | Should BeIn $testResults.name
508
- ' c' | Should Not BeIn $testResults.name
509
- ' d' | Should Not BeIn $testResults.name
505
+ ' SchemaVersions' | Should BeIn $testResults.NAME
506
+ ' a' | Should BeIn $testResults.NAME
507
+ ' b' | Should BeIn $testResults.NAME
508
+ ' c' | Should Not BeIn $testResults.NAME
509
+ ' d' | Should Not BeIn $testResults.NAME
510
510
($testResults | Measure-Object ).Count | Should Be ($rowsBefore + 3 )
511
511
}
512
512
It " should deploy version 2.0" {
@@ -529,11 +529,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
529
529
530
530
# Verifying objects
531
531
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
532
- ' SchemaVersions' | Should BeIn $testResults.name
533
- ' a' | Should BeIn $testResults.name
534
- ' b' | Should BeIn $testResults.name
535
- ' c' | Should BeIn $testResults.name
536
- ' d' | Should BeIn $testResults.name
532
+ ' SchemaVersions' | Should BeIn $testResults.NAME
533
+ ' a' | Should BeIn $testResults.NAME
534
+ ' b' | Should BeIn $testResults.NAME
535
+ ' c' | Should BeIn $testResults.NAME
536
+ ' d' | Should BeIn $testResults.NAME
537
537
($testResults | Measure-Object ).Count | Should Be ($rowsBefore + 2 )
538
538
}
539
539
}
@@ -567,11 +567,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
567
567
568
568
# Verifying objects
569
569
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
570
- ' SchemaVersions' | Should Not BeIn $testResults.name
571
- ' a' | Should BeIn $testResults.name
572
- ' b' | Should BeIn $testResults.name
573
- ' c' | Should Not BeIn $testResults.name
574
- ' d' | Should Not BeIn $testResults.name
570
+ ' SchemaVersions' | Should Not BeIn $testResults.NAME
571
+ ' a' | Should BeIn $testResults.NAME
572
+ ' b' | Should BeIn $testResults.NAME
573
+ ' c' | Should Not BeIn $testResults.NAME
574
+ ' d' | Should Not BeIn $testResults.NAME
575
575
($testResults | Measure-Object ).Count | Should Be ($rowsBefore + 2 )
576
576
}
577
577
}
@@ -646,9 +646,9 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
646
646
' The "{0}" table has been created' -f $logTable | Should - BeIn $output
647
647
# Verifying objects
648
648
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
649
- $logTable | Should BeIn $testResults.name
650
- ' a' | Should BeIn $testResults.name
651
- ' b' | Should BeIn $testResults.name
649
+ $logTable | Should BeIn $testResults.NAME
650
+ ' a' | Should BeIn $testResults.NAME
651
+ ' b' | Should BeIn $testResults.NAME
652
652
($testResults | Measure-Object ).Count | Should Be ($rowsBefore + 3 )
653
653
}
654
654
}
@@ -687,11 +687,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
687
687
' The "{0}" table has been created' -f $logTable | Should - BeIn $output
688
688
# Verifying objects
689
689
$testResults = Invoke-DBOQuery @connParams - InputFile $verificationScript
690
- $logTable | Should BeIn $testResults.name
691
- ' a' | Should BeIn $testResults.name
692
- ' b' | Should BeIn $testResults.name
693
- ' c' | Should Not BeIn $testResults.name
694
- ' d' | Should Not BeIn $testResults.name
690
+ $logTable | Should BeIn $testResults.NAME
691
+ ' a' | Should BeIn $testResults.NAME
692
+ ' b' | Should BeIn $testResults.NAME
693
+ ' c' | Should Not BeIn $testResults.NAME
694
+ ' d' | Should Not BeIn $testResults.NAME
695
695
}
696
696
}
697
697
}
0 commit comments