TM1 Testcontainers docs .NET
Every part of the library, with its members and examples in .NET. New here? Start with the quick start, then the walkthrough Test your code against a real TM1.
Start here
- RequiresTm1FactAttributeRuns a test class or method against a real TM1 server, and skips it when there isn't one.
- Tm1SourceWhere a Tm1ServerContainer gets TM1 Server from.
- Tm1ServerContainerA TM1 server in Docker, for tests, built on the tm1-server image.
- PlanningAnalyticsEnvironmentA whole Planning Analytics environment for tests, wired together on one Docker network.
Walkthroughs
Writing tests
RequiresCognosFactAttributeRuns a test class or method that needs IBM Cognos Analytics (CAM security) as well as TM1, and skips it when either isn't available.RequiresPawFactAttributeRuns a test class or method against a real Planning Analytics Workspace and TM1 server, and skips it when either isn't available.RequiresTm1FactAttributeRuns a test class or method against a real TM1 server, and skips it when there isn't one.RequiresTm1WebFactAttributeRuns a test class or method against real TM1 Web and TM1 servers, and skips it when either isn't available.
Containers
CognosContainerIBM Cognos Analytics in Docker, for tests, built on the cognos-server image.CognosContainer.NamespaceA namespace the test users are in, and how tm1-server names its users and groups (CAMIDs) in it.CognosContainer.UserA test user.KeycloakContainerKeycloak in Docker, as the OpenID Connect provider for a CognosContainer's OIDC namespace (withKeycloak).PawContainerIBM Planning Analytics Workspace (PAW) Local in Docker, for tests, started from the user's own PAW Local zip against a Tm1ServerContainer.PlanningAnalyticsEnvironmentA whole Planning Analytics environment for tests, wired together on one Docker network.PlanningAnalyticsEnvironment.EnvironmentBuilderBuilds a PlanningAnalyticsEnvironment.Tm1AdminServerContainerA TM1 Admin Server on its own, for tests with several TM1 servers.Tm1ServerContainerA TM1 server in Docker, for tests, built on the tm1-server image.Tm1WebContainerTM1 Web (IBM Planning Analytics Spreadsheet Services) in Docker, for tests, built on the tm1-web image.
Where TM1 comes from
CognosSourceWhere a CognosContainer gets IBM Cognos Analytics from.CognosSource.InstallVolumeA named Docker volume holding a Cognos install made by the image's install command.CognosSource.PrivateImageAn image built on cognos-server with Cognos inside (see the image's examples/private-image), from a private registry or only on your machine.CognosSource.ZipA folder holding IBM's casrv-*-linuxi38664h.zip, mounted read-only.CognosSource.ZipUrlA download link for IBM's Cognos repository zip, such as a pre-signed S3 URL.PawSourceWhere a PawContainer gets Planning Analytics Workspace from.Tm1SeedObjects the image puts into an empty database on first start (its TM1_SEED setting).Tm1SourceWhere a Tm1ServerContainer gets TM1 Server from.Tm1Source.BundleA folder holding IBM's tm1server-*-linuxi38664h_bundle.tar.gz, mounted read-only.Tm1Source.BundleUrlA download link for IBM's bundle, such as a pre-signed S3, R2 or GCS URL.Tm1Source.InstallDirAn installed tm1_64 folder, the one containing bin64/tm1s.exe.Tm1Source.InstallVolumeA named Docker volume holding a TM1 install, such as the one the tm1-server compose setup creates (tm1_tm1-install).Tm1Source.PrivateImageAn image built on tm1-server with TM1 inside, from a private registry.Tm1WebSourceWhere a Tm1WebContainer gets TM1 Web from.Tm1WebSource.BundleA folder holding IBM's tm1web-*-linuxi38664h_bundle.tar.gz, mounted read-only.Tm1WebSource.BundleUrlA download link for IBM's TM1 Web bundle, such as a pre-signed S3, R2 or GCS URL.Tm1WebSource.InstallDirAn installed tm1web folder, the one containing wlp/, jre/ and webapps/.Tm1WebSource.InstallVolumeA named Docker volume holding a TM1 Web install, such as the one the tm1-server compose setup creates (tm1-server_tm1-web-install).Tm1WebSource.PrivateImageAn image built on tm1-web with TM1 Web inside, from a private registry.