-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reinstalled on every test run Change-Id: I8915fcbfe71e403a17ed23fd421018b93eeaf4de
- Loading branch information
Showing
16 changed files
with
189 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
packages/host/mk-sql/tests/files/ci-scripts/install-test-set.ps1
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
packages/host/mk-sql/tests/files/ci-scripts/manage-test-registry-set.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
$command = $args[0] | ||
$name = $args[1] | ||
$package = "mk-sql" | ||
|
||
function Install-Me { | ||
param ( | ||
[string]$Name | ||
) | ||
Write-Output "Installing $Name..." | ||
$folderPath = $PSScriptRoot + "\..\windows-registry\$Name" | ||
$regFiles = Get-ChildItem -Path $folderPath -Filter *.reg | ||
foreach ($file in $regFiles) { | ||
Write-Host "loading $($file.FullName)" | ||
regedit.exe /s $file.FullName | ||
} | ||
|
||
} | ||
|
||
function Remove-Me { | ||
param ( | ||
[string]$Name | ||
) | ||
Write-Output "Removing $Name..." | ||
reg delete "HKLM\SOFTWARE\checkmk\tests\$Name\$package" /f | ||
} | ||
|
||
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) { | ||
Write-Output "This script needs administrator privileges." | ||
exit | ||
} | ||
|
||
|
||
switch ($command) { | ||
'--install' { Install-Me -Name $name } | ||
'--remove' { Remove-Me -Name $name } | ||
'--reinstall' { | ||
Remove-Me -Name $name | ||
Install-Me -Name $name | ||
} | ||
default { Write-Output "Invalid command $Command. Use --install <name> or --remove <name>." } | ||
} | ||
|
||
|
||
#Write-Host "Setting test cases are ready" |
1 change: 0 additions & 1 deletion
1
packages/host/mk-sql/tests/files/ci-scripts/remove-test-set.ps1
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
packages/host/mk-sql/tests/files/windows-registry/2.5.0/Instance-Names.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\checkmk\tests\2.5.0\mk-sql\instances\test-std\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names] | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\checkmk\tests\2.5.0\mk-sql\instances\test-std\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL] | ||
"MSSQLSERVER"="MSSQL16.MSSQLSERVER" | ||
"SQLEXPRESS_NAME"="MSSQL13.SQLEXPRESS_ID" | ||
|
80 changes: 40 additions & 40 deletions
80
...ndows-registry/MSSQL12.SQLEXPRESS_WOW.reg → ...registry/2.5.0/MSSQL12.SQLEXPRESS_WOW.reg
Large diffs are not rendered by default.
Oops, something went wrong.
80 changes: 40 additions & 40 deletions
80
...indows-registry/MSSQL13.SQLEXPRESS_ID.reg → ...-registry/2.5.0/MSSQL13.SQLEXPRESS_ID.reg
Large diffs are not rendered by default.
Oops, something went wrong.
82 changes: 41 additions & 41 deletions
82
.../windows-registry/MSSQL16.MSSQLSERVER.reg → ...ws-registry/2.5.0/MSSQL16.MSSQLSERVER.reg
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
packages/host/mk-sql/tests/files/windows-registry/2.5.0/WOW-Instance-Names.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Windows Registry Editor Version 5.00 | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\checkmk\tests\2.5.0\mk-sql\instances\test-std\SOFTWARE\WOW6432Node\Microsoft\Microsoft SQL Server\Instance Names] | ||
|
||
[HKEY_LOCAL_MACHINE\SOFTWARE\checkmk\tests\2.5.0\mk-sql\instances\test-std\SOFTWARE\WOW6432Node\Microsoft\Microsoft SQL Server\Instance Names\SQL] | ||
"SQLEXPRESS_WOW"="MSSQL12.SQLEXPRESS_WOW" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+33.1 KB
packages/host/mk-sql/tests/files/windows-registry/2.5.0/test-not-all-1.reg
Binary file not shown.
Binary file added
BIN
+33.1 KB
packages/host/mk-sql/tests/files/windows-registry/2.5.0/test-not-all-2.reg
Binary file not shown.
Binary file added
BIN
+774 Bytes
packages/host/mk-sql/tests/files/windows-registry/2.5.0/test-not-all-instance-names.reg
Binary file not shown.
8 changes: 0 additions & 8 deletions
8
packages/host/mk-sql/tests/files/windows-registry/Instance-Names.reg
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.