Tm1WebSource.BundleUrl
import { Tm1WebSource } from "@skipcheck/tm1-testcontainers"; A download link for IBM's TM1 Web bundle, such as a pre-signed S3, R2 or GCS URL.
As with Tm1WebSource.BundleUrl, neither the query string nor the user-info
part is ever logged.
Members
url property | The link to download the bundle from. |
sha256 property | The bundle's SHA-256, checked before installing; undefined to skip. |
BundleUrl constructor | |
text property | The link as given, for the container. |
describe | |
PRIVATE_IMAGE property | Settings read by Tm1WebSource.discover, in the order they're tried. |
HOME_DIR property | An installed tm1web folder, for Tm1WebSource.InstallDir. |
INSTALL_VOLUME property | A Docker volume holding an install, for Tm1WebSource.InstallVolume. |
BUNDLE_DIR property | A folder holding IBM's bundle, for Tm1WebSource.Bundle. |
BUNDLE property | The bundle's file name within Tm1WebSource.BUNDLE_DIR; the newest one if unset. |
BUNDLE_URL property | A download link for IBM's bundle, for Tm1WebSource.BundleUrl. |
BUNDLE_SHA256 property | The SHA-256 to check the Tm1WebSource.BUNDLE_URL download against; optional. |
toString | The description (describe), for logs. |
[inspect.custom] | As toString. |
discover static | Finds a source using lookup to read each setting (environment variables by default). |
url
propertyurl: URLThe link to download the bundle from.
sha256
propertysha256: string | undefinedThe bundle's SHA-256, checked before installing; undefined to skip.
BundleUrl
constructorconstructor(url: URL | string, sha256?: string | null)text
propertytext: stringThe link as given, for the container.
describe
describe(): stringPRIVATE_IMAGE
propertystatic PRIVATE_IMAGESettings read by Tm1WebSource.discover, in the order they're tried.
HOME_DIR
propertystatic HOME_DIRAn installed tm1web folder, for Tm1WebSource.InstallDir.
INSTALL_VOLUME
propertystatic INSTALL_VOLUMEA Docker volume holding an install, for Tm1WebSource.InstallVolume.
BUNDLE_DIR
propertystatic BUNDLE_DIRA folder holding IBM's bundle, for Tm1WebSource.Bundle.
BUNDLE
propertystatic BUNDLEThe bundle's file name within Tm1WebSource.BUNDLE_DIR; the newest one if unset.
BUNDLE_URL
propertystatic BUNDLE_URLA download link for IBM's bundle, for Tm1WebSource.BundleUrl.
BUNDLE_SHA256
propertystatic BUNDLE_SHA256The SHA-256 to check the Tm1WebSource.BUNDLE_URL download against; optional.
toString
toString(): stringThe description (describe), for logs.
[inspect.custom]
[inspect.custom](): stringAs toString: console.log never shows a URL's secrets either.
discover
staticstatic discover(lookup: Lookup = Settings.get): Tm1WebSource | undefinedFinds a source using lookup to read each setting (environment variables by default). Blank values count as unset.
Returns
- the first source found, or
undefinedif 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.