Skip to content

Commit 01043ef

Browse files
committed
name to NAME
1 parent bc014c3 commit 01043ef

File tree

4 files changed

+157
-157
lines changed

4 files changed

+157
-157
lines changed

tests/oracle/Install-DBOPackage.Tests.ps1

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
124124
#Verifying objects
125125
$testResults = Invoke-DBOQuery @connParams -InputFile $verificationScript
126126
# 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
132132
}
133133

134134
}
@@ -144,11 +144,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
144144
{ $null = Install-DBOPackage $packageName @connParams -SchemaVersionTable $logTable -DeploymentMethod NoTransaction } | Should Throw 'name is already used by an existing object'
145145
#Verifying objects
146146
$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
152152
}
153153
}
154154
Context "testing regular deployment" {
@@ -186,11 +186,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
186186

187187
#Verifying objects
188188
$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
194194
}
195195
It "should re-deploy version 1.0 pipelining a string" {
196196
$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 {
211211
'No new scripts need to be executed - completing.' | Should BeIn (Get-Content "$workFolder\log.txt" | Select-Object -Skip 1)
212212
#Verifying objects
213213
$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
219219
}
220220
It "should deploy version 2.0 using pipelined Get-DBOPackage" {
221221
$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 {
237237
$output | Should BeIn $standardOutput2
238238
#Verifying objects
239239
$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
245245
}
246246
It "should re-deploy version 2.0 using pipelined FileSystemObject" {
247247
$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 {
262262
'No new scripts need to be executed - completing.' | Should BeIn (Get-Content "$workFolder\log.txt" | Select-Object -Skip 1)
263263
#Verifying objects
264264
$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
270270
}
271271
It "should deploy in a reversed order: 2.0 before 1.0" {
272272
$null = Invoke-DBOQuery @connParams -InputFile $dropObjectsScript
@@ -286,11 +286,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
286286
'Upgrade successful' | Should BeIn $testResults.DeploymentLog
287287

288288
$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
294294
}
295295
}
296296
# Context "testing timeouts" {
@@ -381,11 +381,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
381381

382382
#Verifying objects
383383
$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
389389
}
390390
}
391391
Context "testing regular deployment with configuration overrides" {
@@ -433,11 +433,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
433433

434434
#Verifying objects
435435
$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
441441
}
442442
It "should deploy version 2.0 using -Configuration object override" {
443443
$testResults = Install-DBOPackage -Type Oracle "$workFolder\pv2.zip" -Configuration @{
@@ -466,11 +466,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
466466
$output | Should BeIn $standardOutput2
467467
#Verifying objects
468468
$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
474474
}
475475
}
476476
Context "testing deployment without specifying SchemaVersion table" {
@@ -502,11 +502,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
502502

503503
#Verifying objects
504504
$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
510510
($testResults | Measure-Object).Count | Should Be ($rowsBefore + 3)
511511
}
512512
It "should deploy version 2.0" {
@@ -529,11 +529,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
529529

530530
#Verifying objects
531531
$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
537537
($testResults | Measure-Object).Count | Should Be ($rowsBefore + 2)
538538
}
539539
}
@@ -567,11 +567,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
567567

568568
#Verifying objects
569569
$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
575575
($testResults | Measure-Object).Count | Should Be ($rowsBefore + 2)
576576
}
577577
}
@@ -646,9 +646,9 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
646646
'The "{0}" table has been created' -f $logTable | Should -BeIn $output
647647
#Verifying objects
648648
$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
652652
($testResults | Measure-Object).Count | Should Be ($rowsBefore + 3)
653653
}
654654
}
@@ -687,11 +687,11 @@ Describe "Install-DBOPackage Oracle tests" -Tag $commandName, IntegrationTests {
687687
'The "{0}" table has been created' -f $logTable | Should -BeIn $output
688688
#Verifying objects
689689
$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
695695
}
696696
}
697697
}

0 commit comments

Comments
 (0)