Package io.skipcheck.tm1.testcontainers
@NullMarked
package io.skipcheck.tm1.testcontainers
A Testcontainers module for TM1, and the JUnit extension that runs tests against it.
Everything here is non-null unless marked Nullable.
-
ClassDescriptionIBM Cognos Analytics in Docker, for tests, built on the
cognos-serverimage: the security (CAM) a TM1 server in CAM mode takes its users from.A namespace the test users are in, and howtm1-servernames its users and groups (CAMIDs) in it.A test user.Where aCognosContainergets IBM Cognos Analytics from.A named Docker volume holding a Cognos install made by the image'sinstallcommand.An image built oncognos-serverwith Cognos inside (see the image'sexamples/private-image), from a private registry or only on your machine.A folder holding IBM'scasrv-*-linuxi38664h.zip, mounted read-only.A download link for IBM's Cognos repository zip, such as a pre-signed S3 URL.Keycloak in Docker, as the OpenID Connect provider for aCognosContainer's OIDC namespace (CognosContainer.withKeycloak(KeycloakContainer)).IBM Planning Analytics Workspace (PAW) Local in Docker, for tests, started from the user's own PAW Local zip against aTm1ServerContainer.Where aPawContainergets Planning Analytics Workspace from: IBM's PAW Local zip,ipa_workspace_local_<release>.<build>.zip.A whole Planning Analytics environment for tests, wired together on one Docker network: any number of named TM1 servers, and optionally an Admin Server, TM1 Web, PAW, and Cognos (CAM) security with LDAP and OIDC test users.Builds aPlanningAnalyticsEnvironment.Runs a test class or method that needs IBM Cognos Analytics (CAM security) as well as TM1, and skips it when either isn't available.Runs a test class or method against a real Planning Analytics Workspace and TM1 server, and skips it when either isn't available.Runs a test class or method against a real TM1 server, and skips it when there isn't one.Runs a test class or method against real TM1 Web and TM1 servers, and skips it when either isn't available.A TM1 Admin Server on its own, for tests with several TM1 servers: thetm1-serverimage inadminmode.Objects the image puts into an empty database on first start (itsTM1_SEEDsetting).A TM1 server in Docker, for tests, built on thetm1-serverimage.Where aTm1ServerContainergets TM1 Server from.A folder holding IBM'stm1server-*-linuxi38664h_bundle.tar.gz, mounted read-only.A download link for IBM's bundle, such as a pre-signed S3, R2 or GCS URL.An installedtm1_64folder, the one containingbin64/tm1s.exe.A named Docker volume holding a TM1 install, such as the one thetm1-servercompose setup creates (tm1_tm1-install).An image built ontm1-serverwith TM1 inside, from a private registry.TM1 Web (IBM Planning Analytics Spreadsheet Services) in Docker, for tests, built on thetm1-webimage.Where aTm1WebContainergets TM1 Web from.A folder holding IBM'stm1web-*-linuxi38664h_bundle.tar.gz, mounted read-only.A download link for IBM's TM1 Web bundle, such as a pre-signed S3, R2 or GCS URL.An installedtm1webfolder, the one containingwlp/,jre/andwebapps/.A named Docker volume holding a TM1 Web install, such as the one thetm1-servercompose setup creates (tm1-server_tm1-web-install).An image built ontm1-webwith TM1 Web inside, from a private registry.