[#1285] Test the administration connector after MSI upgrade (#1286)
The Windows MSI upgrade test checks LDAPS after upgrading from 5.1.2,
but does not check the administration connector. Run `dsconfig
list-backends` over port 4444 after the upgraded service starts and fail
the job if the command fails.
Validation: `actionlint`, YAML parsing, and `git diff --check` passed.
The Windows MSI job has not been run locally.
Related to #1285.
| | |
| | | # The pre-upgrade data must still be served |
| | | & "$root\bat\ldapsearch.bat" --hostname localhost --port 1636 --bindDN "cn=Directory Manager" --bindPassword password --useSsl --trustAll --baseDN "dc=example,dc=com" --searchScope base "(objectClass=*)" 1.1 |
| | | if ($LASTEXITCODE -ne 0) { throw "ldapsearch after upgrade failed: $LASTEXITCODE" } |
| | | & "$root\bat\dsconfig.bat" list-backends --hostname localhost --port 4444 --bindDN "cn=Directory Manager" --bindPassword password --trustAll --no-prompt |
| | | if ($LASTEXITCODE -ne 0) { throw "dsconfig after upgrade failed: $LASTEXITCODE" } |
| | | net stop "OpenDJ Server" |
| | | if ($LASTEXITCODE -ne 0) { throw "net stop (upgraded) failed: $LASTEXITCODE" } |
| | | - name: Repair must leave the service registration alone |