skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

PawSource

import io.skipcheck.tm1.testcontainers.PawSource;

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

PawSource constructorMakes the path absolute and checks it's a file.
ZIP staticThe PAW Local zip.
BUNDLE_DIR staticA folder holding the PAW Local zip; the newest one there is used.
describeA short description for logs and messages.
discover staticFinds a source from system properties and environment variables.
discover staticFinds a source using lookup to read each setting.
toString
hashCode
equals
zip

PawSource

constructor
PawSource(Path zip)

Makes the path absolute and checks it's a file.

ZIP

static
String ZIP

The PAW Local zip.

BUNDLE_DIR

static
String BUNDLE_DIR

A folder holding the PAW Local zip; the newest one there is used.

describe

String describe()

A short description for logs and messages.

Returns

the description

discover

static
static Optional<PawSource> discover()

Finds a source from system properties and environment variables. See the class docs.

Returns

the source, or empty if none is configured

Throws

IllegalArgumentException
if a setting is present but invalid

discover

static
static Optional<PawSource> discover(Function<String,String> lookup)

Finds a source using lookup to read each setting. Blank values count as unset.

Parameters

lookup
reads a setting by name, returning null if it's unset

Returns

the source, or empty if none is configured

Throws

IllegalArgumentException
if a setting is present but invalid, such as a folder with no PAW Local zip in it. A wrong setting fails rather than silently skipping the tests.

toString

String toString()

hashCode

int hashCode()

equals

boolean equals(Object o)

zip

Path zip()

Also in the Javadoc.