You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It 'Should not throw' { { Install-OSServerPreReqs-MajorVersion '11'-MinorVersion '27'-PatchVersion '0'-ErrorVariable err -ErrorAction SilentlyContinue } | Should Not throw }
1137
1137
}
1138
1138
1139
-
# .Net 10 Hosting Bundle region
1139
+
# .Net Hosting Bundle region
1140
+
Context 'When trying to install prerequisites for a OS 11 version in Minor version 42 and Patch version 0 (11.42.0) with .Net 11 Hosting Bundle installed' {
It 'Should not run the .NET installation' { Assert-MockCalled@assNotRunInstallDotNet }
1148
+
It 'Should not run the BuildTools installation' { Assert-MockCalled@assNotRunInstallBuildTools }
1149
+
It 'Should install the windows features installation' { Assert-MockCalled@assRunInstallWindowsFeatures }
1150
+
It 'Should not run the .NET 6.0 Hosting Bundle installation' { Assert-MockCalled@assNotRunInstallDotNetHostingBundle }
1151
+
It 'Should not run the .NET 8.0 Hosting Bundle installation' { Assert-MockCalled@assNotRunInstallDotNetHostingBundle8 }
1152
+
It 'Should not run the .NET 10.0 Hosting Bundle installation' { Assert-MockCalled@assNotRunInstallDotNetHostingBundle10 }
1153
+
It 'Should not run the .NET Core Uninstall Tool installation' { Assert-MockCalled@assNotRunInstallDotNetCoreUninstallTool }
1154
+
It 'Should configure the WMI service' { Assert-MockCalled@assRunConfigureServiceWMI }
1155
+
It 'Should configure the Windows search service' { Assert-MockCalled@assRunConfigureServiceWindowsSearch }
1156
+
It 'Should not disable the FIPS' { Assert-MockCalled@assNotRunDisableFIPS }
1157
+
It 'Should configure the windows event log' { Assert-MockCalled@assRunConfigureWindowsEventLog }
1158
+
1159
+
It 'Should return the right result' {
1160
+
$result.Success| Should Be $true
1161
+
$result.RebootNeeded| Should Be $false
1162
+
$result.ExitCode| Should Be 0
1163
+
$result.Message| Should Be 'OutSystems platform server pre-requisites successfully installed'
1164
+
}
1165
+
It 'Should not throw' { { Install-OSServerPreReqs-MajorVersion '11'-MinorVersion '42'-PatchVersion '0'-ErrorVariable err -ErrorAction SilentlyContinue } | Should Not throw }
1166
+
}
1167
+
1168
+
Context 'When trying to install prerequisites for a OS 11 version in Minor version 42 and Patch version 0 (11.42.0) without .Net Hosting Bundle installed' {
It 'Should run the .NET installation' { Assert-MockCalled@assRunInstallDotNet }
1173
+
It 'Should not run the BuildTools installation' { Assert-MockCalled@assNotRunInstallBuildTools }
1174
+
It 'Should install the windows features installation' { Assert-MockCalled@assRunInstallWindowsFeatures }
1175
+
It 'Should not run the .NET 6.0 Hosting Bundle installation' { Assert-MockCalled@assNotRunInstallDotNetHostingBundle }
1176
+
It 'Should run the .NET 8.0 Hosting Bundle installation' { Assert-MockCalled@assRunInstallDotNetHostingBundle8 }
1177
+
It 'Should not run the .NET 10.0 Hosting Bundle installation' { Assert-MockCalled@assNotRunInstallDotNetHostingBundle10 }
1178
+
It 'Should not run the .NET Core Uninstall Tool installation' { Assert-MockCalled@assNotRunInstallDotNetCoreUninstallTool }
1179
+
It 'Should configure the WMI service' { Assert-MockCalled@assRunConfigureServiceWMI }
1180
+
It 'Should configure the Windows search service' { Assert-MockCalled@assRunConfigureServiceWindowsSearch }
1181
+
It 'Should not disable the FIPS' { Assert-MockCalled@assNotRunDisableFIPS }
1182
+
It 'Should configure the windows event log' { Assert-MockCalled@assRunConfigureWindowsEventLog }
1183
+
1184
+
It 'Should return the right result' {
1185
+
$result.Success| Should Be $true
1186
+
$result.RebootNeeded| Should Be $false
1187
+
$result.ExitCode| Should Be 0
1188
+
$result.Message| Should Be 'OutSystems platform server pre-requisites successfully installed'
1189
+
}
1190
+
It 'Should not throw' { { Install-OSServerPreReqs-MajorVersion '11'-MinorVersion '42'-PatchVersion '0'-ErrorVariable err -ErrorAction SilentlyContinue } | Should Not throw }
1191
+
}
1192
+
1140
1193
Context 'When trying to install prerequisites for a OS 11 version in Minor version 40 and Patch version 2 (11.40.2)' {
0 commit comments