skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

PawSource

import { PawSource } from "@skipcheck/tm1-testcontainers";

Where a PawContainer gets Planning Analytics Workspace from: IBM's PAW Local zip, ipa_workspace_local_<release>.<build>.zip.

IBM ships PAW Local as Docker images, compose files and scripts in that zip. Nothing from it is in this library, so every PawContainer needs one.

discover finds one from the environment. Each setting is read first as a system property and then as an environment variable, under the same name, the names docker/paw/paw-local.sh uses:

  1. PAW_ZIP: the zip itself
  2. PAW_BUNDLE_DIR: a folder holding it; the newest ipa_workspace_local_*.zip there is used

Members

ZIP propertyThe PAW Local zip to use.
BUNDLE_DIR propertyA folder holding PAW Local zips.
zip propertyThe zip, absolute.
PawSource constructor@throws IllegalArgumentException if it isn't a file
describeA short description for logs and messages.
toStringThe description (describe), for logs.
discover staticFinds the zip set with PAW_ZIP, or else the newest in PAW_BUNDLE_DIR, using lookup (environment variables by default).

ZIP

property
static ZIP

The PAW Local zip to use.

BUNDLE_DIR

property
static BUNDLE_DIR

A folder holding PAW Local zips: the newest is used.

zip

property
zip: string

The zip, absolute.

PawSource

constructor
constructor(zip: string)

@throws IllegalArgumentException if it isn't a file

describe

describe(): string

A short description for logs and messages.

toString

toString(): string

The description (describe), for logs.

discover

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

Finds the zip set with PAW_ZIP, or else the newest in PAW_BUNDLE_DIR, using lookup (environment variables by default).

Returns

the source, or undefined when neither is set

Throws

IllegalArgumentException if a setting is present but wrong