skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

Tm1Source.BundleUrl

using Skipcheck.Tm1.Testcontainers;

A download link for IBM's bundle, such as a pre-signed S3, R2 or GCS URL. Links can carry credentials in the query string (pre-signed links) or the user-info part (https://user:token@host/..., common with artifact repositories), so neither is ever logged.

Members

BundleUrl constructorA bundle URL, and its SHA-256 (null not to check).
Url propertyThe link.
Sha256 propertyThe bundle's SHA-256, or null.
Describe
PrivateImageSetting staticThe setting naming an image with TM1 built in.
HomeDir staticThe setting naming an installed tm1_64 folder.
InstallVolumeSetting staticThe setting naming a Docker volume holding an install.
BundleDir staticThe setting naming the folder holding IBM's bundle.
BundleSetting staticThe setting naming the bundle file in BundleDir (the newest otherwise).
BundleUrlSetting staticThe setting holding a download link for the bundle.
BundleSha256 staticThe setting holding the bundle's SHA-256, checked after the download.
Discover staticThe first source set, from AppContext switches or environment variables; null when none is.
Discover staticThe first source set, looking settings up with lookup, in this order.

BundleUrl

constructor
BundleUrl(Uri url, string? sha256 = null)

A bundle URL, and its SHA-256 (null not to check).

Url

property
Uri Url

The link.

Sha256

property
string? Sha256

The bundle's SHA-256, or null.

Describe

string Describe()

PrivateImageSetting

static
const string PrivateImageSetting

The setting naming an image with TM1 built in.

HomeDir

static
const string HomeDir

The setting naming an installed tm1_64 folder.

InstallVolumeSetting

static
const string InstallVolumeSetting

The setting naming a Docker volume holding an install.

BundleDir

static
const string BundleDir

The setting naming the folder holding IBM's bundle.

BundleSetting

static
const string BundleSetting

The setting naming the bundle file in BundleDir (the newest otherwise).

BundleUrlSetting

static
const string BundleUrlSetting

The setting holding a download link for the bundle.

BundleSha256

static
const string BundleSha256

The setting holding the bundle's SHA-256, checked after the download.

Discover

static
Tm1Source? Discover()

The first source set, from AppContext switches or environment variables; null when none is.

Throws

ArgumentException
A source is set but wrong (a folder that isn't there, say): a test should fail on that, not skip.

Discover

static
Tm1Source? Discover(Func<string, string?> lookup)

The first source set, looking settings up with lookup, in this order: TM1_PRIVATE_IMAGE, TM1_HOME_DIR, TM1_INSTALL_VOLUME, TM1_BUNDLE_DIR (with TM1_BUNDLE), TM1_BUNDLE_URL (with TM1_BUNDLE_SHA256). Blank settings count as unset.