Record Class PawSource
java.lang.Object
java.lang.Record
io.skipcheck.tm1.testcontainers.PawSource
- Record Components:
zip- the PAW Local zip; made absolute
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:
PAW_ZIP: the zip itselfPAW_BUNDLE_DIR: a folder holding it; the newestipa_workspace_local_*.zipthere is used
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()A short description for logs and messages.discover()Finds a source from system properties and environment variables.Finds a source usinglookupto read each setting.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.zip()Returns the value of theziprecord component.
-
Field Details
-
ZIP
-
BUNDLE_DIR
A folder holding the PAW Local zip; the newest one there is used.- See Also:
-
-
Constructor Details
-
PawSource
Makes the path absolute and checks it's a file.
-
-
Method Details
-
describe
-
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
Finds a source usinglookupto read each setting. Blank values count as unset.- Parameters:
lookup- reads a setting by name, returningnullif 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
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
zip
-