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
R11PIT-242 - Unify SetupTools versions and behavior (#99)
* R11PIT-242 - Change Install-OSServerPreReqs :
* Add two optional parameters MinorVersion and PatchVersion
* Evaluate the need to install .NET Core 2.1 by checking Minor and Patch version
* Add logic in PlatformSetup to calculate if a given version is newer than a given version
* Add tests
* R11PIT-242 - Change name of the install binaries for net core 2.1 and net core 3.1
* R11PIT-242 - Add new parameters description
* R11PIT-242 - Add Major Version to ShouldInstallDotNetCoreHostingBundleVersion2
* Add logic to not install .NET Core 3.1 if we decided to install .NET Core 2.1 based on the optional parameters
* Change tests to validate this behavior
* Improved net core installation detection
* Bumped version and updated CHANGELOG
Co-authored-by: Pedro Nunes <37883272+pintonunes@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Outsystems.SetupTools Release History
2
2
3
+
## 3.14.0.0
4
+
5
+
- Updated Install-OSServerPreReqs. Install .NET Core hosting bundle version 3.1.14 only if we are above OutSystems version 11.12.2.0. Added parameters so the full OutSystems version can be specified
6
+
3
7
## 3.13.1.0
4
8
5
9
- Fixed Get-OSRepoAvailableVersions. Was getting versions from an old storage account
It 'Should run the .NET installation' { Assert-MockCalled@assRunInstallDotNet }
936
+
It 'Should run the BuildTools installation' { Assert-MockCalled@assRunInstallBuildTools }
937
+
It 'Should install the windows features installation' { Assert-MockCalled@assRunInstallWindowsFeatures }
938
+
It 'Should not run the .NET core 2.1 installation' { Assert-MockCalled@assNotRunInstallDotNetCore21 }
939
+
It 'Should run the .NET core 3.1 installation' { Assert-MockCalled@assRunInstallDotNetCore }
940
+
It 'Should configure the WMI service' { Assert-MockCalled@assRunConfigureServiceWMI }
941
+
It 'Should configure the Windows search service' { Assert-MockCalled@assRunConfigureServiceWindowsSearch }
942
+
It 'Should disable the FIPS' { Assert-MockCalled@assRunDisableFIPS }
943
+
It 'Should configure the windows event log' { Assert-MockCalled@assRunConfigureWindowsEventLog }
944
+
It 'Should not configure the MSMQ' { Assert-MockCalled@assNotRunConfigureMSMQDomainServer }
945
+
946
+
It 'Should return the right result' {
947
+
$result.Success| Should Be $true
948
+
$result.RebootNeeded| Should Be $false
949
+
$result.ExitCode| Should Be 0
950
+
$result.Message| Should Be 'OutSystems platform server pre-requisites successfully installed'
951
+
}
952
+
It 'Should not throw' { { Install-OSServerPreReqs-MajorVersion '11'-MinorVersion '12'-PatchVersion '3'-ErrorVariable err -ErrorAction SilentlyContinue } | Should Not throw }
953
+
}
954
+
955
+
Context 'When trying to install prerequisites for a OS 11 version in Minor version 12 and Patch version older than 2 (11.12.1)' {
It 'Should run the .NET installation' { Assert-MockCalled@assRunInstallDotNet }
960
+
It 'Should run the BuildTools installation' { Assert-MockCalled@assRunInstallBuildTools }
961
+
It 'Should install the windows features installation' { Assert-MockCalled@assRunInstallWindowsFeatures }
962
+
It 'Should run the .NET core 2.1 installation' { Assert-MockCalled@assRunInstallDotNetCore21 }
963
+
It 'Should not run the .NET core 3.1 installation' { Assert-MockCalled@assNotRunInstallDotNetCore }
964
+
It 'Should configure the WMI service' { Assert-MockCalled@assRunConfigureServiceWMI }
965
+
It 'Should configure the Windows search service' { Assert-MockCalled@assRunConfigureServiceWindowsSearch }
966
+
It 'Should disable the FIPS' { Assert-MockCalled@assRunDisableFIPS }
967
+
It 'Should configure the windows event log' { Assert-MockCalled@assRunConfigureWindowsEventLog }
968
+
It 'Should not configure the MSMQ' { Assert-MockCalled@assNotRunConfigureMSMQDomainServer }
969
+
970
+
It 'Should return the right result' {
971
+
$result.Success| Should Be $true
972
+
$result.RebootNeeded| Should Be $false
973
+
$result.ExitCode| Should Be 0
974
+
$result.Message| Should Be 'OutSystems platform server pre-requisites successfully installed'
975
+
}
976
+
It 'Should not throw' { { Install-OSServerPreReqs-MajorVersion '11'-MinorVersion '12'-PatchVersion '1'-ErrorVariable err -ErrorAction SilentlyContinue } | Should Not throw }
977
+
}
978
+
979
+
Context 'When trying to install prerequisites for a OS 11 version in Minor version 13 (11.13.0)' {
It 'Should run the .NET installation' { Assert-MockCalled@assRunInstallDotNet }
984
+
It 'Should run the BuildTools installation' { Assert-MockCalled@assRunInstallBuildTools }
985
+
It 'Should install the windows features installation' { Assert-MockCalled@assRunInstallWindowsFeatures }
986
+
It 'Should not run the .NET core 2.1 installation' { Assert-MockCalled@assNotRunInstallDotNetCore21 }
987
+
It 'Should run the .NET core installation' { Assert-MockCalled@assRunInstallDotNetCore }
988
+
It 'Should configure the WMI service' { Assert-MockCalled@assRunConfigureServiceWMI }
989
+
It 'Should configure the Windows search service' { Assert-MockCalled@assRunConfigureServiceWindowsSearch }
990
+
It 'Should disable the FIPS' { Assert-MockCalled@assRunDisableFIPS }
991
+
It 'Should configure the windows event log' { Assert-MockCalled@assRunConfigureWindowsEventLog }
992
+
It 'Should not configure the MSMQ' { Assert-MockCalled@assNotRunConfigureMSMQDomainServer }
993
+
994
+
It 'Should return the right result' {
995
+
$result.Success| Should Be $true
996
+
$result.RebootNeeded| Should Be $false
997
+
$result.ExitCode| Should Be 0
998
+
$result.Message| Should Be 'OutSystems platform server pre-requisites successfully installed'
999
+
}
1000
+
It 'Should not throw' { { Install-OSServerPreReqs-MajorVersion '11'-MinorVersion '13'-PatchVersion '0'-ErrorVariable err -ErrorAction SilentlyContinue } | Should Not throw }
1001
+
}
1002
+
1003
+
Context 'When trying to install prerequisites for a OS 11 version without passing the optional Minor and Patch Versions' {
0 commit comments