skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

Tm1Source.BundleUrl

import { Tm1Source } from "@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

url propertyThe link to download the bundle from.
sha256 propertyThe bundle's SHA-256, checked before installing; undefined to skip.
BundleUrl constructor
text propertyThe link as given, for the container.
describe
PRIVATE_IMAGE propertySettings read by Tm1Source.discover, in the order they're tried.
HOME_DIR propertyAn installed tm1_64 folder, for Tm1Source.InstallDir.
INSTALL_VOLUME propertyA Docker volume holding an install, for Tm1Source.InstallVolume.
BUNDLE_DIR propertyA folder holding IBM's bundle, for Tm1Source.Bundle.
BUNDLE propertyThe bundle's file name within Tm1Source.BUNDLE_DIR; the newest one if unset.
BUNDLE_URL propertyA download link for IBM's bundle, for Tm1Source.BundleUrl.
BUNDLE_SHA256 propertyThe SHA-256 to check the Tm1Source.BUNDLE_URL download against; optional.
toStringThe description (describe), for logs.
[inspect.custom]As toString.
discover staticFinds a source using lookup to read each setting (environment variables by default).

url

property
url: URL

The link to download the bundle from.

sha256

property
sha256: string | undefined

The bundle's SHA-256, checked before installing; undefined to skip.

BundleUrl

constructor
constructor(url: URL | string, sha256?: string | null)

text

property
text: string

The link as given, for the container.

describe

describe(): string

PRIVATE_IMAGE

property
static PRIVATE_IMAGE

Settings read by Tm1Source.discover, in the order they're tried.

HOME_DIR

property
static HOME_DIR

An installed tm1_64 folder, for Tm1Source.InstallDir.

INSTALL_VOLUME

property
static INSTALL_VOLUME

A Docker volume holding an install, for Tm1Source.InstallVolume.

BUNDLE_DIR

property
static BUNDLE_DIR

A folder holding IBM's bundle, for Tm1Source.Bundle.

BUNDLE

property
static BUNDLE

The bundle's file name within Tm1Source.BUNDLE_DIR; the newest one if unset.

BUNDLE_URL

property
static BUNDLE_URL

A download link for IBM's bundle, for Tm1Source.BundleUrl.

BUNDLE_SHA256

property
static BUNDLE_SHA256

The SHA-256 to check the Tm1Source.BUNDLE_URL download against; optional.

toString

toString(): string

The description (describe), for logs.

[inspect.custom]

[inspect.custom](): string

As toString: console.log never shows a URL's secrets either.

discover

static
static discover(lookup: Lookup = Settings.get): Tm1Source | undefined

Finds a source using lookup to read each setting (environment variables by default). Blank values count as unset.

Returns

the first source found, or undefined if none is configured

Throws

IllegalArgumentException if a setting is present but invalid, such as a folder that doesn't exist. A wrong setting fails rather than silently skipping the tests.