From 6ae5f107b31d8cc74c0d18d3a08c757eda599afe Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Sun, 27 Oct 2024 08:23:57 +0100 Subject: [PATCH] fixes --- tests/Copy-DbaAgentProxy.Tests.ps1 | 2 +- tests/Copy-DbaDbTableData.Tests.ps1 | 2 +- tests/Copy-DbaInstanceTrigger.Tests.ps1 | 4 ++-- tests/Disable-DbaReplDistributor.Tests.ps1 | 2 +- tests/Enable-DbaStartupProcedure.Tests.ps1 | 4 +++- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/Copy-DbaAgentProxy.Tests.ps1 b/tests/Copy-DbaAgentProxy.Tests.ps1 index 9dabbcb89e..28ac1b9bdc 100644 --- a/tests/Copy-DbaAgentProxy.Tests.ps1 +++ b/tests/Copy-DbaAgentProxy.Tests.ps1 @@ -73,7 +73,7 @@ Describe "Copy-DbaAgentProxy" -Tag "IntegrationTests" { It "Should create the proxy on the destination" { $proxyResults = Get-DbaAgentProxy -SqlInstance $TestConfig.instance3 -Proxy dbatoolsci_agentproxy - $proxyResults.Name.Count | Should -Be 1 + $proxyResults.Name | Should -Be "dbatoolsci_agentproxy" } } } diff --git a/tests/Copy-DbaDbTableData.Tests.ps1 b/tests/Copy-DbaDbTableData.Tests.ps1 index a5ace8e571..b57f1f0547 100644 --- a/tests/Copy-DbaDbTableData.Tests.ps1 +++ b/tests/Copy-DbaDbTableData.Tests.ps1 @@ -12,7 +12,7 @@ Describe "Copy-DbaDbTableData" -Tag "UnitTests" { $expected += @( 'SqlInstance', 'SqlCredential', - 'Destination', + 'Destination', 'DestinationSqlCredential', 'Database', 'DestinationDatabase', diff --git a/tests/Copy-DbaInstanceTrigger.Tests.ps1 b/tests/Copy-DbaInstanceTrigger.Tests.ps1 index a03adbb1e4..df3f93678b 100644 --- a/tests/Copy-DbaInstanceTrigger.Tests.ps1 +++ b/tests/Copy-DbaInstanceTrigger.Tests.ps1 @@ -12,7 +12,7 @@ Describe "Copy-DbaInstanceTrigger" -Tag "UnitTests" { $expected += @( 'Source', 'SourceSqlCredential', - 'Destination', + 'Destination', 'DestinationSqlCredential', 'ServerTrigger', 'ExcludeServerTrigger', @@ -41,7 +41,7 @@ Describe "Copy-DbaInstanceTrigger" -Tag "IntegrationTests" { ON ALL SERVER FOR LOGON -- Tells you it's a logon trigger AS PRINT 'hello'" - + $sourceServer = Connect-DbaInstance -SqlInstance $TestConfig.instance1 $sourceServer.Query($sql) } diff --git a/tests/Disable-DbaReplDistributor.Tests.ps1 b/tests/Disable-DbaReplDistributor.Tests.ps1 index 5c65d5a6a4..5fcb683ae5 100644 --- a/tests/Disable-DbaReplDistributor.Tests.ps1 +++ b/tests/Disable-DbaReplDistributor.Tests.ps1 @@ -14,7 +14,7 @@ Describe "Disable-DbaReplDistributor" -Tag "UnitTests" { $expected = $TestConfig.CommonParameters $expected += @( "SqlInstance", - "SqlCredential", + "SqlCredential", "Force", "EnableException", "Confirm", diff --git a/tests/Enable-DbaStartupProcedure.Tests.ps1 b/tests/Enable-DbaStartupProcedure.Tests.ps1 index f0a8430a78..28db6e14ae 100644 --- a/tests/Enable-DbaStartupProcedure.Tests.ps1 +++ b/tests/Enable-DbaStartupProcedure.Tests.ps1 @@ -13,7 +13,9 @@ Describe "Enable-DbaStartupProcedure" -Tag "UnitTests" { "SqlInstance", "SqlCredential", "StartupProcedure", - "EnableException" + "EnableException", + "WhatIf", + "Confirm" ) }