mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
7 hours ago e234110c497335d0639e75f312ba0902da6f2432
[#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.
1 files modified
2 ■■■■■ changed files
.github/workflows/build.yml 2 ●●●●● patch | view | raw | blame | history
.github/workflows/build.yml
@@ -1780,6 +1780,8 @@
          # 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