diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
new file mode 100644
index 000000000..715e2f4aa
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,171 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+name: Main build
+
+on:
+ workflow_dispatch:
+ inputs:
+ jacocoEnabled:
+ description: 'Enable Jacoco code coverage (set to "false" for release builds)'
+ required: true
+ default: 'true'
+ type: choice
+ options:
+ - 'true'
+ - 'false'
+ isMainOrRelease:
+ description: 'This build is for the main branch or a release (set to "false" for development branch builds)'
+ required: true
+ default: 'true'
+ type: choice
+ options:
+ - 'true'
+ - 'false'
+ push:
+ branches: [main]
+
+env:
+ REGISTRY: ghcr.io
+ NAMESPACE: galasa-dev
+ BRANCH: ${{ github.ref_name }}
+
+jobs:
+ log-github-ref:
+ name: Log the GitHub ref this workflow is running on (Branch or tag that received dispatch)
+ runs-on: ubuntu-latest
+ steps:
+ - name: Log GitHub ref of workflow
+ run: |
+ echo "This workflow is running on GitHub ref ${{ env.BRANCH }}"
+
+ build-managers:
+ name: Build Managers source code and Docker image for development Maven registry
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v4
+
+ - name: Setup JDK
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'semeru'
+
+ - name: Print githash
+ run: |
+ echo $GITHUB_SHA > ./managers.githash
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v3
+ with:
+ gradle-version: 8.9
+ cache-disabled: true
+
+ - name: Build Managers source code
+ if: github.event_name == 'push'
+ env:
+ GITHUB_ACTOR: ${{ github.actor }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_KEYID }}
+ ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
+ ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
+ run: |
+ set -o pipefail
+ gradle -b galasa-managers-parent/build.gradle check publish --info \
+ --no-daemon --console plain \
+ -Dorg.gradle.jvmargs=-Xmx4096M \
+ -PsourceMaven=https://development.galasa.dev/${{ env.BRANCH }}/maven-repo/extensions \
+ -PcentralMaven=https://repo.maven.apache.org/maven2/ \
+ -PtargetMaven=${{ github.workspace }}/repo \
+ -PjacocoEnabled=true \
+ -PisMainOrRelease=true 2>&1 | tee build.log
+
+ - name: Build Managers source code
+ if: github.event_name == 'workflow_dispatch' # Use the input values provided by the workflow dispatch.
+ env:
+ GITHUB_ACTOR: ${{ github.actor }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_KEYID }}
+ ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
+ ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
+ run: |
+ set -o pipefail
+ gradle -b galasa-managers-parent/build.gradle check publish --info \
+ --no-daemon --console plain \
+ -Dorg.gradle.jvmargs=-Xmx4096M \
+ -PsourceMaven=https://development.galasa.dev/${{ env.BRANCH }}/maven-repo/extensions \
+ -PcentralMaven=https://repo.maven.apache.org/maven2/ \
+ -PtargetMaven=${{ github.workspace }}/repo \
+ -PjacocoEnabled=${{ inputs.jacocoEnabled }} \
+ -PisMainOrRelease=${{ inputs.isMainOrRelease }} 2>&1 | tee build.log
+
+ - name: Upload Gradle Build Log
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: gradle-build-log
+ path: build.log
+ retention-days: 7
+
+ - name: Upload Jacoco Report
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: jacoco-report
+ path: ${{ github.workspace }}/galasa-managers-parent/**/**/build/reports/**/*.html
+ retention-days: 7
+ if-no-files-found: ignore
+
+ - name: Login to Github Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Extract metadata for Managers image
+ id: metadata
+ uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
+ with:
+ images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/managers-maven-artefacts
+
+ - name: Build Managers image for development Maven registry
+ id: build
+ uses: docker/build-push-action@v5
+ with:
+ context: .
+ file: dockerfiles/dockerfile
+ push: true
+ tags: ${{ steps.metadata.outputs.tags }}
+ labels: ${{ steps.metadata.outputs.labels }}
+ build-args: |
+ dockerRepository=ghcr.io
+ tag=${{ env.BRANCH }}
+
+ - name: Recycle application in ArgoCD
+ env:
+ ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
+ run: |
+ docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app actions run ${{ env.BRANCH }}-maven-repos restart --kind Deployment --resource-name managers-${{ env.BRANCH }} --server argocd.galasa.dev
+
+ - name: Wait for app health in ArgoCD
+ env:
+ ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
+ run: |
+ docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app wait ${{ env.BRANCH }}-maven-repos --resource apps:Deployment:managers-${{ env.BRANCH }} --health --server argocd.galasa.dev
+
+ trigger-obr-workflow:
+ name: Trigger OBR workflow
+ runs-on: ubuntu-latest
+ needs: build-managers
+
+ steps:
+ - name: Trigger OBR workflow dispatch event with GitHub CLI
+ env:
+ GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }}
+ run: |
+ gh workflow run build.yaml --repo https://github.com/galasa-dev/obr --ref ${{ env.BRANCH }}
\ No newline at end of file
diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml
new file mode 100644
index 000000000..27607feae
--- /dev/null
+++ b/.github/workflows/pr-build.yaml
@@ -0,0 +1,74 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+name: PR build
+
+on:
+ pull_request:
+ branches: [main]
+
+jobs:
+ build-managers:
+ name: Build Managers source code and Docker image
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v4
+
+ - name: Setup JDK
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'semeru'
+
+ - name: Print githash
+ run: |
+ echo $GITHUB_SHA > ./managers.githash
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v3
+ with:
+ gradle-version: 8.9
+ cache-disabled: true
+
+ - name: Build Managers source code
+ run: |
+ set -o pipefail
+ gradle -b galasa-managers-parent/build.gradle check publish --info \
+ --no-daemon --console plain \
+ -Dorg.gradle.jvmargs=-Xmx4096M \
+ -PsourceMaven=https://development.galasa.dev/main/maven-repo/extensions \
+ -PcentralMaven=https://repo.maven.apache.org/maven2/ \
+ -PtargetMaven=${{ github.workspace }}/repo 2>&1 | tee build.log
+
+ - name: Upload Gradle Build Log
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: gradle-build-log
+ path: build.log
+ retention-days: 7
+
+ - name: Upload Jacoco Report
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: jacoco-report
+ path: ${{ github.workspace }}/galasa-managers-parent/**/**/build/reports/**/*.html
+ retention-days: 7
+ if-no-files-found: ignore
+
+ - name: Build Managers image for testing
+ uses: docker/build-push-action@v5
+ with:
+ context: .
+ file: dockerfiles/dockerfile
+ load: true
+ tags: managers:test
+ build-args: |
+ dockerRepository=ghcr.io
+ tag=main
+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index e1b2dfdb3..f6463684d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,6 @@ Snap*.trc
**/build
**/.gradle
**/gradle/wrapper
+local-builds/
+**/.idea
+temp/
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 000000000..3e262ed5d
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,6 @@
+repos:
+ - repo: https://github.com/ibm/detect-secrets
+ rev: 0.13.1+ibm.62.dss
+ hooks:
+ - id: detect-secrets # pragma: whitelist secret
+ args: [--baseline, .secrets.baseline, --use-all-plugins, --fail-on-unaudited]
\ No newline at end of file
diff --git a/.secrets.baseline b/.secrets.baseline
new file mode 100644
index 000000000..91932d663
--- /dev/null
+++ b/.secrets.baseline
@@ -0,0 +1,95 @@
+{
+ "exclude": {
+ "files": "^.secrets.baseline$",
+ "lines": null
+ },
+ "plugins_used": [
+ {
+ "name": "AWSKeyDetector"
+ },
+ {
+ "name": "ArtifactoryDetector"
+ },
+ {
+ "name": "AzureStorageKeyDetector"
+ },
+ {
+ "base64_limit": 4.5,
+ "name": "Base64HighEntropyString"
+ },
+ {
+ "name": "BasicAuthDetector"
+ },
+ {
+ "name": "BoxDetector"
+ },
+ {
+ "name": "CloudantDetector"
+ },
+ {
+ "ghe_instance": "github.ibm.com",
+ "name": "GheDetector"
+ },
+ {
+ "name": "GitHubTokenDetector"
+ },
+ {
+ "hex_limit": 3,
+ "name": "HexHighEntropyString"
+ },
+ {
+ "name": "IbmCloudIamDetector"
+ },
+ {
+ "name": "IbmCosHmacDetector"
+ },
+ {
+ "name": "JwtTokenDetector"
+ },
+ {
+ "keyword_exclude": null,
+ "name": "KeywordDetector"
+ },
+ {
+ "name": "MailchimpDetector"
+ },
+ {
+ "name": "NpmDetector"
+ },
+ {
+ "name": "PrivateKeyDetector"
+ },
+ {
+ "name": "SlackDetector"
+ },
+ {
+ "name": "SoftlayerDetector"
+ },
+ {
+ "name": "SquareOAuthDetector"
+ },
+ {
+ "name": "StripeDetector"
+ },
+ {
+ "name": "TwilioKeyDetector"
+ }
+ ],
+ "results": {
+ "galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/README.md": [
+ {
+ "hashed_secret": "22199ec38c6bedb7616f8e42aa3ad6e9f196cd24",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 114,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ]
+ },
+ "version": "0.13.1+ibm.62.dss",
+ "word_list": {
+ "file": null,
+ "hash": null
+ }
+}
diff --git a/Jenkinsfile.documentation b/Jenkinsfile.documentation
deleted file mode 100644
index f0d1f278e..000000000
--- a/Jenkinsfile.documentation
+++ /dev/null
@@ -1,90 +0,0 @@
-def mvnProfile = 'dev,managerdocs'
-
-pipeline {
-// Initially run on any agent
- agent {
- label 'github'
- }
- options { timestamps () }
- environment {
-//Configure Maven from the maven tooling in Jenkins
- def mvnHome = tool 'Default'
- PATH = "${mvnHome}/bin:${env.PATH}"
-
-//Set some defaults
- def workspace = pwd()
- def mvnGoal = 'install'
- }
- stages {
-// for debugging purposes
- stage('report') {
- steps {
- echo "Branch/Tag : ${env.GIT_BRANCH}"
- echo "Commit Hash : ${env.GIT_COMMIT}"
- echo "Workspace directory: ${workspace}"
- echo "Maven profile : ${mvnProfile}"
- echo "Doc Branch : ${env.DOC_BRANCH}"
- echo "Doc Reviewers : ${env.DOC_REVIEWERS}"
- echo "Doc User : ${env.DOC_USER}"
- echo "Doc Email : ${env.DOC_EMAIL}"
- }
- }
-
-// Set up the workspace, clear the git directories and setup the maven settings.xml files
- stage('prep-workspace') {
- steps {
- configFileProvider([configFile(fileId: '86dde059-684b-4300-b595-64e83c2dd217', targetLocation: 'settings.xml')]) {
- }
- dir('repository/dev.galasa') {
- deleteDir()
- }
- dir('repository/dev/galasa') {
- deleteDir()
- }
- }
- }
-
- stage('Clone Docs') {
- steps {
- dir('galasa.dev') {
- deleteDir()
- }
- sh 'mkdir galasa.dev'
- dir('galasa.dev') {
- git(url: 'git@github.com:galasa-dev/galasa.dev.git', branch: "next")
-
- sh "git checkout -b ${env.DOC_BRANCH}"
- }
- }
- }
- stage('Extract Javadoc') {
- steps {
- dir('galasa-managers-parent') {
- sh "mvn --settings ${workspace}/settings.xml -Dmaven.repo.local=${workspace}/repository -P ${mvnProfile} -B -e -fae clean process-sources"
- }
- }
- }
- stage('Generate Markdown') {
- steps {
- dir('galasa-managers-parent') {
- sh "mvn --settings ${workspace}/settings.xml -Dmaven.repo.local=${workspace}/repository -Dgalasa.manager.doc.directory=${workspace}/galasa.dev/src/markdown-pages/docs/managers -P ${mvnProfile} -B -e -fae dev.galasa:galasautils-maven-plugin:0.8.0:buildmanagerdoc"
- }
- }
- }
- stage('Create Pull Request') {
- steps {
- withCredentials([string(credentialsId: 'c4c96c90-6635-4813-ae7f-abfa889a96b6', variable: 'GITHUB_TOKEN')]) {
- dir('galasa.dev') {
- sh "${workspace}/githubdocs.sh"
- }
- }
- }
- }
- }
- post {
- // triggered when red sign
- failure {
- slackSend (channel: '#project-galasa-devs', color: '#FF0000', message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
- }
- }
-}
diff --git a/README.md b/README.md
index 93b07c072..8aa72b276 100644
--- a/README.md
+++ b/README.md
@@ -5,27 +5,123 @@ Managers are grouped by type within the parent folder, for example, the "galasa-
Each Manager comes with its own set of associated IVT tests and Javadoc.
We're adding new Manager every month. Look at the [summary table of Managers](https://galasa.dev/docs/managers/) for a list of available and planned Managers and to find out what they do.
-## Contributing
+## Contributing
If you are interested in the development of Galasa, take a look at the documentation and feel free to post a question on the Galasa Slack channel, or start sharing usage and development experiences with other Galasa users and the IBM team. You can also raise new ideas / features / bugs etc. as issues on [GitHub](https://github.com/galasa-dev/projectmanagement).
Take a look at the [contribution guidelines](https://github.com/galasa-dev/projectmanagement/blob/main/contributing.md).
## Documentation
-
More information can be found on the [Galasa Homepage](https://galasa.dev). Questions related to the usage of Galasa can be posted on the [Galasa Slack channel](https://galasa.slack.com).
-## Where can I get the latest release?
+## Where can I get the latest release?
Find out how to install the Galasa Eclipse plug-in from our [Installing the Galasa plug-in](https://galasa.dev/docs/getting-started/installing) documentation.
Other Galasa repositories are available on [GitHub](https://github.com/galasa-dev).
-## License
+## License
This code is under the [Eclipse Public License 2.0](https://github.com/galasa-dev/maven/blob/main/LICENSE).
+## Building locally
+Use the `./build-locally.sh` script to build locally.
+
+
+## Updating the versions of things
+Use the `./build-release-yaml.sh` script to scan the contents of the managers source code and populate the `release.yaml` file with version information taken from each manager source folder.
+
+## Manager testing and documentation levels
+Below is a table with the currently available Galasa Managers as seen documented on galasa.dev or visible on Maven Central, the level at which they were tested/are being tested, and the readiness indicator as described on the Galasa website.
+
+**Manager readiness indicator:**
+
+- Alpha: This Manager is being actively developed. It is subject to change and has not been extensively tested.
+- Beta: This Manager is almost ready. It has been tested and the TPI is stable, but there may be minor changes to come.
+- Release: This Manager is feature complete, has passed all tests and is deemed release grade.
+
+**Manager testing levels:**
+
+- Local: This Manager has been tested in a local Galasa Ecosystem
+- Isolated: This Manager has been tested in a Galasa Ecosystem with the Galasa Isolated configuration.
+- MVP: This Manager has been tested in a Galasa Ecosystem with the Galasa MVP configuration as it is shipped as part of the MVP.
+- IVT: This Manager has been tested locally during development.
+- Other Managers: This Manager does not have its own test but is used for the provisioning of other tests.
+
+
+**Managers documented on galasa.dev:**
+| Manager | Level of testing | Documented |
+| --- | --- | --- |
+| CICSTS Managers ||
+| CICSTS CECI | CECIManagerIVT ran in a Local and Isolated Ecosystem | Release |
+| CICSTS CEDA | CedaManagerIVT ran in a Local and Isolated Ecosystem | Alpha |
+| CICSTS CEMT | CEMTManagerIVT ran in a Local and Isolated Ecosystem | Alpha |
+| CICSTS | CICSTSManagerIVT ran in a ran in a Local and Isolated Ecosystem | Alpha |
+| Cloud Managers ||
+| Docker | DockerManagerIVT ran in a Local Ecosystem | Release |
+| Kubernetes | KubernetesManagerIVT ran locally during development | Alpha |
+| OpenStack | Other Managers | Alpha |
+| Communication Managers ||
+| HTTP | HttpManagerIVT ran in a Local Ecosystem | Release |
+| IP Network | Other Managers | Alpha |
+| MQ | MqManagerIVT ran locally during development | Alpha |
+| Core Managers ||
+| Artifact | ArtifactManagerIVT ran in a Local, Isolated and MVP Ecosystem | Release |
+| Core | CoreManagerIVT ran in a Local, Isolated and MVP Ecosystem | Release |
+| Logging Managers ||
+| Elastic Log | - | Alpha |
+| Ecosystem Managers ||
+| Galasa Ecosystem | Other Managers | Alpha |
+| Test Tool Managers ||
+| JMeter | JMeterManagerIVT ran locally during development | Beta |
+| Selenium | SeleniumManagerIVT ran locally during development | Beta |
+| Unix Managers ||
+| Linux | LinuxManagerIVT ran locally during development / Other Managers | Alpha |
+| Workflow Managers ||
+| GitHub Issue | Other Managers (Adhoc) | Release |
+| z/OS Managers ||
+| RSE API | - | Alpha |
+| z/OS 3270 | Zos3270IVT ran in a Local Ecosystem | Beta |
+| z/OS Batch z/OS MF | ZosManagerBatchIVT ran in a Local, Isolated and MVP Ecosystem with overrides = "zos.bundle.extra.batch.manager": "dev.galasa.zosbatch.rseapi.manager" | Beta |
+| z/OS Batch RSE API | ZosManagerBatchIVT ran in a Local, Isolated and MVP Ecosystem with overrides = "zos.bundle.extra.batch.manager": "dev.galasa.zosbatch.zosmf.manager" | Alpha |
+| z/OS Console OE Console | - | Alpha |
+| z/OS Console z/OS MF | - | Beta |
+| z/OS File RSE API | ZosManagerFileIVT, ZosManagerFileDatasetIVT and ZosManagerFileVSAMIVT ran in a Local, Isolated and MVP Ecosystem with overrides = "zos.bundle.extra.file.manager": "dev.galasa.zosfile.rseapi.manager" | Alpha |
+| z/OS File z/OS MF | ZosManagerFileIVT, ZosManagerFileDatasetIVT and ZosManagerFileVSAMIVT ran in a Local, Isolated and MVP Ecosystem with overrides = "zos.bundle.extra.file.manager": "dev.galasa.zosfile.zosmf.manager" | Beta |
+| z/OS | ZosManagerIVT ran in a Local, Isolated and MVP Ecosystem | Beta |
+| z/OS MF | Other Managers | Beta |
+| z/OS Program | Other Managers (CECI) | Alpha |
+| z/OS TSO Command SSH Manager | ZosManagerTSOCommandIVT ran in a Local, Isolated and MVP Ecosystem | Alpha |
+| z/OS Unix Command SSH Manager | Other Managers | Alpha |
+
+
+**Managers documented as 'Future Managers' on galasa.dev but already released on Maven Central:**
+| Manager | Progress |
+| --- | --- |
+| Liberty v0.21.0 | Empty interfaces but nothing implemented |
+| Windows v0.21.0 | Minimal implementation |
+
+
+**Managers not documented on galasa.dev but already released on Maven Central:**
+| Manager | Level of testing |
+| --- | --- |
+| CICSTS Resource | - |
+| Cloud | - |
+| DB2 | Db2ManagerIVT ran locally during development |
+| Eclipse Runtime | - |
+| Eclipse Runtime Ubuntu | - |
+| Java | - |
+| Java Ubuntu | Other Managers |
+| Java Windows | - |
+| Text Scan | Other Managers |
+| z/OS Liberty Angel | - |
+| z/OS Liberty | - |
+| z/OS Security | - |
+**Managers set to be removed from Open Source Galasa:**
+* Phoenix
+* SEM
+* VTP
diff --git a/build-locally.sh b/build-locally.sh
new file mode 100755
index 000000000..c2508401d
--- /dev/null
+++ b/build-locally.sh
@@ -0,0 +1,246 @@
+#! /usr/bin/env bash
+
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+#-----------------------------------------------------------------------------------------
+#
+# Objectives: Build this repository code locally.
+#
+# Environment variable over-rides:
+# LOGS_DIR - Optional. Where logs are placed. Defaults to creating a temporary directory.
+# SOURCE_MAVEN - Optional. Where a maven repository is from which the build will draw artifacts.
+# DEBUG - Optional. Defaults to 0 (off)
+#
+#-----------------------------------------------------------------------------------------
+
+# Where is this script executing from ?
+BASEDIR=$(dirname "$0");pushd $BASEDIR 2>&1 >> /dev/null ;BASEDIR=$(pwd);popd 2>&1 >> /dev/null
+# echo "Running from directory ${BASEDIR}"
+export ORIGINAL_DIR=$(pwd)
+# cd "${BASEDIR}"
+
+cd "${BASEDIR}/.."
+WORKSPACE_DIR=$(pwd)
+
+
+#-----------------------------------------------------------------------------------------
+#
+# Set Colors
+#
+#-----------------------------------------------------------------------------------------
+bold=$(tput bold)
+underline=$(tput sgr 0 1)
+reset=$(tput sgr0)
+red=$(tput setaf 1)
+green=$(tput setaf 76)
+white=$(tput setaf 7)
+tan=$(tput setaf 202)
+blue=$(tput setaf 25)
+
+#-----------------------------------------------------------------------------------------
+#
+# Headers and Logging
+#
+#-----------------------------------------------------------------------------------------
+underline() { printf "${underline}${bold}%s${reset}\n" "$@"
+}
+h1() { printf "\n${underline}${bold}${blue}%s${reset}\n" "$@"
+}
+h2() { printf "\n${underline}${bold}${white}%s${reset}\n" "$@"
+}
+debug() { printf "${white}%s${reset}\n" "$@"
+}
+info() { printf "${white}➜ %s${reset}\n" "$@"
+}
+success() { printf "${green}✔ %s${reset}\n" "$@"
+}
+error() { printf "${red}✖ %s${reset}\n" "$@"
+}
+warn() { printf "${tan}➜ %s${reset}\n" "$@"
+}
+bold() { printf "${bold}%s${reset}\n" "$@"
+}
+note() { printf "\n${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@"
+}
+
+#-----------------------------------------------------------------------------------------
+# Functions
+#-----------------------------------------------------------------------------------------
+function usage {
+ info "Syntax: build-locally.sh [OPTIONS]"
+ cat << EOF
+Options are:
+-c | --clean : Do a clean build. One of the --clean or --delta flags are mandatory.
+-d | --delta : Do a delta build. One of the --clean or --delta flags are mandatory.
+EOF
+}
+
+function check_exit_code () {
+ # This function takes 3 parameters in the form:
+ # $1 an integer value of the returned exit code
+ # $2 an error message to display if $1 is not equal to 0
+ if [[ "$1" != "0" ]]; then
+ error "$2"
+ exit 1
+ fi
+}
+#-----------------------------------------------------------------------------------------
+# Process parameters
+#-----------------------------------------------------------------------------------------
+exportbuild_type=""
+
+while [ "$1" != "" ]; do
+ case $1 in
+ -c | --clean ) export build_type="clean"
+ ;;
+ -d | --delta ) export build_type="delta"
+ ;;
+ -h | --help ) usage
+ exit
+ ;;
+ * ) error "Unexpected argument $1"
+ usage
+ exit 1
+ esac
+ shift
+done
+
+if [[ "${build_type}" == "" ]]; then
+ error "Need to use either the --clean or --delta parameter."
+ usage
+ exit 1
+fi
+
+#-----------------------------------------------------------------------------------------
+# Main logic.
+#-----------------------------------------------------------------------------------------
+
+source_dir="galasa-managers-parent"
+
+project=$(basename ${BASEDIR})
+
+
+# Debug or not debug ? Override using the DEBUG flag.
+if [[ -z ${DEBUG} ]]; then
+ export DEBUG=0
+ # export DEBUG=1
+ info "DEBUG defaulting to ${DEBUG}."
+ info "Over-ride this variable if you wish. Valid values are 0 and 1."
+else
+ info "DEBUG set to ${DEBUG} by caller."
+fi
+
+# Over-rode SOURCE_MAVEN if you want to build from a different maven repo...
+if [[ -z ${SOURCE_MAVEN} ]]; then
+ export SOURCE_MAVEN=https://development.galasa.dev/main/maven-repo/extensions/
+ info "SOURCE_MAVEN repo defaulting to ${SOURCE_MAVEN}."
+ info "Set this environment variable if you want to over-ride this value."
+else
+ info "SOURCE_MAVEN set to ${SOURCE_MAVEN} by caller."
+fi
+
+# Create a temporary dir.
+# Note: This bash 'spell' works in OSX and Linux.
+if [[ -z ${LOGS_DIR} ]]; then
+ export LOGS_DIR="${BASEDIR}/local-builds/logs"
+ info "Logs are stored in the ${LOGS_DIR} folder."
+ info "Over-ride this setting using the LOGS_DIR environment variable."
+else
+ info "Logs are stored in the ${LOGS_DIR} folder."
+ info "Over-ridden by caller using the LOGS_DIR variable."
+fi
+mkdir -p ${LOGS_DIR} 2>&1 > /dev/null # Don't show output. We don't care if it already existed.
+
+
+function build_code {
+ h1 "Building ${project}"
+ info "Using source code at ${source_dir}"
+ cd ${BASEDIR}/${source_dir}
+ if [[ "${DEBUG}" == "1" ]]; then
+ OPTIONAL_DEBUG_FLAG="-debug"
+ else
+ OPTIONAL_DEBUG_FLAG="-info"
+ fi
+
+ # auto plain rich or verbose
+ CONSOLE_FLAG=--console=plain
+
+ log_file=${LOGS_DIR}/logs.txt
+ info "Log will be placed at ${log_file}"
+
+ if [[ "${build_type}" == "clean" ]]; then
+ goals="clean build buildReleaseYaml check publishToMavenLocal -no-build-cache --no-daemon --parallel"
+ else
+ goals="build buildReleaseYaml check publishToMavenLocal --parallel"
+ fi
+
+ # The build process does this:
+ # gradle --no-daemon \
+ # --console plain \
+ # -PsourceMaven=https://development.galasa.dev/main/maven-repo/extensions \
+ # -PcentralMaven=https://repo.maven.apache.org/maven2/ \
+ # -PtargetMaven=../repo check publish --info
+
+ cmd="gradle \
+ ${CONSOLE_FLAG} \
+ -Dorg.gradle.java.home=${JAVA_HOME} \
+ -PsourceMaven=${SOURCE_MAVEN} ${OPTIONAL_DEBUG_FLAG} \
+ ${goals}
+ "
+
+ info "Using command: ${cmd}"
+ $cmd 2>&1 > ${log_file}
+
+ rc=$?
+ check_exit_code $rc "Failed to build ${project} see logs at ${log_file}"
+ success "Project ${project} built - OK - log is at ${log_file}"
+
+}
+
+function check_secrets {
+ h2 "updating secrets baseline"
+ cd ${BASEDIR}
+ detect-secrets scan --update .secrets.baseline
+ rc=$?
+ check_exit_code $rc "Failed to run detect-secrets. Please check it is installed properly"
+ success "updated secrets file"
+
+ h2 "running audit for secrets"
+ detect-secrets audit .secrets.baseline
+ rc=$?
+ check_exit_code $rc "Failed to audit detect-secrets."
+
+ #Check all secrets have been audited
+ secrets=$(grep -c hashed_secret .secrets.baseline)
+ audits=$(grep -c is_secret .secrets.baseline)
+ if [[ "$secrets" != "$audits" ]]; then
+ error "Not all secrets found have been audited"
+ exit 1
+ fi
+ sed -i '' '/[ ]*"generated_at": ".*",/d' .secrets.baseline
+ success "secrets audit complete"
+}
+
+function update_release_yaml {
+ h2 "Updating release.yaml"
+
+ # After running 'gradle build', a release.yaml file should have been automatically generated
+ generated_release_yaml="${BASEDIR}/galasa-managers-parent/build/release.yaml"
+ current_release_yaml="${BASEDIR}/release.yaml"
+
+ if [[ -f ${generated_release_yaml} ]]; then
+ cp ${generated_release_yaml} ${current_release_yaml}
+ success "Updated release.yaml OK"
+ else
+ warn "Failed to automatically generate release.yaml, please ensure any changed bundles have had their versions updated in ${current_release_yaml}"
+ fi
+}
+
+
+build_code
+update_release_yaml
+
+check_secrets
\ No newline at end of file
diff --git a/docker/.gitignore b/docker/.gitignore
deleted file mode 100644
index 7d37f1a59..000000000
--- a/docker/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-repo/
diff --git a/docker/Dockerfile b/dockerfiles/dockerfile
similarity index 59%
rename from docker/Dockerfile
rename to dockerfiles/dockerfile
index 68cf25c62..2cc63736a 100644
--- a/docker/Dockerfile
+++ b/dockerfiles/dockerfile
@@ -1,6 +1,6 @@
-ARG dockerRepository
-ARG branch
-FROM ${dockerRepository}/galasadev/galasa-maven-extensions:${branch}
-
-COPY repo/ /usr/local/apache2/htdocs/
-COPY managers.githash /usr/local/apache2/htdocs/managers.githash
+ARG dockerRepository
+ARG tag
+FROM ${dockerRepository}/galasa-dev/extensions-maven-artefacts:${tag}
+
+COPY repo/ /usr/local/apache2/htdocs/
+COPY managers.githash /usr/local/apache2/htdocs/managers.githash
\ No newline at end of file
diff --git a/galasa-managers-parent/build.gradle b/galasa-managers-parent/build.gradle
index ee8764385..2b13c9bd2 100644
--- a/galasa-managers-parent/build.gradle
+++ b/galasa-managers-parent/build.gradle
@@ -1,22 +1,20 @@
plugins {
id 'biz.aQute.bnd.builder' version '5.3.0' apply false
-
id 'jacoco'
id 'maven-publish'
+ id 'signing'
}
-version = '0.15.0'
-
-task clean {
- // make sure the build directory is gone
- doFirst {
- delete "${buildDir}"
- }
-}
+// Note: The following version number is updated using the set-version.sh tool.
+// It is used as the version number of the managers bundle, which contains a yaml
+// file which is in a release.yaml, but published to maven, so that the OBR build
+// can pick it up later.
+version = "0.37.0"
// A configuration to publish the merge exec into
configurations {
archives
+ release_metadata
}
// Get all the sub projects with jacoco plugin to add itself to the merge
@@ -24,25 +22,54 @@ subprojects {
plugins.withId('jacoco') {
rootProject.tasks.named('jacocoMerge').get().executionData(tasks.named('test').get())
}
+
+ // Uncomment the block below to get details about deprecations.
+
+// tasks.withType(JavaCompile) {
+// options.compilerArgs << '-Xlint:unchecked'
+// options.deprecation = true
+// }
+
+ // This task will suppress warnings (only in javadoc) about missing description for (@return, @throws etc..)
+ /*
+ Example warning:
+
+ warning: no description for @throws
+ * @throws SeleniumManagerException
+ */
+ // However, it will not suppress warnings / errors in the code itself
+ tasks.withType(Javadoc) {
+ options.addStringOption('Xdoclint:none', '-quiet')
+ }
+
}
// Define the artifact
-def execFile = layout.buildDirectory.file('jacoco/jacocoMerge.exec')
-def execArtifact = artifacts.add('archives', execFile.get().asFile) {
+def mergedReportFile = layout.buildDirectory.file('reports/jacoco/jacocoMerge/jacocoMerge.xml')
+def mergedReportArtifact = artifacts.add('archives', mergedReportFile.get().asFile) {
builtBy 'jacocoMerge'
}
+task jacocoMerge(type: JacocoReport) {
+ gradle.projectsEvaluated {
+ // Get the jacocoTestReport tasks in all subprojects
+ def searchRecursively = true
+ def reportTasks = project.getTasksByName('jacocoTestReport', searchRecursively)
+ dependsOn reportTasks
-task jacocoMerge(type: JacocoMerge) {
- doFirst {
- // go through all the files and remove the ones that do not exist. some managers do not have unit tests yet
- executionData = executionData.filter({f -> f.exists()})
+ executionData.setFrom(executionData.filter({ it.exists() }))
+ sourceDirectories.setFrom(reportTasks.sourceDirectories)
+ classDirectories.setFrom(reportTasks.classDirectories)
}
- enabled = jacocoEnabled.toBoolean()
+ reports {
+ html.required = true
+ xml.required = true
+ }
}
repositories {
+ mavenLocal()
maven {
url "$sourceMaven"
}
@@ -51,27 +78,195 @@ repositories {
}
}
+signing {
+ def signingKeyId = findProperty("signingKeyId")
+ def signingKey = findProperty("signingKey")
+ def signingPassword = findProperty("signingPassword")
+ useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
+ sign publishing.publications
+}
+
+tasks.withType(Sign) {
+ onlyIf { isMainOrRelease.toBoolean() }
+}
+
if (jacocoEnabled.toBoolean()) {
+ publishing {
+ publications {
+ maven(MavenPublication) {
+ artifact mergedReportArtifact
+
+ groupId = 'codecoverage'
+ artifactId = 'manager-unit-tests'
+ }
+ }
+ repositories {
+ maven {
+ url = "$targetMaven"
+
+ if ("$targetMaven".startsWith('http')) {
+ credentials {
+ username System.getenv("GITHUB_ACTOR")
+ password System.getenv("GITHUB_TOKEN")
+ }
+ }
+ }
+ }
+ }
+}
+
+
+def manifestFile = layout.buildDirectory.file("release.yaml").get().asFile
+
+def header = """#
+# Copyright contributors to the Galasa project
+#
+
+# -----------------------------------------------------------
+#
+# WARNING
+#
+# This file is periodically re-generated from the contents of
+# the repository, so don't make changes here manually please.
+# -----------------------------------------------------------
+
+
+apiVersion: galasa.dev/v1alpha
+kind: Release
+metadata:
+ name: galasa-release
+
+managers:
+ bundles:
+
+#
+# Manager
+#
+"""
+
+// Build the release.yaml file
+task buildReleaseYaml() {
+ println 'Building the release.yaml file...'
+
+ // During execution phase, make sure the file exists.
+ doFirst{
+ if ( !buildDir.exists() ) {
+ buildDir.mkdirs()
+ }
+ if (!manifestFile.exists()){
+ manifestFile.createNewFile()
+ } else {
+ manifestFile.delete()
+ manifestFile.createNewFile()
+ }
+ manifestFile.append(header)
+ }
+
+
+ subprojects {
+ ext {
+ // the property that should be overridden in suproject's build.gradle
+ // Each sub-project will set the values...
+ projectName = ''
+ includeInOBR = ''
+ includeInMVP = ''
+ includeInBOM = ''
+ includeInJavadoc = ''
+ includeInIsolated = ''
+ includeInCodeCoverage = ''
+ }
+
+ afterEvaluate {
+ doLast {
+ // Some projects don't have a version property... as they are parent projects mostly.
+ if (version != 'unspecified') {
+ def f = manifestFile
+ f.append("\n\n - artifact: $projectName")
+ f.append("\n version: $version")
+ if (includeInOBR != '') {
+ f.append("\n obr: $includeInOBR")
+ }
+ if (includeInMVP != '') {
+ f.append("\n mvp: $includeInMVP")
+ }
+ if (includeInBOM != '') {
+ f.append("\n bom: $includeInBOM")
+ }
+ if (includeInJavadoc != '') {
+ f.append("\n javadoc: $includeInJavadoc")
+ }
+ if (includeInIsolated != '') {
+ f.append("\n isolated: $includeInIsolated")
+ }
+ if (includeInCodeCoverage != '') {
+ f.append("\n codecoverage: $includeInCodeCoverage")
+ }
+ }
+ }
+ }
+ }
+}
+
+def myReleaseYaml = artifacts.add('release_metadata', manifestFile) {
+ builtBy 'buildReleaseYaml'
+}
+
+// Publish the release.yaml as a maven artifact.
+// Note: The maven co-ordinates are versioned using the version for this bundle.
publishing {
publications {
- maven(MavenPublication) {
- artifact execArtifact
-
- groupId = 'codecoverage'
- artifactId = 'manager-unit-tests'
- }
+
+ // Publish the component manifest/release.yaml
+ publishReleaseManifestYaml(MavenPublication) {
+ artifact myReleaseYaml
+
+ pom {
+ name = "Manifest for managers bundle versions"
+ artifactId = "dev.galasa.managers.manifest"
+ groupId = 'dev.galasa'
+ version = "0.37.0"
+ description = "Conveys bundle version information to OBR builds."
+ licenses {
+ license {
+ name = 'Eclipse Public License - v 2.0'
+ url = 'https://www.eclipse.org/legal/epl-2.0/t'
+ }
+ }
+ url = 'https://galasa.dev'
+ developers {
+ developer {
+ name = 'Galasa Developer'
+ email = 'galasadelivery@ibm.com'
+ organization = 'IBM'
+ organizationUrl = 'https://www.ibm.com'
+ }
+ }
+ scm {
+ connection = 'scm:git:git:://github.com/galasa-dev/managers'
+ developerConnection = 'scm:git:git:://github.com/galasa-dev/managers'
+ url = 'https://github.com/galasa-dev/managers'
+ }
+ issueManagement {
+ system = 'GitHub'
+ url = 'https://github.com/galasa-dev/projectmanagement/issues'
+ }
+ }
+
+ }
}
+
repositories {
maven {
url = "$targetMaven"
-
+
if ("$targetMaven".startsWith('http')) {
credentials {
- username System.getenv('MAVENUSERNAME')
- password System.getenv('MAVENPASSWORD')
+ username System.getenv("GITHUB_ACTOR")
+ password System.getenv("GITHUB_TOKEN")
}
}
}
}
}
-}
\ No newline at end of file
+
+
diff --git a/galasa-managers-parent/buildSrc/src/main/groovy/galasa.java.gradle b/galasa-managers-parent/buildSrc/src/main/groovy/galasa.java.gradle
index c775b6e96..8e8c39865 100644
--- a/galasa-managers-parent/buildSrc/src/main/groovy/galasa.java.gradle
+++ b/galasa-managers-parent/buildSrc/src/main/groovy/galasa.java.gradle
@@ -58,13 +58,17 @@ repositories {
}
signing {
+ def signingKeyId = findProperty("signingKeyId")
+ def signingKey = findProperty("signingKey")
+ def signingPassword = findProperty("signingPassword")
+ useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications
}
tasks.withType(Sign) {
- onlyIf { isRelease.toBoolean() }
+ onlyIf { isMainOrRelease.toBoolean() }
}
publishing {
@@ -79,45 +83,15 @@ publishing {
licenses {
license {
name = 'Eclipse Public License - v 2.0'
- url = 'https://www.eclipse.org/legal/epl-2.0/t'
+ url = 'https://www.eclipse.org/legal/epl-2.0'
}
}
developers {
developer {
- name = 'Michael Baylis'
- email = 'Michael.Baylis@uk.ibm.com'
- organization = 'IBM'
- organizationUrl = 'https://www.ibm.com'
- }
- developer {
- name = 'William Yates'
- email = 'wyates@uk.ibm.com'
- organization = 'IBM'
- organizationUrl = 'https://www.ibm.com'
- }
- developer {
- name = 'David Roberts'
- email = 'david.roberts@uk.ibm.com'
- organization = 'IBM'
- organizationUrl = 'https://www.ibm.com'
- }
- developer {
- name = 'James Davies'
- email = 'james.davies@ibm.com'
- organization = 'IBM'
- organizationUrl = 'https://www.ibm.com'
- }
- developer {
- name = 'Kees Jansen'
- email = 'kees.jansen@ibm.com'
- organization = 'IBM'
- organizationUrl = 'https://www.ibm.com'
- }
- developer {
- name = 'Jade Carino'
- email = 'jade.carino@ibm.com'
- organization = 'IBM'
- organizationUrl = 'https://www.ibm.com'
+ name = 'Galasa Contributors'
+ email = 'galasadelivery@ibm.com'
+ organization = 'Linux Foundation'
+ organizationUrl = 'https://github.com/galasa-dev'
}
}
scm {
@@ -138,8 +112,8 @@ publishing {
if ("$targetMaven".startsWith('http')) {
credentials {
- username System.getenv('MAVENUSERNAME')
- password System.getenv('MAVENPASSWORD')
+ username System.getenv("GITHUB_ACTOR")
+ password System.getenv("GITHUB_TOKEN")
}
}
}
diff --git a/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.gradle b/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.gradle
index c92bf982a..9dfcd0d29 100644
--- a/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.gradle
+++ b/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.gradle
@@ -5,8 +5,8 @@ plugins {
}
dependencies {
- api 'dev.galasa:dev.galasa:0.21.0'
- implementation 'dev.galasa:dev.galasa.framework:0.25.0'
+ api 'dev.galasa:dev.galasa:0.34.0'
+ implementation 'dev.galasa:dev.galasa.framework:0.37.0'
implementation 'commons-logging:commons-logging:1.2'
implementation 'org.osgi:org.osgi.core:6.0.0'
implementation 'org.osgi:org.osgi.service.component.annotations:1.3.0'
@@ -21,11 +21,22 @@ dependencies {
}
jacoco {
- toolVersion = "0.8.6"
+ toolVersion = "0.8.7"
}
test {
jacoco {
enabled = jacocoEnabled.toBoolean()
}
+ finalizedBy jacocoTestReport
+}
+
+jacocoTestReport {
+ enabled = jacocoEnabled.toBoolean()
+ dependsOn test
+
+ reports {
+ html.required = true
+ xml.required = true
+ }
}
diff --git a/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.ivt.gradle b/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.ivt.gradle
index 02fd96028..ec2915763 100644
--- a/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.ivt.gradle
+++ b/galasa-managers-parent/buildSrc/src/main/groovy/galasa.manager.ivt.gradle
@@ -4,7 +4,7 @@ plugins {
}
dependencies {
- implementation 'dev.galasa:dev.galasa:0.21.0'
+ implementation 'dev.galasa:dev.galasa:0.34.0'
implementation 'commons-logging:commons-logging:1.2'
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/build.gradle
index b02180935..590bff3ec 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/build.gradle
@@ -4,7 +4,7 @@ plugins {
description = 'Galasa CECI Manager IVTs'
-version = '0.23.0'
+version = '0.25.0'
dependencies {
implementation project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.ceci.manager')
@@ -15,3 +15,17 @@ dependencies {
implementation project (':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zosprogram.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/settings.gradle
index db2c96513..78abd2ddb 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.ceci.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.ceci.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/src/main/java/dev/galasa/cicsts/ceci/manager/ivt/CECIManagerIVT.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/src/main/java/dev/galasa/cicsts/ceci/manager/ivt/CECIManagerIVT.java
index 4e9de8fc1..fdc09046a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/src/main/java/dev/galasa/cicsts/ceci/manager/ivt/CECIManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager.ivt/src/main/java/dev/galasa/cicsts/ceci/manager/ivt/CECIManagerIVT.java
@@ -1,7 +1,8 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
-
package dev.galasa.cicsts.ceci.manager.ivt;
import static org.assertj.core.api.Assertions.assertThat;
@@ -550,7 +551,7 @@ private int getExpectedEIBDate() throws TimeoutException, KeyboardLockedExceptio
// EIBDATE is in packed decimal format
String expectedEIBDate = (date.getYear() <= 1999 ? "0" : "1")
+ Integer.toString(date.getYear()).substring(2)
- + (date.getDayOfYear() <= 99 ? "0" + date.getDayOfYear() : date.getDayOfYear());
+ + (date.getDayOfYear() <= 99 ? date.getDayOfYear() <= 9 ? "00" + date.getDayOfYear() : "0" + date.getDayOfYear() : date.getDayOfYear());
return Integer.parseInt(expectedEIBDate);
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/bnd.bnd b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/bnd.bnd
index 3eeacfa2d..6cd1df397 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/bnd.bnd
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/bnd.bnd
@@ -1,5 +1,5 @@
-snapshot: ${tstamp}
Bundle-Name: Galasa CICS/TS CECI Manager
-Export-Package: dev.galasa.cicsts.ceci.spi.spi
+Export-Package: dev.galasa.cicsts.ceci.spi
Import-Package: !javax.validation.constraints, \
*
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/build.gradle
index d4ebce2de..158a38a41 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/build.gradle
@@ -4,9 +4,25 @@ plugins {
description = 'Galasa CICS/TS CECI Manager'
-version = '0.21.0'
+version = '0.25.0'
dependencies {
api project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager')
}
+
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/settings.gradle
index cf41efba5..5251901e3 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.ceci.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.ceci.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciExecInterfaceBlockImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciExecInterfaceBlockImpl.java
index dc0341876..1416014b6 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciExecInterfaceBlockImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciExecInterfaceBlockImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import dev.galasa.cicsts.IExecInterfaceBlock;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciImpl.java
index a4b2c9922..d9476c16a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceci.internal;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerField.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerField.java
index e199f58f7..6e9690181 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerField.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceci.internal;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerImpl.java
index 2e8ef8655..f892e2e24 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019, 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceci.internal;
@@ -18,7 +18,7 @@
import dev.galasa.cicsts.ICeci;
import dev.galasa.cicsts.ICicsRegion;
import dev.galasa.cicsts.ceci.internal.properties.CeciPropertiesSingleton;
-import dev.galasa.cicsts.ceci.spi.spi.ICeciManagerSpi;
+import dev.galasa.cicsts.ceci.spi.ICeciManagerSpi;
import dev.galasa.cicsts.spi.ICeciProvider;
import dev.galasa.cicsts.spi.ICicstsManagerSpi;
import dev.galasa.framework.spi.AbstractManager;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciResponseImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciResponseImpl.java
index 947195c61..52365c06a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciResponseImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/CeciResponseImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/ResponseOutputValueImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/ResponseOutputValueImpl.java
index 4fc040d6a..02a06b2d5 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/ResponseOutputValueImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/ResponseOutputValueImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import dev.galasa.cicsts.CeciException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/package-info.java
index 1ad43fba0..e5e8ce84a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/package-info.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* CICS/TS CECI Manager - Internal Implementation
*/
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/CeciPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/CeciPropertiesSingleton.java
index 2d1f8c3bc..1c29f20fd 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/CeciPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/CeciPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceci.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/package-info.java
index dd50075b1..c10137ec3 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/internal/properties/package-info.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* CICS/TS CECI Manager - CPS Properties
*
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/ICeciManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/ICeciManagerSpi.java
new file mode 100644
index 000000000..9060537e6
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/ICeciManagerSpi.java
@@ -0,0 +1,13 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.cicsts.ceci.spi;
+
+/**
+ * Provides the SPI access to the CICS/TS CECI Manager
+ */
+public interface ICeciManagerSpi {
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/codesnippet_01.md b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/codesnippet_01.md
similarity index 100%
rename from galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/codesnippet_01.md
rename to galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/codesnippet_01.md
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/package-info.java
new file mode 100644
index 000000000..3a8ab9141
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/package-info.java
@@ -0,0 +1,9 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+/**
+ * zOSMF Batch Manager - Internal SPI
+ */
+package dev.galasa.cicsts.ceci.spi;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/ICeciManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/ICeciManagerSpi.java
deleted file mode 100644
index e1c33603a..000000000
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/ICeciManagerSpi.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
-package dev.galasa.cicsts.ceci.spi.spi;
-
-/**
- * Provides the SPI access to the CICS/TS CECI Manager
- */
-public interface ICeciManagerSpi {
-
-}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/package-info.java
deleted file mode 100644
index aa574b9c5..000000000
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/main/java/dev/galasa/cicsts/ceci/spi/spi/package-info.java
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * zOSMF Batch Manager - Internal SPI
- */
-package dev.galasa.cicsts.ceci.spi.spi;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciExecInterfaceBlockImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciExecInterfaceBlockImpl.java
index 66be21d96..136e657b1 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciExecInterfaceBlockImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciExecInterfaceBlockImpl.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import java.util.Arrays;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciImpl.java
index c910bb2b4..280cd8a31 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciImpl.java
@@ -1,1569 +1,1549 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
-//import java.util.Arrays;
-//import java.util.HashMap;
-//import java.util.LinkedHashMap;
-//
-//import org.junit.Assert;
-//import org.junit.Before;
-//import org.junit.Test;
-//import org.junit.runner.RunWith;
-//import org.mockito.Mock;
-//import org.mockito.Mockito;
-//import org.powermock.api.mockito.PowerMockito;
-//import org.powermock.modules.junit4.PowerMockRunner;
-//import org.powermock.reflect.Whitebox;
-//
-//import dev.galasa.cicsts.CeciException;
-//import dev.galasa.cicsts.CicstsManagerException;
-//import dev.galasa.cicsts.ICeciResponse;
-//import dev.galasa.cicsts.ICicsRegion;
-//import dev.galasa.cicsts.ICicsTerminal;
-//import dev.galasa.zos3270.FieldNotFoundException;
-//import dev.galasa.zos3270.KeyboardLockedException;
-//import dev.galasa.zos3270.TerminalInterruptedException;
-//import dev.galasa.zos3270.TimeoutException;
-//import dev.galasa.zos3270.spi.NetworkException;
-
-//@RunWith(PowerMockRunner.class)
+import java.lang.reflect.Field;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.Mockito;
+
+import dev.galasa.cicsts.CeciException;
+import dev.galasa.cicsts.CicstsManagerException;
+import dev.galasa.cicsts.ICeciResponse;
+import dev.galasa.cicsts.ICicsRegion;
+import dev.galasa.cicsts.ICicsTerminal;
+import dev.galasa.zos3270.FieldNotFoundException;
+import dev.galasa.zos3270.KeyboardLockedException;
+import dev.galasa.zos3270.TerminalInterruptedException;
+import dev.galasa.zos3270.TimeoutException;
+import dev.galasa.zos3270.spi.NetworkException;
+import org.mockito.junit.MockitoJUnitRunner;
+import org.mockito.verification.VerificationMode;
+
+@RunWith(MockitoJUnitRunner.class)
public class TestCeciImpl {
-
-
-// private CeciImpl ceci;
-//
-// private CeciImpl ceciSpy;
-//
-// // Static fields in CeciImpl
-// private static final String INITIAL_SCREEN_ID = "STATUS: ENTER ONE OF THE FOLLOWING";
-// private static final String VAR_SCREEN_ID = "VARIABLES LENGTH DATA";
-// private static final String COMMAND_EXECUTION_COMPLETE = "STATUS: COMMAND EXECUTION COMPLETE";
-// private static final String MESSAGE_DFHAC2206 = "DFHAC2206";
-// private static final String NO_SYNTAX_MESSAGES = "THERE ARE NO MESSAGES";
-// private static final String WRONG_CICS_REGION = "Provided terminal does not belong to the correct CICS TS Region";
-//
-// private static final String COMMAND_VALUE = "COMMAND";
-// private static final String TEXT_VARIABLE_NAME = "&VARIABLE";
-// private static final String TEXT_VARIABLE_VALUE = "VARIABLE";
-// private static final String PROGRAM_NAME = "MYPROG";
-// private static final String CHANNEL_NAME = "CHANNEL";
-// private static final String CONTAINER_NAME = "CONTAINER";
-// private static final String SPACES = " ";
-//
-// @Mock
-// private ICicsTerminal ceciTerminalMock;
-//
-// @Mock
-// private ICicsTerminal wrongCeciTerminalMock;
-//
-// @Mock
-// private ICicsRegion cicsRegionMock;
-//
-// @Mock
-// private ICicsRegion wrongCicsRegionMock;
-//
-// @Mock
-// private ICeciResponse ceciResponseMock;
-//
-// @Before
-// public void setup() throws FieldNotFoundException, KeyboardLockedException, NetworkException, TerminalInterruptedException, TimeoutException {
-// ceci = new CeciImpl(null, cicsRegionMock);
-// ceciSpy = Mockito.spy(ceci);
-//
-// // Mock all terminal function
-// Mockito.when(ceciTerminalMock.type(Mockito.any())).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.enter()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf2()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf3()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf4()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf5()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf9()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf10()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.pf11()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.tab()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.home()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.newLine()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.cursorLeft()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.eraseEof()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.reportScreenWithCursor()).thenReturn(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.getCicsRegion()).thenReturn(cicsRegionMock);
-// Mockito.when(wrongCeciTerminalMock.getCicsRegion()).thenReturn(wrongCicsRegionMock);
-// }
-//
-// @Test
-// public void teststartCECISession() throws Exception {
-// setupTestIssueCommand();
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(INITIAL_SCREEN_ID);
-// Mockito.when(ceciTerminalMock.isClearScreen()).thenReturn(true);
-// ceciSpy.startCECISession(ceciTerminalMock);
-//
-// Mockito.when(ceciTerminalMock.isClearScreen()).thenReturn(false);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("NOT_INITIAL_SCREEN_ID");
-// String expectedMessage = "Not on CECI initial screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.startCECISession(ceciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-//
-// Mockito.when(ceciTerminalMock.resetAndClear()).thenThrow(new CicstsManagerException());
-// expectedMessage = "Problem starting CECI session";
-// expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.startCECISession(ceciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-//
-// expectedMessage = WRONG_CICS_REGION;
-// expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.startCECISession(wrongCeciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testIssueCommand() throws Exception {
-// setupTestIssueCommand();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(COMMAND_EXECUTION_COMPLETE);
-// Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE));
-//
-// PowerMockito.doReturn(COMMAND_VALUE).when(ceciSpy, "retrieveVariableText", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("USER SCREEN").thenReturn("USER SCREEN").thenReturn(COMMAND_EXECUTION_COMPLETE);
-// Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE));
-//
-// Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE, null));
-//
-// HashMap options = new HashMap<>();
-// Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE, options));
-//
-// options.put("KEY1", null);
-// options.put("KEY2", "");
-// options.put("KEY3", "VALUE");
-// Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE, options));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.issueCommand(wrongCeciTerminalMock, COMMAND_VALUE, true);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testIssueCommandException1() throws Exception {
-// setupTestIssueCommand();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(MESSAGE_DFHAC2206);
-// String expectedMessage = "Command abended - see previous screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testIssueCommandException2() throws Exception {
-// setupTestIssueCommand();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("USER SCREEN").thenReturn("USER SCREEN").thenReturn("USER SCREEN");
-// String expectedMessage = "Command failed - see previous screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-//
-// }
-//
-// @Test
-// public void testIssueCommandException3() throws Exception {
-// setupTestIssueCommand();
-//
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Error issuing CECI command";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-//
-// }
-//
-// @Test
-// public void testIssueCommandException4() throws Exception {
-// setupTestIssueCommand();
-//
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Error issuing CECI command";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-//
-// }
-//
-// private void setupTestIssueCommand() throws Exception {
-// PowerMockito.doReturn(0).when(ceciSpy, "defineVariableText", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isCeciScreen");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "initialScreen");
-// PowerMockito.doNothing().when(ceciSpy, "checkForSyntaxMessages");
-// PowerMockito.doReturn(ceciResponseMock).when(ceciSpy, "newCeciResponse", Mockito.anyBoolean());
-// }
-//
-// @Test
-// public void testDefineVariableText() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-//
-// Assert.assertEquals("Error in defineVariableText() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.defineVariableText(ceciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariableText(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDefineVariableBinary() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy, "setVariableHex", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in defineVariableBinary() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.defineVariableBinary(ceciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray()));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariableBinary(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDefineVariableDoubleWord() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(99).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in defineVariableDoubleWord() method", 99, ceciSpy.defineVariableDoubleWord(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariableDoubleWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDefineVariableFullWord() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(99).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in defineVariableFullWord() method", 99, ceciSpy.defineVariableFullWord(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariableFullWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDefineVariableHalfWord() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(99).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in defineVariableHalfWord() method", 99, ceciSpy.defineVariableHalfWord(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariableHalfWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDefineVariable4BytePacked() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(99).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in defineVariablePacked() method", 99, ceciSpy.defineVariable4BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariable4BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDefineVariable8BytePacked() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(99).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in defineVariablePacked() method", 99, ceciSpy.defineVariable8BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.defineVariable8BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariableText() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE).when(ceciSpy, "getVariable", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in retrieveVariableText() method", TEXT_VARIABLE_VALUE, ceciSpy.retrieveVariableText(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariableText(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariableBinary() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.toCharArray()).when(ceciSpy, "getVariableHex", Mockito.any());
-// Assert.assertTrue("Error in retrieveVariableBinary() method", Arrays.equals(TEXT_VARIABLE_VALUE.toCharArray(), ceciSpy.retrieveVariableBinary(ceciTerminalMock, TEXT_VARIABLE_NAME)));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariableBinary(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariableDoubleWord() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn("99").when(ceciSpy, "getVariable", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in retrieveVariableDoubleWord() method", 99L, ceciSpy.retrieveVariableDoubleWord(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariableDoubleWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariableFullWord() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn("99").when(ceciSpy, "getVariable", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in retrieveVariableFullWord() method", 99, ceciSpy.retrieveVariableFullWord(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariableFullWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariableHalfWord() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn("99").when(ceciSpy, "getVariable", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in retrieveVariableHalfWord() method", 99, ceciSpy.retrieveVariableHalfWord(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariableHalfWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariable4BytePacked() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn("99").when(ceciSpy, "getVariable", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in retrieveVariablePacked() method", 99, ceciSpy.retrieveVariable4BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariable4BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testRetrieveVariable8BytePacked() throws Exception {
-// PowerMockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy, "validateVariable", Mockito.any(), Mockito.any(), Mockito.any());
-// PowerMockito.doReturn("99").when(ceciSpy, "getVariable", Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in retrieveVariablePacked() method", 99, ceciSpy.retrieveVariable8BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.retrieveVariable8BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteVariable() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(SPACES);
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(1)).invoke("retrieveScreen");
-//
-// Mockito.clearInvocations(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE))
-// .thenReturn(SPACES);
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(2)).invoke("retrieveScreen");
-//
-// Mockito.clearInvocations(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE))
-// .thenReturn(SPACES);
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "XXXX"))
-// .thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(2)).invoke("retrieveScreen");
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME.substring(1));
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(3)).invoke("retrieveScreen");
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteVariable(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteVariableException1() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "XXXX"))
-// .thenReturn("PF");
-// String expectedMessage = "Unable to find variable to delete";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteVariableException2() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "XXXX"))
-// .thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
-// String expectedMessage = "Delete variable failed";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteVariableException3() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to delete variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteVariableException4() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to delete variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteAllVariables() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("");
-// ceciSpy.deleteAllVariables(ceciTerminalMock);
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(55)).invoke("tab");
-//
-// Mockito.clearInvocations(ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("PF");
-// ceciSpy.deleteAllVariables(ceciTerminalMock);
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(1)).invoke("tab");
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteAllVariables(wrongCeciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteAllVariablesException1() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to delete all variables";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteAllVariables(ceciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testDeleteAllVariablesException2() throws Exception {
-// setupTestDeleteVariable();
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to delete all variables";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.deleteAllVariables(ceciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// private void setupTestDeleteVariable() throws Exception {
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "hexOff");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "variableScreen");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// }
-//
-// @Test
-// public void testGetEIB() throws Exception {
-// setupTestGetEIB();
-//
-// Assert.assertTrue("Error in getEIB() method", ceciSpy.getEIB(ceciTerminalMock) instanceof CeciExecInterfaceBlockImpl);
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getEIB(wrongCeciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetEIBException1() throws Exception {
-// setupTestGetEIB();
-//
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to navigate to EIB screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getEIB(ceciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetEIBException2() throws Exception {
-// setupTestGetEIB();
-//
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to navigate to EIB screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getEIB(ceciTerminalMock);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// private void setupTestGetEIB() throws Exception {
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "hexOff");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "hexOn");
-// }
-//
-// @Test
-// public void testLinkProgram() throws Exception {
-// PowerMockito.doReturn(ceciResponseMock).when(ceciSpy, "issueCommand", Mockito.any(), Mockito.any());
-//
-// Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, null, null, null, false));
-//
-// Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, TEXT_VARIABLE_NAME, "SYSID", null, false));
-//
-// Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, TEXT_VARIABLE_NAME, null, "TRAN", false));
-//
-// Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, TEXT_VARIABLE_NAME, null, null, true));
-//
-// PowerMockito.doReturn(0).when(ceciSpy, "defineVariableText", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, "COMMAREA", null, null, false));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.linkProgram(wrongCeciTerminalMock, PROGRAM_NAME, null, null, null, false);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testLinkProgramWithChannel() throws Exception {
-// PowerMockito.doReturn(ceciResponseMock).when(ceciSpy, "issueCommand", Mockito.any(), Mockito.any());
-//
-// Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, null, null, null, false));
-//
-// Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, CHANNEL_NAME, "SYSID", null, false));
-//
-// Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, CHANNEL_NAME, null, "TRAN", false));
-//
-// Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, CHANNEL_NAME, null, null, true));
-//
-// PowerMockito.doReturn(0).when(ceciSpy, "defineVariableText", Mockito.any(), Mockito.any(), Mockito.any());
-// Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, "CHANNEL_NAME", null, null, false));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.linkProgramWithChannel(wrongCeciTerminalMock, PROGRAM_NAME, null, null, null, false);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testPutContainer() throws Exception {
-// PowerMockito.doReturn(ceciResponseMock).when(ceciSpy, "issueCommand", Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-//
-// Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_VALUE, null, null, null));
-//
-// Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null, null));
-//
-// Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, "CHAR", null, null));
-//
-// Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, "CCID", null));
-//
-// Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null, "CODEPAGE"));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.putContainer(wrongCeciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_VALUE, null, null, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetContainer() throws Exception {
-// PowerMockito.doReturn(ceciResponseMock).when(ceciSpy, "issueCommand", Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy, "setVariable", Mockito.any(), Mockito.any(), Mockito.any());
-//
-// Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null));
-//
-// Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, "CCID", null));
-//
-// Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, "CODEPAGE"));
-//
-// Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME.substring(1), null, null));
-//
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getContainer(wrongCeciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testInitialScreen() throws Exception {
-// setupTestInitialScreen();
-//
-// PowerMockito.doReturn(true).when(ceciSpy, "isCeciScreen");
-// PowerMockito.doReturn(false).when(ceciSpy, "isHelpScreen", Mockito.any());
-// Assert.assertEquals("Error in initialScreen() method", ceciTerminalMock, ceciSpy.initialScreen());
-//
-// PowerMockito.doReturn(true).when(ceciSpy, "isHelpScreen", Mockito.any());
-// Assert.assertEquals("Error in initialScreen() method", ceciTerminalMock, ceciSpy.initialScreen());
-//
-// PowerMockito.when(ceciSpy, "isCeciScreen").thenReturn(false).thenReturn(true);
-// Assert.assertEquals("Error in initialScreen() method", ceciTerminalMock, ceciSpy.initialScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isInitialScreen", Mockito.any());
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.initialScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", "Unable to navigate to CECI initial screen", expectedException.getMessage());
-// }
-//
-// @Test
-// public void testInitialScreenException1() throws Exception {
-// setupTestInitialScreen();
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isCeciScreen");
-// String expectedMessage = "Cannot identify terminal as CECI session";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.initialScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testInitialScreenException2() throws Exception {
-// setupTestInitialScreen();
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isCeciScreen");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to navigate to CECI initial screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.initialScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testInitialScreenException3() throws Exception {
-// setupTestInitialScreen();
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isCeciScreen");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to navigate to CECI initial screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.initialScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// private void setupTestInitialScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(INITIAL_SCREEN_ID);
-// }
-//
-// @Test
-// public void testVariableScreen() throws Exception {
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "initialScreen");
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("").thenReturn(VAR_SCREEN_ID);
-// Assert.assertEquals("Error in variableScreen() method", ceciTerminalMock, ceciSpy.variableScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isVariablesScreen", Mockito.any());
-// String expectedMessage = "Unable to navigate to CECI variables screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.variableScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage , expectedException.getMessage());
-// }
-//
-// @Test
-// public void testVariableScreenException1() throws Exception {
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "initialScreen");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to navigate to CECI variables screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.variableScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testVariableScreenException2() throws Exception {
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "initialScreen");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to navigate to CECI variables screen";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.variableScreen();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testisCeciScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(true).when(ceciSpy, "isInitialScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isHelpScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isCommandBeforeScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isCommandAfterScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isEibScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isVariablesScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isVariablesExpansionScreen", Mockito.any());
-// PowerMockito.doReturn(true).when(ceciSpy, "isMsgScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isInitialScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isHelpScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isCommandBeforeScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isCommandAfterScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isEibScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isVariablesScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isVariablesExpansionScreen", Mockito.any());
-// Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isMsgScreen", Mockito.any());
-// Assert.assertFalse("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
-//
-// }
-//
-// @Test
-// public void testIsInitialScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isInitialScreen() method", ceciSpy.isInitialScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsCommandBeforeScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isCommandBeforeScreen() method", ceciSpy.isCommandBeforeScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsCommandAfterScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isCommandAfterScreen() method", ceciSpy.isCommandAfterScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsHelpScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isHelpScreen() method", ceciSpy.isHelpScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsEibScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isEibScreen() method", ceciSpy.isEibScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsVariablesScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isVariablesScreen() method", ceciSpy.isVariablesScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsMsgScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isMsgScreen() method", ceciSpy.isMsgScreen(SPACES));
-// }
-//
-// @Test
-// public void testIsVariablesExpansionScreen() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Assert.assertFalse("Error in isVariablesExpansionScreen() method", ceciSpy.isVariablesExpansionScreen(SPACES));
-// }
-//
-// @Test
-// public void testMultipleTab() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-//
-// Assert.assertEquals("Error in multipleTab() method", ceciTerminalMock, ceciSpy.multipleTab(1));
-// }
-//
-// @Test
-// public void testCheckForSyntaxMessages() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(NO_SYNTAX_MESSAGES);
-//
-// ceciSpy.checkForSyntaxMessages();
-// PowerMockito.verifyPrivate(ceciTerminalMock, Mockito.times(1)).invoke("enter");
-// }
-//
-// @Test
-// public void testCheckForSyntaxMessagesException1() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Whitebox.setInternalState(ceciSpy, "command", COMMAND_VALUE);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(SPACES);
-// String expectedMessage = "Command failed syntax check. \nCommand:\n " + COMMAND_VALUE + "\nSyntax Error Screen:\n" + SPACES;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.checkForSyntaxMessages();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testCheckForSyntaxMessagesException2() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(NO_SYNTAX_MESSAGES);
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to check for syntax messages";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.checkForSyntaxMessages();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testCheckForSyntaxMessagesException3() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(NO_SYNTAX_MESSAGES);
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to check for syntax messages";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.checkForSyntaxMessages();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testValidateVariable() throws Exception {
-// Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray(), null));
-//
-// Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME.substring(1), TEXT_VARIABLE_VALUE.toCharArray(), Integer.toString(TEXT_VARIABLE_VALUE.length())));
-//
-// Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray(), null));
-//
-// Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME, null, null));
-//
-// String name = "&234567890";
-// Assert.assertEquals("Error in validateVariable() method", name, ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null));
-//
-// name = "&azAZ09@#";
-// Assert.assertEquals("Error in validateVariable() method", name, ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null));
-// }
-//
-// @Test
-// public void testValidateVariableException1() throws Exception {
-// String name = "&2345678901";
-// String expectedMessage = "CECI variable name \"" + name + "\" greater than maximum length of 10 characters including the leading \"&\"";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testValidateVariableException2() throws Exception {
-// String name = "&?";
-// String expectedMessage = "CECI variable name \"" + name + "\" invalid must. Must start with \"&\" and can contain one of more [a-zA-Z0-9@#]";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testValidateVariableException3() throws Exception {
-// String value = "123456789";
-// String type = "H";
-// int maxLength = 6;
-// String expectedMessage = "CECI variable value length " + value.length() + " greater than maximum of " + maxLength + " for type \"" + type + "\"" ;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.validateVariable(TEXT_VARIABLE_NAME, value.toCharArray(), type);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testValidateVariableException4() throws Exception {
-// String value = new String(new char[32768]).replace("\0", "X");
-// String expectedMessage = "CECI variable value length " + value.length() + " greater than maximum 32767";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.validateVariable(TEXT_VARIABLE_NAME, value.toCharArray(), null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariable() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy, "setVariableOnPage", Mockito.any(), Mockito.anyInt(), Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "X")).thenReturn(String.format("%-10s", " "));
-// Assert.assertEquals("Error in setVariable() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null));
-//
-// Assert.assertEquals("Error in setVariable() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariable(TEXT_VARIABLE_NAME + "X", TEXT_VARIABLE_VALUE, null));
-//
-// Assert.assertEquals("Error in setVariable() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, "H"));
-//
-// int length = 1281;
-// Mockito.when(ceciSpy.setVariableOnPage(Mockito.any(), Mockito.anyInt(), Mockito.anyInt())).thenReturn(20).thenReturn(21);
-// Assert.assertEquals("Error in setVariable() method", length, ceciSpy.setVariable(TEXT_VARIABLE_NAME, new String(new char[length]).replace("\0", "X"), null));
-// }
-//
-// @Test
-// public void testSetVariableException1() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn("PF").when(ceciTerminalMock, "retrieveFieldAtCursor");
-// String expectedMessage = "No space on CECI variable screen for new variables";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariableException2() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock, "retrieveFieldAtCursor");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to set CECI variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariableException3() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock, "retrieveFieldAtCursor");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to set CECI variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// private void setupTestVariable() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doNothing().when(ceciSpy, "deleteVariable", Mockito.any(), Mockito.any());
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "hexOff");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "variableScreen");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "moveToVariable", Mockito.any());
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// }
-//
-// @Test
-// public void testSetVariableOnPage() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-//
-// String[] chunks = new String[] {TEXT_VARIABLE_VALUE, TEXT_VARIABLE_VALUE};
-// int start = 0;
-// int numberOfLines = 1;
-// Assert.assertEquals("Error in setVariableOnPage() method", numberOfLines, ceciSpy.setVariableOnPage(chunks, start, numberOfLines));
-//
-// numberOfLines = 2;
-// Assert.assertEquals("Error in setVariableOnPage() method", numberOfLines, ceciSpy.setVariableOnPage(chunks, start, numberOfLines));
-//
-// chunks = new String[] {String.format("%-65s", "X"), TEXT_VARIABLE_VALUE};
-// Assert.assertEquals("Error in setVariableOnPage() method", numberOfLines, ceciSpy.setVariableOnPage(chunks, start, numberOfLines));
-// }
-//
-// @Test
-// public void testSetVariableOnPageException() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.type(Mockito.any())).thenThrow(new FieldNotFoundException());
-// String expectedMessage = "Unable enter variable data";
-//
-// String[] chunks = new String[] {TEXT_VARIABLE_VALUE, TEXT_VARIABLE_VALUE};
-// int start = 0;
-// int numberOfLines = 1;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariableOnPage(chunks, start, numberOfLines);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariableHex() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy, "setVariableHexOnPage", Mockito.any(), Mockito.anyInt(), Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "X")).thenReturn(String.format("%-10s", " "));
-// Assert.assertEquals("Error in setVariableHex() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray()));
-//
-// Assert.assertEquals("Error in setVariableHex() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariableHex(TEXT_VARIABLE_NAME + "X", TEXT_VARIABLE_VALUE.toCharArray()));
-//
-// int length = 21;
-// char[] value = new String(new char[length]).replace("\0", "X").toCharArray();
-// Mockito.when(ceciSpy.setVariableHexOnPage(Mockito.any(), Mockito.anyInt(), Mockito.anyInt())).thenReturn(20).thenReturn(21);
-// Assert.assertEquals("Error in setVariableHex() method", length, ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, value));
-// }
-//
-// @Test
-// public void testSetVariableHexException1() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn("PF").when(ceciTerminalMock, "retrieveFieldAtCursor");
-// String expectedMessage = "No space on CECI variable screen for new variables";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariableHexException2() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock, "retrieveFieldAtCursor");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to set CECI binary variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariableHexException3() throws Exception {
-// setupTestVariable();
-// PowerMockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock, "retrieveFieldAtCursor");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to set CECI binary variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testSetVariableHexOnPage() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-//
-// char[] value = TEXT_VARIABLE_VALUE.toCharArray();
-// int start = 0;
-// int numberOfLines = 1;
-// Assert.assertEquals("Error in setVariableHexOnPage() method", value.length, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
-//
-// value = new String(new char[32]).replace("\0", "X").toCharArray();
-// numberOfLines = 2;
-// Assert.assertEquals("Error in setVariableHexOnPage() method", value.length, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
-//
-// numberOfLines = -1;
-// Assert.assertEquals("Error in setVariableHexOnPage() method", 0, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
-//
-// value = new char[0];
-// numberOfLines = -1;
-// Assert.assertEquals("Error in setVariableHexOnPage() method", value.length, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
-// }
-//
-// @Test
-// public void testSetVariableHexOnPageException() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.type(Mockito.any())).thenThrow(new FieldNotFoundException());
-// String expectedMessage = "Unable enter variable data";
-//
-// char[] value = TEXT_VARIABLE_VALUE.toCharArray();
-// int start = 0;
-// int numberOfLines = 1;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.setVariableHexOnPage(value, start, numberOfLines);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariable() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length()));
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE).when(ceciSpy, "getVariableFromPage", Mockito.anyInt(), Mockito.anyInt());
-//
-// Assert.assertEquals("Error in getVariable() method", TEXT_VARIABLE_VALUE, ceciSpy.getVariable(TEXT_VARIABLE_NAME, null));
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length()*2));
-// Assert.assertEquals("Error in getVariable() method", TEXT_VARIABLE_VALUE + TEXT_VARIABLE_VALUE, ceciSpy.getVariable(TEXT_VARIABLE_NAME, null));
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("H");
-// String value = String.format("%012d", 0);
-// PowerMockito.doReturn(value).when(ceciSpy, "getVariableFromPage", Mockito.anyInt(), Mockito.anyInt());
-// Assert.assertEquals("Error in getVariable() method", value, ceciSpy.getVariable(TEXT_VARIABLE_NAME, "H"));
-// }
-//
-// @Test
-// public void testGetVariableException1() throws Exception {
-// setupTestGetVariable();
-// String lengthString = "XXXX";
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(lengthString);
-// String expectedMessage = "Unexpected variable type \"" + lengthString + "\" for \"" + TEXT_VARIABLE_NAME + "\"";
-// String type = "H";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariable(TEXT_VARIABLE_NAME, type);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariableException2() throws Exception {
-// setupTestGetVariable();
-// String lengthString = "XXXX";
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(lengthString);
-// String expectedMessage = "Unable to determine variable field length";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariable(TEXT_VARIABLE_NAME, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariableException3() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to get CECI variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariable(TEXT_VARIABLE_NAME, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariableException4() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to get CECI variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariable(TEXT_VARIABLE_NAME, null);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// private void setupTestGetVariable() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "moveToVariable", Mockito.any());
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// }
-//
-// @Test
-// public void getVariableFromPage() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(TEXT_VARIABLE_VALUE);
-//
-// Assert.assertEquals("Error in getVariableFromPage() method", TEXT_VARIABLE_VALUE, ceciSpy.getVariableFromPage(TEXT_VARIABLE_VALUE.length(), 1));
-//
-// Assert.assertEquals("Error in getVariableFromPage() method", TEXT_VARIABLE_VALUE, ceciSpy.getVariableFromPage(TEXT_VARIABLE_VALUE.length()*2, 1));
-//
-// }
-//
-// @Test
-// public void getVariableFromPageException1() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(TEXT_VARIABLE_VALUE);
-// Mockito.when(ceciTerminalMock.tab()).thenThrow(new FieldNotFoundException());
-// String expectedMessage = "Unable to get variable from page";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariableFromPage(1, 1);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-//
-// }
-//
-// @Test
-// public void testGetVariableHex() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length())).thenReturn(TEXT_VARIABLE_VALUE);
-// PowerMockito.doReturn(TEXT_VARIABLE_VALUE).when(ceciSpy, "getVariableHexFromPage", Mockito.anyInt(), Mockito.anyInt());
-//
-// Assert.assertTrue("Error in getVariableHex() method", Arrays.equals(TEXT_VARIABLE_VALUE.toCharArray(), ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE)));
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length()*2)).thenReturn(TEXT_VARIABLE_VALUE);
-// Assert.assertTrue("Error in getVariableHex() method", Arrays.equals((TEXT_VARIABLE_VALUE + TEXT_VARIABLE_VALUE).toCharArray(), ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE)));
-// }
-//
-// @Test
-// public void testGetVariableHexException1() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("XXXX");
-// String expectedMessage = "Unable to determine variable field length";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariableHexException2() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to get CECI binary variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariableHexException3() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to get CECI binary variable";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetVariableHexPage() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("5A5A5A5A");
-//
-// Assert.assertEquals("Error in getVariableHexFromPage() method", "ZZZZ", ceciSpy.getVariableHexFromPage(4, 1));
-//
-// Assert.assertEquals("Error in getVariableHexFromPage() method", "ZZZZZZZZZZZZZZZZ", ceciSpy.getVariableHexFromPage(20, 1));
-// }
-//
-// @Test
-// public void testGetVariableHexPageException1() throws Exception {
-// setupTestGetVariable();
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("5A5A5A5A");
-// Mockito.when(ceciTerminalMock.tab()).thenThrow(new FieldNotFoundException());
-// String expectedMessage = "Unable to get binary variable from page";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getVariableHexFromPage(4, 1);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testMoveToVariable() throws Exception {
-// setupMoveToVariable();
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(TEXT_VARIABLE_NAME + " ");
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "X")).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
-//
-// Assert.assertEquals("Error in moveToVariable() method", ceciTerminalMock, ceciSpy.moveToVariable(TEXT_VARIABLE_NAME));
-// }
-//
-// @Test
-// public void testMoveToVariableException1() throws Exception {
-// setupMoveToVariable();
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" ");
-// String expectedMessage = "Unable to find variable " + TEXT_VARIABLE_NAME;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.moveToVariable(TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testMoveToVariableException2() throws Exception {
-// setupMoveToVariable();
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(TEXT_VARIABLE_NAME + " ");
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("PF");
-// String expectedMessage = "Unable to find variable " + TEXT_VARIABLE_NAME;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.moveToVariable(TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testMoveToVariableException3() throws Exception {
-// setupMoveToVariable();
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(TEXT_VARIABLE_NAME + " ");
-// Mockito.when(ceciTerminalMock.newLine()).thenThrow(new FieldNotFoundException());
-// String expectedMessage = "Problem serching for variable " + TEXT_VARIABLE_NAME;
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.moveToVariable(TEXT_VARIABLE_NAME);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// private void setupMoveToVariable() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "hexOff");
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "variableScreen");
-// }
-//
-// @Test
-// public void testIsHexOn() throws CeciException {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" EIBTIME = X'00");
-//
-// Assert.assertTrue("Error in isHexOn() method", ceciSpy.isHexOn());
-// }
-//
-// @Test
-// public void testIsHexOnException1() throws CeciException, TimeoutException, KeyboardLockedException, TerminalInterruptedException {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" EIBTIME = X'00");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to determine if CECI is in HEX mode";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.isHexOn();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testIsHexOnException2() throws CeciException, TimeoutException, KeyboardLockedException, TerminalInterruptedException {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" EIBTIME = X'00");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to determine if CECI is in HEX mode";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.isHexOn();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testHexOn() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(true).when(ceciSpy, "isHexOn");
-//
-// Assert.assertEquals("Error in hexOn() method", ceciTerminalMock, ceciSpy.hexOn());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isHexOn");
-// Assert.assertEquals("Error in hexOn() method", ceciTerminalMock, ceciSpy.hexOn());
-// }
-//
-// @Test
-// public void testHexOnException1() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(false).when(ceciSpy, "isHexOn");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to set CECI HEX ON";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.hexOn();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testHexOnException2() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(false).when(ceciSpy, "isHexOn");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to set CECI HEX ON";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.hexOn();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testHexOff() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(true).when(ceciSpy, "isHexOn");
-//
-// Assert.assertEquals("Error in hexOff() method", ceciTerminalMock, ceciSpy.hexOff());
-//
-// PowerMockito.doReturn(false).when(ceciSpy, "isHexOn");
-// Assert.assertEquals("Error in hexOff() method", ceciTerminalMock, ceciSpy.hexOff());
-// }
-//
-// @Test
-// public void testHexOffException1() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(true).when(ceciSpy, "isHexOn");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to set CECI HEX OFF";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.hexOff();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testHexOffException2() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(true).when(ceciSpy, "isHexOn");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to set CECI HEX OFF";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.hexOff();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testNewCeciResponse() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" RESPONSE: FILENOTFOUND EIBRESP=+0000000012 EIBRESP2=+0000000001 ");
-// PowerMockito.doReturn(new LinkedHashMap<>()).when(ceciSpy, "parseResponseOutput");
-//
-// ICeciResponse ceciResponse = ceciSpy.newCeciResponse(false);
-//
-// ceciSpy.newCeciResponse(true);
-// Assert.assertEquals("Error in newCeciResponse() method", "FILENOTFOUND", ceciResponse.getResponse());
-// Assert.assertEquals("Error in newCeciResponse() method", 12, ceciResponse.getEIBRESP());
-// Assert.assertEquals("Error in newCeciResponse() method", 1, ceciResponse.getEIBRESP2());
-// }
-//
-// @Test
-// public void testParseResponseOutput() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION1").thenReturn("OPTION2");
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("OPTION= OPTION1 LENGTH= +00008 ").thenReturn("OPTION= OPTION2 LENGTH= +00008 ");
-// PowerMockito.doReturn(new ResponseOutputValueImpl("XXXXXXXX")).when(ceciSpy, "getOptionValue", Mockito.any());
-//
-// Assert.assertTrue("Error in parseResponseOutput() method", ceciSpy.parseResponseOutput().containsKey("OPTION1"));
-//
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION3").thenReturn("OPTION4").thenReturn("PF");
-// Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("OPTION= OPTION3 LENGTH= +00008 ").thenReturn("OPTION= OPTION4 LENGTH= +00008 ");
-// Assert.assertTrue("Error in parseResponseOutput() method", ceciSpy.parseResponseOutput().containsKey("OPTION4"));
-// }
-//
-// @Test
-// public void testParseResponseOutputException1() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION1");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to parse command output";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.parseResponseOutput();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testParseResponseOutputException2() throws Exception {
-// Whitebox.setInternalState(ceciSpy, "terminal", ceciTerminalMock);
-// PowerMockito.doReturn(ceciTerminalMock).when(ceciSpy, "multipleTab", Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION1");
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to parse command output";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.parseResponseOutput();
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetOptionValue() throws Exception {
-// setupTestGetVariable();
-// String value = "000000";
-// PowerMockito.doReturn(value).when(ceciSpy, "getVariableFromPage", Mockito.anyInt(), Mockito.anyInt());
-// String screen = "OPTION= LENGTH LENGTH= H ";
-//
-// Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValue(screen).getTextValue());
-//
-// PowerMockito.doReturn("000").when(ceciSpy, "getVariableFromPage", Mockito.anyInt(), Mockito.anyInt());
-// Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValue(screen).getTextValue());
-//
-// screen = "OPTION= FROM LENGTH= +00001 ";
-// PowerMockito.doReturn("F1").when(ceciSpy, "getOptionValueInHex", Mockito.anyInt(), Mockito.anyInt());
-// Assert.assertTrue("Error in getOptionValue() method", Arrays.equals(new char[] {'F', '1'}, ceciSpy.getOptionValue(screen).getHexValue()));
-// }
-//
-// @Test
-// public void testGetOptionValueException1() throws Exception {
-// setupTestGetVariable();
-// PowerMockito.doReturn("000").when(ceciSpy, "getVariableFromPage", Mockito.anyInt(), Mockito.anyInt());
-// String screen = "OPTION= LENGTH LENGTH= H ";
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to parse command output option value";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getOptionValue(screen);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetOptionValueException2() throws Exception {
-// setupTestGetVariable();
-// PowerMockito.doReturn("000").when(ceciSpy, "getVariableFromPage", Mockito.anyInt(), Mockito.anyInt());
-// String screen = "OPTION= LENGTH LENGTH= H ";
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to parse command output option value";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getOptionValue(screen);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetOptionValueInHex() throws Exception {
-// setupTestGetVariable();
-// String value = "F1F1";
-// PowerMockito.doReturn(value).when(ceciSpy, "getVariableHexFromPage", Mockito.anyInt(), Mockito.anyInt());
-//
-// Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValueInHex(1, 0));
-//
-// Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValueInHex(1, 1));
-//
-// Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValueInHex(2, 0));
-//
-// Assert.assertEquals("Error in getOptionValue() method", value + value, ceciSpy.getOptionValueInHex(5, 0));
-// }
-//
-// @Test
-// public void testGetOptionValueInHexException1() throws Exception {
-// setupTestGetVariable();
-// PowerMockito.doReturn("F1").when(ceciSpy, "getVariableHexFromPage", Mockito.anyInt(), Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
-// String expectedMessage = "Unable to parse command output binary option value";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getOptionValueInHex(1, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
-//
-// @Test
-// public void testGetOptionValueInHexException2() throws Exception {
-// setupTestGetVariable();
-// PowerMockito.doReturn("F1").when(ceciSpy, "getVariableHexFromPage", Mockito.anyInt(), Mockito.anyInt());
-// Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
-// String expectedMessage = "Unable to parse command output binary option value";
-// CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
-// ceciSpy.getOptionValueInHex(1, 0);
-// });
-// Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
-// }
+ private CeciImpl ceci;
+
+ private CeciImpl ceciSpy;
+
+ // Static fields in CeciImpl
+ private static final String INITIAL_SCREEN_ID = "STATUS: ENTER ONE OF THE FOLLOWING";
+ private static final String VAR_SCREEN_ID = "VARIABLES LENGTH DATA";
+ private static final String COMMAND_EXECUTION_COMPLETE = "STATUS: COMMAND EXECUTION COMPLETE";
+ private static final String MESSAGE_DFHAC2206 = "DFHAC2206";
+ private static final String NO_SYNTAX_MESSAGES = "THERE ARE NO MESSAGES";
+ private static final String WRONG_CICS_REGION = "Provided terminal does not belong to the correct CICS TS Region";
+
+ private static final String COMMAND_VALUE = "COMMAND";
+ private static final String TEXT_VARIABLE_NAME = "&VARIABLE";
+ private static final String TEXT_VARIABLE_VALUE = "VARIABLE";
+ private static final String PROGRAM_NAME = "MYPROG";
+ private static final String CHANNEL_NAME = "CHANNEL";
+ private static final String CONTAINER_NAME = "CONTAINER";
+ private static final String SPACES = " ";
+
+ @Mock
+ private ICicsTerminal ceciTerminalMock;
+
+ @Mock
+ private ICicsTerminal wrongCeciTerminalMock;
+
+ @Mock
+ private ICicsRegion cicsRegionMock;
+
+ @Mock
+ private ICicsRegion wrongCicsRegionMock;
+
+ @Mock
+ private ICeciResponse ceciResponseMock;
+
+ @Before
+ public void setup() throws FieldNotFoundException, KeyboardLockedException, NetworkException, TerminalInterruptedException, TimeoutException {
+ ceci = new CeciImpl(null, cicsRegionMock);
+ ceciSpy = Mockito.spy(ceci);
+
+ // Mock all terminal function
+ Mockito.when(ceciTerminalMock.type(Mockito.any())).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.enter()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf2()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf3()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf4()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf5()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf9()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf10()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.pf11()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.tab()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.home()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.newLine()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.eraseEof()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.reportScreenWithCursor()).thenReturn(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.getCicsRegion()).thenReturn(cicsRegionMock);
+ Mockito.when(wrongCeciTerminalMock.getCicsRegion()).thenReturn(wrongCicsRegionMock);
+ }
+
+ @Test
+ public void teststartCECISession() throws Exception {
+ setupTestIssueCommand();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(INITIAL_SCREEN_ID);
+ Mockito.when(ceciTerminalMock.isClearScreen()).thenReturn(true);
+ ceciSpy.startCECISession(ceciTerminalMock);
+
+ Mockito.when(ceciTerminalMock.isClearScreen()).thenReturn(false);
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("NOT_INITIAL_SCREEN_ID");
+ String expectedMessage = "Not on CECI initial screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.startCECISession(ceciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+
+ Mockito.when(ceciTerminalMock.resetAndClear()).thenThrow(new CicstsManagerException());
+ expectedMessage = "Problem starting CECI session";
+ expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.startCECISession(ceciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+
+ expectedMessage = WRONG_CICS_REGION;
+ expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.startCECISession(wrongCeciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testIssueCommand() throws Exception {
+ setupTestIssueCommand();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(COMMAND_EXECUTION_COMPLETE);
+ Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE));
+
+ Mockito.doReturn(COMMAND_VALUE).when(ceciSpy).retrieveVariableText(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("USER SCREEN").thenReturn("USER SCREEN").thenReturn(COMMAND_EXECUTION_COMPLETE);
+ Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE));
+
+ Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE, null));
+
+ HashMap options = new HashMap<>();
+ Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE, options));
+
+ options.put("KEY1", null);
+ options.put("KEY2", "");
+ options.put("KEY3", "VALUE");
+ Assert.assertEquals("Error in issueCommand() method", ceciResponseMock, ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE, options));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.issueCommand(wrongCeciTerminalMock, COMMAND_VALUE, true);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testIssueCommandException1() throws Exception {
+ setupTestIssueCommand();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(MESSAGE_DFHAC2206);
+ String expectedMessage = "Command abended - see previous screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testIssueCommandException2() throws Exception {
+ setupTestIssueCommand();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("USER SCREEN").thenReturn("USER SCREEN").thenReturn("USER SCREEN");
+ String expectedMessage = "Command failed - see previous screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+
+ }
+
+ @Test
+ public void testIssueCommandException3() throws Exception {
+ setupTestIssueCommand();
+
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Error issuing CECI command";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+
+ }
+
+ @Test
+ public void testIssueCommandException4() throws Exception {
+ setupTestIssueCommand();
+
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Error issuing CECI command";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.issueCommand(ceciTerminalMock, COMMAND_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+
+ }
+
+ private void setupTestIssueCommand() throws Exception {
+ Mockito.doReturn(0).when(ceciSpy).defineVariableText(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).initialScreen();
+ Mockito.doNothing().when(ceciSpy).checkForSyntaxMessages();
+ Mockito.doReturn(ceciResponseMock).when(ceciSpy).newCeciResponse(Mockito.anyBoolean());
+ }
+
+ @Test
+ public void testDefineVariableText() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariableText() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.defineVariableText(ceciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariableText(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDefineVariableBinary() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy).setVariableHex(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariableBinary() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.defineVariableBinary(ceciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray()));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariableBinary(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDefineVariableDoubleWord() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(99).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariableDoubleWord() method", 99, ceciSpy.defineVariableDoubleWord(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariableDoubleWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDefineVariableFullWord() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(99).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariableFullWord() method", 99, ceciSpy.defineVariableFullWord(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariableFullWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDefineVariableHalfWord() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(99).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariableHalfWord() method", 99, ceciSpy.defineVariableHalfWord(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariableHalfWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDefineVariable4BytePacked() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(99).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariablePacked() method", 99, ceciSpy.defineVariable4BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariable4BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDefineVariable8BytePacked() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(99).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in defineVariablePacked() method", 99, ceciSpy.defineVariable8BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME, 0));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.defineVariable8BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariableText() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(TEXT_VARIABLE_VALUE).when(ceciSpy).getVariable(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in retrieveVariableText() method", TEXT_VARIABLE_VALUE, ceciSpy.retrieveVariableText(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariableText(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariableBinary() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn(TEXT_VARIABLE_VALUE.toCharArray()).when(ceciSpy).getVariableHex(Mockito.any());
+ Assert.assertTrue("Error in retrieveVariableBinary() method", Arrays.equals(TEXT_VARIABLE_VALUE.toCharArray(), ceciSpy.retrieveVariableBinary(ceciTerminalMock, TEXT_VARIABLE_NAME)));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariableBinary(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariableDoubleWord() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn("99").when(ceciSpy).getVariable(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in retrieveVariableDoubleWord() method", 99L, ceciSpy.retrieveVariableDoubleWord(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariableDoubleWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariableFullWord() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn("99").when(ceciSpy).getVariable(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in retrieveVariableFullWord() method", 99, ceciSpy.retrieveVariableFullWord(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariableFullWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariableHalfWord() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn("99").when(ceciSpy).getVariable(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in retrieveVariableHalfWord() method", 99, ceciSpy.retrieveVariableHalfWord(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariableHalfWord(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariable4BytePacked() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn("99").when(ceciSpy).getVariable(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in retrieveVariablePacked() method", 99, ceciSpy.retrieveVariable4BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariable4BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testRetrieveVariable8BytePacked() throws Exception {
+ Mockito.doReturn(TEXT_VARIABLE_NAME).when(ceciSpy).validateVariable(Mockito.any(),Mockito.any(),Mockito.any());
+ Mockito.doReturn("99").when(ceciSpy).getVariable(Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in retrieveVariablePacked() method", 99, ceciSpy.retrieveVariable8BytePacked(ceciTerminalMock, TEXT_VARIABLE_NAME));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.retrieveVariable8BytePacked(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteVariable() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(SPACES);
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ Mockito.verify(ceciTerminalMock,Mockito.times(1)).retrieveScreen();
+
+ Mockito.clearInvocations(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE))
+ .thenReturn(SPACES);
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ Mockito.verify(ceciTerminalMock,Mockito.times(2)).retrieveScreen();
+
+ Mockito.clearInvocations(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE))
+ .thenReturn(SPACES);
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "XXXX"))
+ .thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ Mockito.verify(ceciTerminalMock,Mockito.times(2)).retrieveScreen();
+
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME.substring(1));
+ Mockito.verify(ceciTerminalMock,Mockito.times(3)).retrieveScreen();
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteVariable(wrongCeciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteVariableException1() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "XXXX"))
+ .thenReturn("PF");
+ String expectedMessage = "Unable to find variable to delete";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteVariableException2() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "XXXX"))
+ .thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
+ String expectedMessage = "Delete variable failed";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteVariableException3() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to delete variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteVariableException4() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(String.format(" %-10s %+06d %s", TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.length(), TEXT_VARIABLE_VALUE));
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to delete variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteVariable(ceciTerminalMock, TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteAllVariables() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("");
+ ceciSpy.deleteAllVariables(ceciTerminalMock);
+ Mockito.verify(ceciTerminalMock,Mockito.times(55)).tab();
+
+ Mockito.clearInvocations(ceciTerminalMock);
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("PF");
+ ceciSpy.deleteAllVariables(ceciTerminalMock);
+ Mockito.verify(ceciTerminalMock,Mockito.times(1)).tab();
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteAllVariables(wrongCeciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteAllVariablesException1() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("");
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to delete all variables";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteAllVariables(ceciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testDeleteAllVariablesException2() throws Exception {
+ setupTestDeleteVariable();
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("");
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to delete all variables";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.deleteAllVariables(ceciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ private void setupTestDeleteVariable() throws Exception {
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).hexOff();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).variableScreen();
+ }
+
+ @Test
+ public void testGetEIB() throws Exception {
+ setupTestGetEIB();
+ Assert.assertTrue("Error in getEIB() method", ceciSpy.getEIB(ceciTerminalMock) instanceof CeciExecInterfaceBlockImpl);
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getEIB(wrongCeciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetEIBException1() throws Exception {
+ setupTestGetEIB();
+
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to navigate to EIB screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getEIB(ceciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetEIBException2() throws Exception {
+ setupTestGetEIB();
+
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to navigate to EIB screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getEIB(ceciTerminalMock);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ private void setupTestGetEIB() throws Exception {
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).hexOff();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).hexOn();
+ }
+
+ @Test
+ public void testLinkProgram() throws Exception {
+ Mockito.doReturn(ceciResponseMock).when(ceciSpy).issueCommand(Mockito.any(),Mockito.any());
+
+ Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, null, null, null, false));
+
+ Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, TEXT_VARIABLE_NAME, "SYSID", null, false));
+
+ Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, TEXT_VARIABLE_NAME, null, "TRAN", false));
+
+ Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, TEXT_VARIABLE_NAME, null, null, true));
+
+ Mockito.doReturn(0).when(ceciSpy).defineVariableText(Mockito.any(),Mockito.any(),Mockito.any());
+ Assert.assertEquals("Error in linkProgram() method", ceciResponseMock, ceciSpy.linkProgram(ceciTerminalMock, PROGRAM_NAME, "COMMAREA", null, null, false));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.linkProgram(wrongCeciTerminalMock, PROGRAM_NAME, null, null, null, false);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testLinkProgramWithChannel() throws Exception {
+ Mockito.doReturn(ceciResponseMock).when(ceciSpy).issueCommand(Mockito.any(),Mockito.any());
+
+ Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, null, null, null, false));
+
+ Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, CHANNEL_NAME, "SYSID", null, false));
+
+ Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, CHANNEL_NAME, null, "TRAN", false));
+
+ Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, CHANNEL_NAME, null, null, true));
+
+ Assert.assertEquals("Error in linkProgramWithChannel() method", ceciResponseMock, ceciSpy.linkProgramWithChannel(ceciTerminalMock, PROGRAM_NAME, "CHANNEL_NAME", null, null, false));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.linkProgramWithChannel(wrongCeciTerminalMock, PROGRAM_NAME, null, null, null, false);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testPutContainer() throws Exception {
+ Mockito.doReturn(ceciResponseMock).when(ceciSpy).issueCommand(Mockito.any(),Mockito.any());
+ Mockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy).setVariable(Mockito.any(),Mockito.any(),Mockito.any());
+
+ Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_VALUE, null, null, null));
+
+ Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null, null));
+
+ Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, "CHAR", null, null));
+
+ Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, "CCID", null));
+
+ Assert.assertEquals("Error in putContainer() method", ceciResponseMock, ceciSpy.putContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null, "CODEPAGE"));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.putContainer(wrongCeciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_VALUE, null, null, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetContainer() throws Exception {
+ Mockito.doReturn(ceciResponseMock).when(ceciSpy).issueCommand(Mockito.any(),Mockito.any());
+
+ Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null));
+ Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, "CCID", null));
+ Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, "CODEPAGE"));
+ Assert.assertEquals("Error in getContainer() method", ceciResponseMock, ceciSpy.getContainer(ceciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME.substring(1), null, null));
+
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getContainer(wrongCeciTerminalMock, CHANNEL_NAME, CONTAINER_NAME, TEXT_VARIABLE_NAME, null, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", WRONG_CICS_REGION, expectedException.getMessage());
+ }
+
+ @Test
+ public void testInitialScreen() throws Exception {
+ setupTestInitialScreen();
+
+ Mockito.doReturn(true).when(ceciSpy).isCeciScreen();
+ Mockito.doReturn(false).when(ceciSpy).isHelpScreen(Mockito.any());
+ Assert.assertEquals("Error in initialScreen() method", ceciTerminalMock, ceciSpy.initialScreen());
+
+ Mockito.doReturn(true).when(ceciSpy).isHelpScreen(Mockito.any());
+ Assert.assertEquals("Error in initialScreen() method", ceciTerminalMock, ceciSpy.initialScreen());
+
+ Mockito.when(ceciSpy.isCeciScreen()).thenReturn(false).thenReturn(true);
+ Assert.assertEquals("Error in initialScreen() method", ceciTerminalMock, ceciSpy.initialScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isInitialScreen(Mockito.any());
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.initialScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", "Unable to navigate to CECI initial screen", expectedException.getMessage());
+ }
+
+ @Test
+ public void testInitialScreenException1() throws Exception {
+ setupTestInitialScreen();
+
+ Mockito.doReturn(false).when(ceciSpy).isCeciScreen();
+ String expectedMessage = "Cannot identify terminal as CECI session";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.initialScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testInitialScreenException2() throws Exception {
+ setupTestInitialScreen();
+
+ Mockito.doReturn(false).when(ceciSpy).isCeciScreen();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to navigate to CECI initial screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.initialScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testInitialScreenException3() throws Exception {
+ setupTestInitialScreen();
+
+ Mockito.doReturn(false).when(ceciSpy).isCeciScreen();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to navigate to CECI initial screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.initialScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ private void setupTestInitialScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(INITIAL_SCREEN_ID);
+ }
+
+ @Test
+ public void testVariableScreen() throws Exception {
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).initialScreen();
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("").thenReturn(VAR_SCREEN_ID);
+ Assert.assertEquals("Error in variableScreen() method", ceciTerminalMock, ceciSpy.variableScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isVariablesScreen(Mockito.any());
+ String expectedMessage = "Unable to navigate to CECI variables screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.variableScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage , expectedException.getMessage());
+ }
+
+ @Test
+ public void testVariableScreenException1() throws Exception {
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).initialScreen();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to navigate to CECI variables screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.variableScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testVariableScreenException2() throws Exception {
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).initialScreen();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to navigate to CECI variables screen";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.variableScreen();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testisCeciScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(true).when(ceciSpy).isInitialScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isHelpScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isCommandBeforeScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isCommandAfterScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isEibScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isVariablesScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isVariablesExpansionScreen(Mockito.any());
+ Mockito.doReturn(true).when(ceciSpy).isMsgScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isInitialScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isHelpScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isCommandBeforeScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isCommandAfterScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isEibScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isVariablesScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isVariablesExpansionScreen(Mockito.any());
+ Assert.assertTrue("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+
+ Mockito.doReturn(false).when(ceciSpy).isMsgScreen(Mockito.any());
+ Assert.assertFalse("Error in isCeciScreen() method", ceciSpy.isCeciScreen());
+ }
+
+ @Test
+ public void testIsInitialScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isInitialScreen() method", ceciSpy.isInitialScreen(SPACES));
+ }
+
+ @Test
+ public void testIsCommandBeforeScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isCommandBeforeScreen() method", ceciSpy.isCommandBeforeScreen(SPACES));
+ }
+
+ @Test
+ public void testIsCommandAfterScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isCommandAfterScreen() method", ceciSpy.isCommandAfterScreen(SPACES));
+ }
+
+ @Test
+ public void testIsHelpScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isHelpScreen() method", ceciSpy.isHelpScreen(SPACES));
+ }
+
+ @Test
+ public void testIsEibScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isEibScreen() method", ceciSpy.isEibScreen(SPACES));
+ }
+
+ @Test
+ public void testIsVariablesScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isVariablesScreen() method", ceciSpy.isVariablesScreen(SPACES));
+ }
+
+ @Test
+ public void testIsMsgScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isMsgScreen() method", ceciSpy.isMsgScreen(SPACES));
+ }
+
+ @Test
+ public void testIsVariablesExpansionScreen() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertFalse("Error in isVariablesExpansionScreen() method", ceciSpy.isVariablesExpansionScreen(SPACES));
+ }
+
+ @Test
+ public void testMultipleTab() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Assert.assertEquals("Error in multipleTab() method", ceciTerminalMock, ceciSpy.multipleTab(1));
+ }
+
+ @Test
+ public void testCheckForSyntaxMessages() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(NO_SYNTAX_MESSAGES);
+
+ ceciSpy.checkForSyntaxMessages();
+ Mockito.verify(ceciTerminalMock,Mockito.times(1)).enter();
+ }
+
+ @Test
+ public void testCheckForSyntaxMessagesException1() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Field f1 = ceciSpy.getClass().getSuperclass().getDeclaredField("command");
+ f1.setAccessible(true);
+ f1.set(ceciSpy,COMMAND_VALUE);
+
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(SPACES);
+ String expectedMessage = "Command failed syntax check. \nCommand:\n " + COMMAND_VALUE + "\nSyntax Error Screen:\n" + SPACES;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.checkForSyntaxMessages();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testCheckForSyntaxMessagesException2() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to check for syntax messages";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.checkForSyntaxMessages();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testCheckForSyntaxMessagesException3() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to check for syntax messages";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.checkForSyntaxMessages();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testValidateVariable() throws Exception {
+ Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray(), null));
+ Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME.substring(1), TEXT_VARIABLE_VALUE.toCharArray(), Integer.toString(TEXT_VARIABLE_VALUE.length())));
+ Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray(), null));
+ Assert.assertEquals("Error in validateVariable() method", TEXT_VARIABLE_NAME, ceciSpy.validateVariable(TEXT_VARIABLE_NAME, null, null));
+
+ String name = "&234567890";
+ Assert.assertEquals("Error in validateVariable() method", name, ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null));
+
+ name = "&azAZ09@#";
+ Assert.assertEquals("Error in validateVariable() method", name, ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null));
+ }
+
+ @Test
+ public void testValidateVariableException1() throws Exception {
+ String name = "&2345678901";
+ String expectedMessage = "CECI variable name \"" + name + "\" greater than maximum length of 10 characters including the leading \"&\"";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testValidateVariableException2() throws Exception {
+ String name = "&?";
+ String expectedMessage = "CECI variable name \"" + name + "\" invalid must. Must start with \"&\" and can contain one of more [a-zA-Z0-9@#]";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.validateVariable(name, TEXT_VARIABLE_VALUE.toCharArray(), null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testValidateVariableException3() throws Exception {
+ String value = "123456789";
+ String type = "H";
+ int maxLength = 6;
+ String expectedMessage = "CECI variable value length " + value.length() + " greater than maximum of " + maxLength + " for type \"" + type + "\"" ;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.validateVariable(TEXT_VARIABLE_NAME, value.toCharArray(), type);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testValidateVariableException4() throws Exception {
+ String value = new String(new char[32768]).replace("\0", "X");
+ String expectedMessage = "CECI variable value length " + value.length() + " greater than maximum 32767";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.validateVariable(TEXT_VARIABLE_NAME, value.toCharArray(), null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariable() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn(TEXT_VARIABLE_VALUE.length()).when(ceciSpy).setVariableOnPage(Mockito.any(),Mockito.anyInt(),Mockito.anyInt());
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "X")).thenReturn(String.format("%-10s", " "));
+ Assert.assertEquals("Error in setVariable() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null));
+
+ Assert.assertEquals("Error in setVariable() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariable(TEXT_VARIABLE_NAME + "X", TEXT_VARIABLE_VALUE, null));
+
+ Assert.assertEquals("Error in setVariable() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, "H"));
+
+ int length = 1281;
+ Mockito.when(ceciSpy.setVariableOnPage(Mockito.any(), Mockito.anyInt(), Mockito.anyInt())).thenReturn(20).thenReturn(21);
+ Assert.assertEquals("Error in setVariable() method", length, ceciSpy.setVariable(TEXT_VARIABLE_NAME, new String(new char[length]).replace("\0", "X"), null));
+ }
+
+ @Test
+ public void testSetVariableException1() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn("PF").when(ceciTerminalMock).retrieveFieldAtCursor();
+ String expectedMessage = "No space on CECI variable screen for new variables";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariableException2() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock).retrieveFieldAtCursor();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to set CECI variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariableException3() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock).retrieveFieldAtCursor();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to set CECI variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariable(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ private void setupTestVariable() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doNothing().when(ceciSpy).deleteVariable(Mockito.any(),Mockito.any());
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).hexOff();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).variableScreen();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).moveToVariable(Mockito.any());
+ }
+
+ private void setTerminalMockOnCeciSpy() throws Exception{
+ Field f1 = ceciSpy.getClass().getSuperclass().getDeclaredField("terminal");
+ f1.setAccessible(true);
+ f1.set(ceciSpy,ceciTerminalMock);
+ }
+
+ @Test
+ public void testSetVariableOnPage() throws Exception {
+ setTerminalMockOnCeciSpy();
+
+ String[] chunks = new String[] {TEXT_VARIABLE_VALUE, TEXT_VARIABLE_VALUE};
+ int start = 0;
+ int numberOfLines = 1;
+ Assert.assertEquals("Error in setVariableOnPage() method", numberOfLines, ceciSpy.setVariableOnPage(chunks, start, numberOfLines));
+
+ numberOfLines = 2;
+ Assert.assertEquals("Error in setVariableOnPage() method", numberOfLines, ceciSpy.setVariableOnPage(chunks, start, numberOfLines));
+
+ chunks = new String[] {String.format("%-65s", "X"), TEXT_VARIABLE_VALUE};
+ Assert.assertEquals("Error in setVariableOnPage() method", numberOfLines, ceciSpy.setVariableOnPage(chunks, start, numberOfLines));
+ }
+
+ @Test
+ public void testSetVariableOnPageException() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.type(Mockito.any())).thenThrow(new FieldNotFoundException());
+ String expectedMessage = "Unable enter variable data";
+
+ String[] chunks = new String[] {TEXT_VARIABLE_VALUE, TEXT_VARIABLE_VALUE};
+ int start = 0;
+ int numberOfLines = 1;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariableOnPage(chunks, start, numberOfLines);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariableHex() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn(TEXT_VARIABLE_NAME.length()).when(ceciSpy).setVariableHexOnPage(Mockito.any(),Mockito.anyInt(),Mockito.anyInt());
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "X")).thenReturn(String.format("%-10s", " "));
+ Assert.assertEquals("Error in setVariableHex() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray()));
+
+ Assert.assertEquals("Error in setVariableHex() method", TEXT_VARIABLE_VALUE.length(), ceciSpy.setVariableHex(TEXT_VARIABLE_NAME + "X", TEXT_VARIABLE_VALUE.toCharArray()));
+
+ int length = 21;
+ char[] value = new String(new char[length]).replace("\0", "X").toCharArray();
+ Mockito.when(ceciSpy.setVariableHexOnPage(Mockito.any(), Mockito.anyInt(), Mockito.anyInt())).thenReturn(20).thenReturn(21);
+ Assert.assertEquals("Error in setVariableHex() method", length, ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, value));
+ }
+
+ @Test
+ public void testSetVariableHexException1() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn("PF").when(ceciTerminalMock).retrieveFieldAtCursor();
+ String expectedMessage = "No space on CECI variable screen for new variables";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariableHexException2() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock).retrieveFieldAtCursor();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to set CECI binary variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariableHexException3() throws Exception {
+ setupTestVariable();
+ Mockito.doReturn(String.format("%-10s", " ")).when(ceciTerminalMock).retrieveFieldAtCursor();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to set CECI binary variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariableHex(TEXT_VARIABLE_NAME, TEXT_VARIABLE_VALUE.toCharArray());
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testSetVariableHexOnPage() throws Exception {
+ setTerminalMockOnCeciSpy();
+
+ char[] value = TEXT_VARIABLE_VALUE.toCharArray();
+ int start = 0;
+ int numberOfLines = 1;
+ Assert.assertEquals("Error in setVariableHexOnPage() method", value.length, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
+
+ value = new String(new char[32]).replace("\0", "X").toCharArray();
+ numberOfLines = 2;
+ Assert.assertEquals("Error in setVariableHexOnPage() method", value.length, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
+
+ numberOfLines = -1;
+ Assert.assertEquals("Error in setVariableHexOnPage() method", 0, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
+
+ value = new char[0];
+ numberOfLines = -1;
+ Assert.assertEquals("Error in setVariableHexOnPage() method", value.length, ceciSpy.setVariableHexOnPage(value, start, numberOfLines));
+ }
+
+ @Test
+ public void testSetVariableHexOnPageException() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.type(Mockito.any())).thenThrow(new FieldNotFoundException());
+ String expectedMessage = "Unable enter variable data";
+
+ char[] value = TEXT_VARIABLE_VALUE.toCharArray();
+ int start = 0;
+ int numberOfLines = 1;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.setVariableHexOnPage(value, start, numberOfLines);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariable() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length()));
+ Mockito.doReturn(TEXT_VARIABLE_VALUE).when(ceciSpy).getVariableFromPage(Mockito.anyInt(),Mockito.anyInt());
+
+ Assert.assertEquals("Error in getVariable() method", TEXT_VARIABLE_VALUE, ceciSpy.getVariable(TEXT_VARIABLE_NAME, null));
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length()*2));
+ Assert.assertEquals("Error in getVariable() method", TEXT_VARIABLE_VALUE + TEXT_VARIABLE_VALUE, ceciSpy.getVariable(TEXT_VARIABLE_NAME, null));
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("H");
+ String value = String.format("%012d", 0);
+ Mockito.doReturn(value).when(ceciSpy).getVariableFromPage(Mockito.anyInt(),Mockito.anyInt());
+ Assert.assertEquals("Error in getVariable() method", value, ceciSpy.getVariable(TEXT_VARIABLE_NAME, "H"));
+ }
+
+ @Test
+ public void testGetVariableException1() throws Exception {
+ setupTestGetVariable();
+ String lengthString = "XXXX";
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(lengthString);
+ String expectedMessage = "Unexpected variable type \"" + lengthString + "\" for \"" + TEXT_VARIABLE_NAME + "\"";
+ String type = "H";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariable(TEXT_VARIABLE_NAME, type);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariableException2() throws Exception {
+ setupTestGetVariable();
+ String lengthString = "XXXX";
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(lengthString);
+ String expectedMessage = "Unable to determine variable field length";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariable(TEXT_VARIABLE_NAME, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariableException3() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to get CECI variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariable(TEXT_VARIABLE_NAME, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariableException4() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to get CECI variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariable(TEXT_VARIABLE_NAME, null);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ private void setupTestGetVariable() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).moveToVariable(Mockito.any());
+ }
+
+ @Test
+ public void getVariableFromPage() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(TEXT_VARIABLE_VALUE);
+
+ Assert.assertEquals("Error in getVariableFromPage() method", TEXT_VARIABLE_VALUE, ceciSpy.getVariableFromPage(TEXT_VARIABLE_VALUE.length(), 1));
+ Assert.assertEquals("Error in getVariableFromPage() method", TEXT_VARIABLE_VALUE, ceciSpy.getVariableFromPage(TEXT_VARIABLE_VALUE.length()*2, 1));
+
+ }
+
+ @Test
+ public void getVariableFromPageException1() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(TEXT_VARIABLE_VALUE);
+ Mockito.when(ceciTerminalMock.tab()).thenThrow(new FieldNotFoundException());
+ String expectedMessage = "Unable to get variable from page";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariableFromPage(1, 1);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+
+ }
+
+ @Test
+ public void testGetVariableHex() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length())).thenReturn(TEXT_VARIABLE_VALUE);
+ Mockito.doReturn(TEXT_VARIABLE_VALUE).when(ceciSpy).getVariableHexFromPage(Mockito.anyInt(),Mockito.anyInt());
+
+ Assert.assertTrue("Error in getVariableHex() method", Arrays.equals(TEXT_VARIABLE_VALUE.toCharArray(), ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE)));
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%+06d", TEXT_VARIABLE_VALUE.length()*2)).thenReturn(TEXT_VARIABLE_VALUE);
+ Assert.assertTrue("Error in getVariableHex() method", Arrays.equals((TEXT_VARIABLE_VALUE + TEXT_VARIABLE_VALUE).toCharArray(), ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE)));
+ }
+
+ @Test
+ public void testGetVariableHexException1() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("XXXX");
+ String expectedMessage = "Unable to determine variable field length";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariableHexException2() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to get CECI binary variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariableHexException3() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to get CECI binary variable";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariableHex(TEXT_VARIABLE_VALUE);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetVariableHexPage() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("5A5A5A5A");
+
+ Assert.assertEquals("Error in getVariableHexFromPage() method", "ZZZZ", ceciSpy.getVariableHexFromPage(4, 1));
+ Assert.assertEquals("Error in getVariableHexFromPage() method", "ZZZZZZZZZZZZZZZZ", ceciSpy.getVariableHexFromPage(20, 1));
+ }
+
+ @Test
+ public void testGetVariableHexPageException1() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("5A5A5A5A");
+ Mockito.when(ceciTerminalMock.tab()).thenThrow(new FieldNotFoundException());
+ String expectedMessage = "Unable to get binary variable from page";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getVariableHexFromPage(4, 1);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testMoveToVariable() throws Exception {
+ setupMoveToVariable();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(TEXT_VARIABLE_NAME + " ");
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn(String.format("%-10s", "X")).thenReturn(String.format("%-10s", TEXT_VARIABLE_NAME));
+
+ Assert.assertEquals("Error in moveToVariable() method", ceciTerminalMock, ceciSpy.moveToVariable(TEXT_VARIABLE_NAME));
+ }
+
+ @Test
+ public void testMoveToVariableException1() throws Exception {
+ setupMoveToVariable();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" ");
+ String expectedMessage = "Unable to find variable " + TEXT_VARIABLE_NAME;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.moveToVariable(TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testMoveToVariableException2() throws Exception {
+ setupMoveToVariable();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(TEXT_VARIABLE_NAME + " ");
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("PF");
+ String expectedMessage = "Unable to find variable " + TEXT_VARIABLE_NAME;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.moveToVariable(TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testMoveToVariableException3() throws Exception {
+ setupMoveToVariable();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(TEXT_VARIABLE_NAME + " ");
+ Mockito.when(ceciTerminalMock.newLine()).thenThrow(new FieldNotFoundException());
+ String expectedMessage = "Problem serching for variable " + TEXT_VARIABLE_NAME;
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.moveToVariable(TEXT_VARIABLE_NAME);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ private void setupMoveToVariable() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).hexOff();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).variableScreen();
+ }
+
+ @Test
+ public void testIsHexOn() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" EIBTIME = X'00");
+ Assert.assertTrue("Error in isHexOn() method", ceciSpy.isHexOn());
+ }
+
+ @Test
+ public void testIsHexOnException1() throws Exception, CeciException, TimeoutException, KeyboardLockedException, TerminalInterruptedException {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to determine if CECI is in HEX mode";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.isHexOn();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testIsHexOnException2() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to determine if CECI is in HEX mode";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.isHexOn();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testHexOn() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(true).when(ceciSpy).isHexOn();
+
+ Assert.assertEquals("Error in hexOn() method", ceciTerminalMock, ceciSpy.hexOn());
+
+ Mockito.doReturn(false).when(ceciSpy).isHexOn();
+ Assert.assertEquals("Error in hexOn() method", ceciTerminalMock, ceciSpy.hexOn());
+ }
+
+ @Test
+ public void testHexOnException1() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(false).when(ceciSpy).isHexOn();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to set CECI HEX ON";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.hexOn();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testHexOnException2() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(false).when(ceciSpy).isHexOn();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to set CECI HEX ON";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.hexOn();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testHexOff() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(true).when(ceciSpy).isHexOn();
+
+ Assert.assertEquals("Error in hexOff() method", ceciTerminalMock, ceciSpy.hexOff());
+
+ Mockito.doReturn(false).when(ceciSpy).isHexOn();
+ Assert.assertEquals("Error in hexOff() method", ceciTerminalMock, ceciSpy.hexOff());
+ }
+
+ @Test
+ public void testHexOffException1() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(true).when(ceciSpy).isHexOn();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to set CECI HEX OFF";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.hexOff();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testHexOffException2() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(true).when(ceciSpy).isHexOn();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to set CECI HEX OFF";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.hexOff();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testNewCeciResponse() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn(" RESPONSE: FILENOTFOUND EIBRESP=+0000000012 EIBRESP2=+0000000001 ");
+ Mockito.doReturn(new LinkedHashMap<>()).when(ceciSpy).parseResponseOutput();
+
+ ICeciResponse ceciResponse = ceciSpy.newCeciResponse(false);
+
+ ceciSpy.newCeciResponse(true);
+ Assert.assertEquals("Error in newCeciResponse() method", "FILENOTFOUND", ceciResponse.getResponse());
+ Assert.assertEquals("Error in newCeciResponse() method", 12, ceciResponse.getEIBRESP());
+ Assert.assertEquals("Error in newCeciResponse() method", 1, ceciResponse.getEIBRESP2());
+ }
+
+ @Test
+ public void testParseResponseOutput() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.doReturn(ceciTerminalMock).when(ceciSpy).multipleTab(Mockito.anyInt());
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION1").thenReturn("OPTION2");
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("OPTION= OPTION1 LENGTH= +00008 ").thenReturn("OPTION= OPTION2 LENGTH= +00008 ");
+ Mockito.doReturn(new ResponseOutputValueImpl("XXXXXXXX")).when(ceciSpy).getOptionValue(Mockito.any());
+
+ Assert.assertTrue("Error in parseResponseOutput() method", ceciSpy.parseResponseOutput().containsKey("OPTION1"));
+
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION3").thenReturn("OPTION4").thenReturn("PF");
+ Mockito.when(ceciTerminalMock.retrieveScreen()).thenReturn("OPTION= OPTION3 LENGTH= +00008 ").thenReturn("OPTION= OPTION4 LENGTH= +00008 ");
+ Assert.assertTrue("Error in parseResponseOutput() method", ceciSpy.parseResponseOutput().containsKey("OPTION4"));
+ }
+
+ @Test
+ public void testParseResponseOutputException1() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION1");
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to parse command output";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.parseResponseOutput();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testParseResponseOutputException2() throws Exception {
+ setTerminalMockOnCeciSpy();
+ Mockito.when(ceciTerminalMock.retrieveFieldAtCursor()).thenReturn("OPTION1");
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to parse command output";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.parseResponseOutput();
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetOptionValue() throws Exception {
+ setupTestGetVariable();
+ String value = "000000";
+ Mockito.doReturn(value).when(ceciSpy).getVariableFromPage(Mockito.anyInt(),Mockito.anyInt());
+ String screen = "OPTION= LENGTH LENGTH= H ";
+ Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValue(screen).getTextValue());
+
+ Mockito.doReturn("000").when(ceciSpy).getVariableFromPage(Mockito.anyInt(),Mockito.anyInt());
+ Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValue(screen).getTextValue());
+
+ screen = "OPTION= FROM LENGTH= +00001 ";
+ Mockito.doReturn("F1").when(ceciSpy).getOptionValueInHex(Mockito.anyInt(),Mockito.anyInt());
+ Assert.assertTrue("Error in getOptionValue() method", Arrays.equals(new char[] {'F', '1'}, ceciSpy.getOptionValue(screen).getHexValue()));
+ }
+
+ @Test
+ public void testGetOptionValueException1() throws Exception {
+ setupTestGetVariable();
+ Mockito.doReturn("000").when(ceciSpy).getVariableFromPage(Mockito.anyInt(),Mockito.anyInt());
+ String screen = "OPTION= LENGTH LENGTH= H ";
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to parse command output option value";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getOptionValue(screen);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetOptionValueException2() throws Exception {
+ setupTestGetVariable();
+ Mockito.doReturn("000").when(ceciSpy).getVariableFromPage(Mockito.anyInt(),Mockito.anyInt());
+ String screen = "OPTION= LENGTH LENGTH= H ";
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to parse command output option value";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getOptionValue(screen);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetOptionValueInHex() throws Exception {
+ setupTestGetVariable();
+ String value = "F1F1";
+ Mockito.doReturn(value).when(ceciSpy).getVariableHexFromPage(Mockito.anyInt(),Mockito.anyInt());
+
+ Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValueInHex(1, 0));
+
+ Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValueInHex(1, 1));
+
+ Assert.assertEquals("Error in getOptionValue() method", value, ceciSpy.getOptionValueInHex(2, 0));
+
+ Assert.assertEquals("Error in getOptionValue() method", value + value, ceciSpy.getOptionValueInHex(5, 0));
+ }
+
+ @Test
+ public void testGetOptionValueInHexException1() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TerminalInterruptedException());
+ String expectedMessage = "Unable to parse command output binary option value";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getOptionValueInHex(1, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
+
+ @Test
+ public void testGetOptionValueInHexException2() throws Exception {
+ setupTestGetVariable();
+ Mockito.when(ceciTerminalMock.waitForKeyboard()).thenThrow(new TimeoutException());
+ String expectedMessage = "Unable to parse command output binary option value";
+ CeciException expectedException = Assert.assertThrows("expected exception should be thrown", CeciException.class, ()->{
+ ceciSpy.getOptionValueInHex(1, 0);
+ });
+ Assert.assertEquals("exception should contain expected cause", expectedMessage, expectedException.getMessage());
+ }
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciManagerImpl.java
index 6ddf7f4e3..00be975ec 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciManagerImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import java.util.ArrayList;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciResponseImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciResponseImpl.java
index b943b3640..37c2d52b3 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciResponseImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestCeciResponseImpl.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import java.util.LinkedHashMap;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestResponseOutputValueImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestResponseOutputValueImpl.java
index b54f74f82..fa6af08f9 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestResponseOutputValueImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/TestResponseOutputValueImpl.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal;
import java.util.Arrays;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/properties/TestCeciPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/properties/TestCeciPropertiesSingleton.java
index cb80140b4..88d0f83cb 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/properties/TestCeciPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceci.manager/src/test/java/dev/galasa/cicsts/ceci/internal/properties/TestCeciPropertiesSingleton.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceci.internal.properties;
import org.junit.Assert;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/build.gradle
index 876e80ba1..0803187c7 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/build.gradle
@@ -11,3 +11,17 @@ dependencies {
implementation project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.ceda.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager')
}
+
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/settings.gradle
index 3d23092ff..76d2e3e9a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.ceda.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.ceda.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/src/main/java/dev/galasa/cicsts/ceda/manager/ivt/CedaManagerIVT.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/src/main/java/dev/galasa/cicsts/ceda/manager/ivt/CedaManagerIVT.java
index 5c1367724..01ecb4213 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/src/main/java/dev/galasa/cicsts/ceda/manager/ivt/CedaManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager.ivt/src/main/java/dev/galasa/cicsts/ceda/manager/ivt/CedaManagerIVT.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceda.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/build.gradle
index 37ff0f423..d1cea9b3a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/build.gradle
@@ -4,10 +4,24 @@ plugins {
description = 'Galasa CICS/TS CEDA Manager'
-version = '0.21.0'
+version = '0.29.0'
dependencies {
api project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager')
api project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.cemt.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/settings.gradle
index bc30891ba..288e41424 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.ceda.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.ceda.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaImpl.java
index 323b6f93a..3a64fb4c5 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceda.internal;
import javax.validation.constraints.NotNull;
@@ -46,11 +46,11 @@ public void createResource(@NotNull ICicsTerminal terminal, @NotNull String reso
try {
if(resourceParameters==null){
terminal.type("CEDA DEFINE " + resourceType + "(" + resourceName +
- ") GROUP(" + groupName + ") ").enter().waitForKeyboard();
+ ") GROUP(" + groupName + ") ").enter().wfk();
}else{
terminal.type("CEDA DEFINE " + resourceType + "(" + resourceName +
- ") GROUP(" + groupName + ") " + resourceParameters).enter().waitForKeyboard();
+ ") GROUP(" + groupName + ") " + resourceParameters).enter().wfk();
}
}catch(TimeoutException | KeyboardLockedException | NetworkException | TerminalInterruptedException | FieldNotFoundException e) {
throw new CedaException("Problem with starting the CEDA transaction", e);
@@ -59,7 +59,7 @@ public void createResource(@NotNull ICicsTerminal terminal, @NotNull String reso
try {
if(terminal.retrieveScreen().contains("DEFINE SUCCESSFUL")){
if(terminal.retrieveScreen().contains("MESSAGES:")) {
- terminal.pf9();
+ terminal.pf9().wfk();
}
}
}catch (Exception e) {
@@ -67,10 +67,8 @@ public void createResource(@NotNull ICicsTerminal terminal, @NotNull String reso
}
try {
- terminal.pf3();
- terminal.waitForKeyboard();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
}catch(Exception e) {
throw new CedaException("Unable to return terminal back into reset state", e);
}
@@ -92,7 +90,7 @@ public void installGroup(@NotNull ICicsTerminal terminal, @NotNull String groupN
}
try {
- terminal.type("CEDA INSTALL GROUP(" + groupName + ")").enter().waitForKeyboard();
+ terminal.type("CEDA INSTALL GROUP(" + groupName + ")").enter().wfk();
}catch(Exception e) {
throw new CedaException("Problem with starting the CEDA transaction");
@@ -100,10 +98,9 @@ public void installGroup(@NotNull ICicsTerminal terminal, @NotNull String groupN
try {
if(!terminal.retrieveScreen().contains("INSTALL SUCCESSFUL")) {
- terminal.pf9();
- terminal.pf3();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf9().wfk();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
throw new CedaException("Errors detected whilst installing group");
}
}catch(Exception e) {
@@ -111,10 +108,8 @@ public void installGroup(@NotNull ICicsTerminal terminal, @NotNull String groupN
}
try {
- terminal.pf3();
- terminal.waitForKeyboard();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
}catch(Exception e) {
throw new CedaException("Unable to return terminal back into reset state", e);
}
@@ -140,7 +135,7 @@ public void installResource(@NotNull ICicsTerminal terminal, @NotNull String res
try {
terminal.type("CEDA INSTALL " + resourceType + "(" + resourceName + ") GROUP(" +
- cedaGroup + ")").enter().waitForKeyboard();
+ cedaGroup + ")").enter().wfk();
}catch(Exception e) {
throw new CedaException("Problem with starting the CEDA transaction", e);
@@ -159,8 +154,7 @@ public void installResource(@NotNull ICicsTerminal terminal, @NotNull String res
}
if(error) {
- terminal.pf9();
- terminal.waitForKeyboard();
+ terminal.pf9().wfk();
throw new CedaException("Errors detected whilst installing group");
}
}catch(Exception e) {
@@ -171,10 +165,8 @@ public void installResource(@NotNull ICicsTerminal terminal, @NotNull String res
}
try {
- terminal.pf3();
- terminal.waitForKeyboard();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
}catch(Exception e) {
throw new CedaException("Unable to return terminal back into reset state", e);
}
@@ -196,17 +188,16 @@ public void deleteGroup(@NotNull ICicsTerminal terminal, @NotNull String groupNa
}
try {
- terminal.type("CEDA DELETE GROUP(" + groupName + ") ALL").enter().waitForKeyboard();
+ terminal.type("CEDA DELETE GROUP(" + groupName + ") ALL").enter().wfk();
}catch(Exception e) {
throw new CedaException("Problem with starting the CEDA transaction");
}
try {
if(!terminal.retrieveScreen().contains("DELETE SUCCESSFUL")) {
- terminal.pf9();
- terminal.pf3();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf9().wfk();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
throw new CedaException("Errors detected whilst discarding group");
}
@@ -215,10 +206,8 @@ public void deleteGroup(@NotNull ICicsTerminal terminal, @NotNull String groupNa
}
try {
- terminal.pf3();
- terminal.waitForKeyboard();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
}catch(Exception e) {
throw new CedaException("Unable to return terminal back into reset state", e);
}
@@ -244,30 +233,27 @@ public void deleteResource(@NotNull ICicsTerminal terminal, @NotNull String reso
try {
- terminal.waitForKeyboard();
+ terminal.wfk();
terminal.type("CEDA DELETE " + resourceType + "("
- + resourceName + ") GROUP(" + groupName + ")").enter();
- terminal.waitForKeyboard();
+ + resourceName + ") GROUP(" + groupName + ")").enter().wfk();
}catch(Exception e) {
throw new CedaException("Problem with starting the CEDA transaction", e);
}
try {
if(!terminal.retrieveScreen().contains("DELETE SUCCESSFUL")) {
- terminal.pf9()
- .pf3().clear()
- .waitForKeyboard();
+ terminal.pf9().wfk();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
throw new CedaException("Errors detected whilst discarding group");
}
}catch(Exception e) {
- throw new CedaException("Problem determinign the result from the CEDA command)", e);
+ throw new CedaException("Problem determining the result from the CEDA command)", e);
}
try {
- terminal.pf3();
- terminal.waitForKeyboard();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
}catch(Exception e) {
throw new CedaException("Unable to return terminal back into reset state", e);
}
@@ -291,9 +277,8 @@ public boolean resourceExists(@NotNull ICicsTerminal terminal, @NotNull String r
try {
- terminal.waitForKeyboard();
- terminal.type("CEDA DISPLAY " + resourceType + "(" + resourceName + ") GROUP(" + groupName + ")").enter();
- terminal.waitForKeyboard();
+ terminal.wfk();
+ terminal.type("CEDA DISPLAY " + resourceType + "(" + resourceName + ") GROUP(" + groupName + ")").enter().wfk();
} catch(Exception e) {
throw new CedaException("Problem with starting the CEDA transaction", e);
}
@@ -303,18 +288,18 @@ public boolean resourceExists(@NotNull ICicsTerminal terminal, @NotNull String r
if (terminal.retrieveScreen().contains("RESULTS: 1 TO 1 OF 1")) {
exists = true;
} else if (!terminal.retrieveScreen().contains("DISPLAY UNSUCCESSFUL")) {
- terminal.pf9().pf3().clear().waitForKeyboard();
+ terminal.pf9().wfk();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
throw new CedaException("Errors detected whilst displaying resource");
}
} catch(Exception e) {
- throw new CedaException("Problem determinign the result from the CEDA command)", e);
+ throw new CedaException("Problem determining the result from the CEDA command)", e);
}
try {
- terminal.pf3();
- terminal.waitForKeyboard();
- terminal.clear();
- terminal.waitForKeyboard();
+ terminal.pf3().wfk();
+ terminal.clear().wfk();
} catch(Exception e) {
throw new CedaException("Unable to return terminal back into reset state", e);
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaManagerImpl.java
index 9c2e62df6..d33448314 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/CedaManagerImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.ceda.internal;
import java.util.HashMap;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/properties/CedaPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/properties/CedaPropertiesSingleton.java
index d9c2fe90b..945d598da 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/properties/CedaPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/internal/properties/CedaPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceda.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/package-info.java
index b5b372686..d99912756 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/package-info.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceda;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/spi/ICedaManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/spi/ICedaManagerSpi.java
index 1635e3332..a0ff149da 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/spi/ICedaManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.ceda.manager/src/main/java/dev/galasa/cicsts/ceda/spi/ICedaManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.ceda.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/build.gradle
index f16078782..4f5e4a0d4 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/build.gradle
@@ -13,3 +13,16 @@ dependencies {
implementation project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInIsolated = true
+ext.includeInBOM = false
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/settings.gradle
index f8d73d1fe..11ee6fb33 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/settings.gradle
@@ -1 +1 @@
-rootProject.name = 'dev.galasa.cicsts.cemt.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.cemt.manager.ivt'
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/CEMTManagerIVT.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/CEMTManagerIVT.java
index c04df0b62..13b6992ed 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/CEMTManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/CEMTManagerIVT.java
@@ -1,7 +1,8 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
-
package dev.galasa.cicsts.cemt.manager.ivt;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/IVTException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/IVTException.java
index 57c8cea90..5bf4eaf58 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/IVTException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager.ivt/src/main/java/dev/galasa/cicsts/cemt/manager/ivt/IVTException.java
@@ -1,10 +1,8 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
-
-
package dev.galasa.cicsts.cemt.manager.ivt;
public class IVTException extends Exception {
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/bnd.bnd b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/bnd.bnd
index a56a758fa..6f5e6af99 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/bnd.bnd
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/bnd.bnd
@@ -1,5 +1,5 @@
-snapshot: ${tstamp}
Bundle-Name: Galasa CICS/TS CEMT Manager
-Export-Package: dev.galasa.cicsts.cemt.spi.spi
+Export-Package: dev.galasa.cicsts.cemt.spi
Import-Package: !javax.validation.constraints, \
*
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/build.gradle
index f8390a2a5..88e3c3793 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/build.gradle
@@ -4,9 +4,23 @@ plugins {
description = 'Galasa CICS/TS CEMT Manager'
-version = '0.21.0'
+version = '0.25.0'
dependencies {
api project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/settings.gradle
index 7000a4527..7c63b6c38 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.cemt.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.cemt.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtImpl.java
index 5df288fc7..25d990725 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.cemt.internal;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtManagerImpl.java
index e8fa6b526..e0c10d7a7 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/CemtManagerImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.cemt.internal;
@@ -25,7 +25,7 @@
import dev.galasa.cicsts.ICemt;
import dev.galasa.cicsts.ICicsRegion;
import dev.galasa.cicsts.cemt.internal.properties.CemtPropertiesSingleton;
-import dev.galasa.cicsts.cemt.spi.spi.ICemtManagerSpi;
+import dev.galasa.cicsts.cemt.spi.ICemtManagerSpi;
import dev.galasa.cicsts.spi.ICemtProvider;
import dev.galasa.cicsts.spi.ICicstsManagerSpi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/properties/CemtPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/properties/CemtPropertiesSingleton.java
index f48fcf53c..3a5e91740 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/properties/CemtPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/internal/properties/CemtPropertiesSingleton.java
@@ -1,9 +1,8 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
-
package dev.galasa.cicsts.cemt.internal.properties;
import org.osgi.service.component.annotations.Activate;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/ICemtManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/ICemtManagerSpi.java
new file mode 100644
index 000000000..75bca1ad2
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/ICemtManagerSpi.java
@@ -0,0 +1,11 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.cicsts.cemt.spi;
+
+
+public interface ICemtManagerSpi {
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/package-info.java
new file mode 100644
index 000000000..926a30ba6
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/package-info.java
@@ -0,0 +1,6 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.cicsts.cemt.spi;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/spi/ICemtManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/spi/ICemtManagerSpi.java
deleted file mode 100644
index e4adcd1a8..000000000
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/spi/ICemtManagerSpi.java
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
-
-package dev.galasa.cicsts.cemt.spi.spi;
-
-
-public interface ICemtManagerSpi {
-
-}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/spi/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/spi/package-info.java
deleted file mode 100644
index 6a5f44b85..000000000
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.cemt.manager/src/main/java/dev/galasa/cicsts/cemt/spi/spi/package-info.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
-
-
-package dev.galasa.cicsts.cemt.spi.spi;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/build.gradle
index be9649c5e..10b74f89a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/build.gradle
@@ -14,3 +14,19 @@ dependencies {
implementation project (':galasa-managers-workflow-parent:dev.galasa.githubissue.manager')
implementation project (':galasa-managers-internal-parent:dev.galasa.sem.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = false
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
+
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/settings.gradle
index 3b0143115..bc3b862cb 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/src/main/java/dev/galasa/cicsts/manager/ivt/CICSTSManagerIVT.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/src/main/java/dev/galasa/cicsts/manager/ivt/CICSTSManagerIVT.java
index d3f6a08e3..e91be9568 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/src/main/java/dev/galasa/cicsts/manager/ivt/CICSTSManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager.ivt/src/main/java/dev/galasa/cicsts/manager/ivt/CICSTSManagerIVT.java
@@ -1,7 +1,8 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
-
package dev.galasa.cicsts.manager.ivt;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/build.gradle
index 072701f27..4027a488e 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/build.gradle
@@ -4,7 +4,7 @@ plugins {
description = 'Galasa CICS/TS Manager'
-version = '0.24.0'
+version = '0.36.0'
dependencies {
api project (':galasa-managers-zos-parent:dev.galasa.zos.manager')
@@ -13,3 +13,17 @@ dependencies {
implementation project(':galasa-managers-core-parent:dev.galasa.textscan.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInIsolated = true
+ext.includeInBOM = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/settings.gradle
index e83755535..8f9669b2c 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciException.java
index d5acc8ff2..a5ec84c80 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciManagerException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciManagerException.java
index b2f1f2084..6cb47ace5 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CeciManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaException.java
index 613519c40..77443fac4 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaManagerException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaManagerException.java
index 0ec1d9026..fdbf12f09 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CedaManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtException.java
index 1826f7d9c..cd24c97b1 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtException.java
@@ -1,10 +1,8 @@
-
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
-
package dev.galasa.cicsts;
public class CemtException extends CemtManagerException {
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtManagerException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtManagerException.java
index 3c3d0ed79..0aabbccd7 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CemtManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsRegion.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsRegion.java
index 44a510eb4..c2bf418a8 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsRegion.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsRegion.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -20,7 +20,7 @@
* Used to populate a {@link ICicsRegion} field
*
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsTerminal.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsTerminal.java
index c32fb4d82..3f6a46eab 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsTerminal.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicsTerminal.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -19,7 +19,7 @@
* Used to populate a {@link ICicsTerminal} field
*
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
@@ -38,4 +38,9 @@
*/
boolean connectAtStartup() default true;
+ /**
+ * The CICS TS Manager will automatically log into the CICS TS region via CESL using the terminal with
+ * the specified secure credentials when it connects
+ */
+ String loginCredentialsTag() default "";
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsHashMap.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsHashMap.java
index 3d9b502d5..ce85f1531 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsHashMap.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsHashMap.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerException.java
index a6b772bfb..c2a2dd65f 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerField.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerField.java
index 2912c5711..651caf725 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerField.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/CicstsManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeci.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeci.java
index d2ec2b5c3..5eb2643a6 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeci.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeci.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -38,12 +38,15 @@ public interface ICeci {
* @param ceciTerminal an {@link ICicsTerminal} object logged on to the CICS region and in an active CECI session.
* If mixed case is required, the terminal should be presented with no upper case translate status.
* For example, the test could first issue CEOT TRANIDONLY
+ *
* @param command a {@link String} containing the CECI command
* @param parseOutput parse the command output and store in {@link ICeciResponse}. Setting to false can improve performance on commands
- * that contain a lot of output fields, e.g. ASSIGN.
- * The following examples shows how to retrieve a specific returned value:
- * issueCommand(ICicsTerminal, "ASSIGN USERID(&VAR)", false)
- * retrieveVariableText(ICicsTerminal, "&VAR")
+ * that contain a lot of output fields, e.g. ASSIGN.
+ *
+ * The following examples shows how to retrieve a specific returned value:
+ *
+ * issueCommand(ICicsTerminal, "ASSIGN USERID(&VAR)", false)
+ * retrieveVariableText(ICicsTerminal, "&VAR")
*
* @return an {@link ICeciResponse} object containing the command's response.
* @throws CeciException
@@ -72,8 +75,8 @@ public interface ICeci {
* @param parseOutput parse the command output and store in {@link ICeciResponse}. Setting to false can improve performance on commands
* that contain a lot of output fields, e.g. ASSIGN.
* The following examples shows how to retrieve a specific returned value:
- * issueCommand(ICicsTerminal, "ASSIGN USERID(&VAR)", false)
- * retrieveVariableText(ICicsTerminal, "ASSIGN USERID(&VAR)", false)
+ * issueCommand(ICicsTerminal, "ASSIGN USERID(&VAR)", false)
+ * retrieveVariableText(ICicsTerminal, "ASSIGN USERID(&VAR)", false)
*
* @return an {@link ICeciResponse} object containing the command's response.
* @throws CeciException
@@ -236,7 +239,7 @@ public interface ICeci {
/**
* Retrieve the content of the current EXEC Interface Block (EIB)
- * @param terminal an {@link ICicsTerminal} object logged on to the CICS region and in an active CECI session.
+ * @param ceciTerminal an {@link ICicsTerminal} object logged on to the CICS region and in an active CECI session.
* @return the {@link IExecInterfaceBlock}
* @throws CeciException
*/
@@ -249,7 +252,7 @@ public interface ICeci {
* For example, the test could first issue CEOT TRANIDONLY
* @param programName the name of the PROGRAM
* @param commarea a string representing the COMMAREA. If null, COMMAREA will be omitted from the command. Can be CECI variable name populated with
- * (&name set via {@link #defineVariableText(ICicsTerminal, String, String)}) or the actual data. The value of DATALENGTH in the command will be
+ * (&)name set via {@link #defineVariableText(ICicsTerminal, String, String)}) or the actual data. The value of DATALENGTH in the command will be
* be allowed to default.
* @param sysid the system name where the CICS region where the link request is to be routed. If null, SYSID will be omitted from the command.
* @param transid the name of the mirror transaction on the remote region. If null, TRANSID will be omitted from the command.
@@ -260,8 +263,8 @@ public interface ICeci {
public ICeciResponse linkProgram(@NotNull ICicsTerminal ceciTerminal, @NotNull String programName, String commarea, String sysid, String transid, boolean synconreturn) throws CeciException;
/**
- * EXEC CICS LINK to a PROGRAM with a CHANNEL. Use {@link #putContainer(ICicsTerminal, String, String, String)} to create the container(s) on the CHANNEL
- * and {@link #getContainer(ICicsTerminal, String, String, String)} to retrieve the content after the LINK.
+ * EXEC CICS LINK to a PROGRAM with a CHANNEL. Use {@link #putContainer(ICicsTerminal, String, String, String, String, String, String)} to create the container(s) on the CHANNEL
+ * and {@link #getContainer(ICicsTerminal, String, String, String, String, String)} to retrieve the content after the LINK.
* @param ceciTerminal an {@link ICicsTerminal} object logged on to the CICS region and in an active CECI session.
* If mixed case is required, the terminal should be presented with no upper case translate status.
* For example, the test could first issue CEOT TRANIDONLY
@@ -276,7 +279,7 @@ public interface ICeci {
* @param ceciTerminal an {@link ICicsTerminal} object logged on to the CICS region and in an active CECI session.
* @param channelName the CHANNELNAME
* @param containerName the COTAINER name
- * @param content a string representing the container contents. Can be CECI variable name populated with (&name set via {@link #defineVariableText(ICicsTerminal, String, String)})
+ * @param content a string representing the container contents. Can be CECI variable name populated with (&)name set via {@link #defineVariableText(ICicsTerminal, String, String)})
* or the actual data. The value of FLENGTH in the command will be set to the data length.
* @param dataType BIT or CHAR. If null, DATATYPE will be omitted from the command.
* @param fromCcsid provides a value for FROMCCSID. If null, will be omitted from the command.
@@ -293,8 +296,7 @@ public interface ICeci {
* For example, the test could first issue CEOT TRANIDONLY
* @param channelName the CHANNELNAME
* @param containerName the CONTAINER name
- * @param variableName the CECI variable name. Data can be retrieved using {@link #retrieveVariableText(ICicsTerminal, String)} or {@link #retrieveVariableHex(ICicsTerminal, String)}
- * @param dataType BIT or CHAR. If null, DATATYPE will be omitted from the command.
+ * @param variableName the CECI variable name. Data can be retrieved using {@link #retrieveVariableText(ICicsTerminal, String)}
* @param intoCcsid provides a value for INTOCCSID. If null, will be omitted from the command.
* @param intoCodepage provides a value for INTOCODEPAGE. If null, will be omitted from the command.
* @return an {@link ICeciResponse} object containing the command's response.
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponse.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponse.java
index edc29fb43..194afbfad 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponse.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponse.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponseOutputValue.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponseOutputValue.java
index 8ab556ab2..f08704bb1 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponseOutputValue.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeciResponseOutputValue.java
@@ -1,8 +1,9 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
+
package dev.galasa.cicsts;
/**
@@ -12,8 +13,8 @@
* e.g. the request output screen might
* show:
* INTO('A.....')
- * and in Hex:<
- * INTO(X'C13456789ABC')
+ * and in Hex:
+ * INTO(X'C13456789ABC') example hex in javadoc comment //pragma: allowlist secret
* Both representations are available using the {@link #getTextValue()} and {@link #getHexValue()} methods respectively
*/
public interface ICeciResponseOutputValue {
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeda.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeda.java
index 331b28bfa..d682b8b6a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeda.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICeda.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICemt.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICemt.java
index 1180a625f..2dbf3646d 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICemt.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICemt.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -14,7 +16,7 @@ public interface ICemt {
/**
* Inquire a CEMT resource using the resource type and name.
* This does not support inquiries of multiple resources at once.
- * Will return {@link null} if the resource is not found.
+ * @return null if the resource is not found.
* @param cemtTerminal an {@link ITerminal} object logged on to the CICS region and in an active CEMT session.
* If mixed case is required, the terminal should be presented with no upper case translate status.
* For example, the test could first issue CEOT TRANIDONLY
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsRegion.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsRegion.java
index 6275f7859..dc7b2ccc9 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsRegion.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsRegion.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -102,6 +104,7 @@ public interface ICicsRegion {
* @throws CicstsManagerException
*/
public void removeSit(@NotNull String sitParam) throws CicstsManagerException;
+
/**
* This method adds a method to the DFHRPL concatenation in the CICS
@@ -111,4 +114,28 @@ public interface ICicsRegion {
* @throws CicstsManagerException
*/
public void addToDfhRpl(@NotNull String library) throws CicstsManagerException;
+
+
+ /**
+ * Allows a testcase to get a specific property about the region.
+ *
+ * The list of properties supported will depend upon how the region was
+ * deployed/provisioned.
+ *
+ * By default, no properties are supported, but each implementation of this
+ * interface is free to provide tests with whatever values they wish to
+ * reflect this particular CICS region.
+ *
+ * @param propertyName The name of the property for which the caller wishes to
+ * get a value.
+ *
+ * @return A string value for the requested property, or null if that property
+ * value is not available.
+ *
+ * @throws CicstsManagerException
+ */
+ public default String getRegionProperty( String propertyName ) throws CicstsManagerException {
+ return null;
+ }
+
}
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsTerminal.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsTerminal.java
index 881a3b7b7..e48c63ba7 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsTerminal.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ICicsTerminal.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -28,4 +30,6 @@ public interface ICicsTerminal extends ITerminal {
*/
public boolean isUppercaseTranslation() throws CicstsManagerException;
-}
\ No newline at end of file
+ String getLoginCredentialsTag();
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/IExecInterfaceBlock.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/IExecInterfaceBlock.java
index 8527380d4..6be5e8910 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/IExecInterfaceBlock.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/IExecInterfaceBlock.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
@@ -12,188 +12,186 @@
public interface IExecInterfaceBlock {
/**
- * Returns a {@link String} representation of the EIBRESP field if available
- * @return
+ * @return a {@link String} representation of the EIBRESP field if available
*/
public String getResponse();
/**
- * Returns the value of the EIBTIME field in the EIB.
- * @return
+ * @return the value of the EIBTIME field in the EIB.
+ *
*/
public int getEIBTIME();
/**
- * Returns the value of the EIBDATE field in the EIB.
- * @return
+ * @return the value of the EIBDATE field in the EIB.
+ *
*/
public int getEIBDATE();
/**
- * Returns the value of the EIBTRNID field in the EIB.
+ * @return the value of the EIBTRNID field in the EIB.
* @param hex return a char array containing the hex values of the field
- * @return
+ *
*/
public String getEIBTRNID(boolean hex);
/**
- * Returns the value of the EIBTASKN field in the EIB.
- * @return
+ * @return the value of the EIBTASKN field in the EIB.
+ *
*/
public int getEIBTASKN();
/**
- * Returns the value of the EIBTRMID field in the EIB.
+ * @return the value of the EIBTRMID field in the EIB.
* @param hex return a char array containing the hex values of the field
- * @return
+ *
*/
public String getEIBTRMID(boolean hex);
/**
- * Returns the value of the EIBCPOSN field in the EIB.
- * @param hex return a char array containing the hex values of the field
- * @return
+ * @return the value of the EIBCPOSN field in the EIB.
+ *
*/
public int getEIBCPOSN();
/**
- * Returns the value of the EIBCALEN field in the EIB.
- * @return
+ * @return the value of the EIBCALEN field in the EIB.
+ *
*/
public int getEIBCALEN();
/**
- * Returns the value of the EIBAID field in the EIB.
- * @return
+ * @return the value of the EIBAID field in the EIB.
+ *
*/
public char getEIBAID();
/**
- * Returns the value of the EIBFN field in the EIB.
- * @return
+ * @return the value of the EIBFN field in the EIB.
+ *
*/
public char[] getEIBFN();
/**
- * Returns the value of the EIBRCODE field in the EIB.
- * @return
+ * @return the value of the EIBRCODE field in the EIB.
+ *
*/
public char[] getEIBRCODE();
/**
- * Returns the value of the EIBDS field in the EIB.
+ * @return the value of the EIBDS field in the EIB.
* @param hex return a char array containing the hex values of the field
- * @return
+ *
*/
public String getEIBDS(boolean hex);
/**
- * Returns the value of the EIBREQID field in the EIB.
+ * @return the value of the EIBREQID field in the EIB.
* @param hex return a char array containing the hex values of the field
- * @return
+ *
*/
public String getEIBREQID(boolean hex);
/**
- * Returns the value of the EIBRSRCE field in the EIB.
+ * @return the value of the EIBRSRCE field in the EIB.
* @param hex return a char array containing the hex values of the field
- * @return
+ *
*/
public String getEIBRSRCE(boolean hex);
/**
- * Returns the value of the EIBSYNC field in the EIB.
- * @return
+ * @return the value of the EIBSYNC field in the EIB.
+ *
*/
public char getEIBSYNC();
/**
- * Returns the value of the EIBFREE field in the EIB.
- * @return
+ * @return the value of the EIBFREE field in the EIB.
+ *
*/
public char getEIBFREE();
/**
- * Returns the value of the EIBRECV field in the EIB.
- * @return
+ * @return the value of the EIBRECV field in the EIB.
+ *
*/
public char getEIBRECV();
/**
- * Returns the value of the EIBATT field in the EIB.
- * @return
+ * @return the value of the EIBATT field in the EIB.
+ *
*/
public char getEIBATT();
/**
- * Returns the value of the EIBEOC field in the EIB.
- * @return
+ * @return the value of the EIBEOC field in the EIB.
+ *
*/
public char getEIBEOC();
/**
- * Returns the value of the field in the EIB.
- * @return
+ * @return the value of the field in the EIB.
+ *
*/
public char getEIBFMH();
/**
- * Returns the value of the EIBCOMPL field in the EIB.
- * @return
+ * @return the value of the EIBCOMPL field in the EIB.
+ *
*/
public char getEIBCOMPL();
/**
- * Returns the value of the EIBSIG field in the EIB.
- * @return
+ * @return the value of the EIBSIG field in the EIB.
+ *
*/
public char getEIBSIG();
/**
- * Returns the value of the EIBCONF field in the EIB.
- * @return
+ * @return the value of the EIBCONF field in the EIB.
+ *
*/
public char getEIBCONF();
/**
- * Returns the value of the EIBERR field in the EIB.
- * @return
+ * @return the value of the EIBERR field in the EIB.
+ *
*/
public char getEIBERR();
/**
- * Returns the value of the EIBERRCD field in the EIB.
- * @return
+ * @return the value of the EIBERRCD field in the EIB.
+ *
*/
public char[] getEIBERRCD();
/**
- * Returns the value of the EIBSYNRB field in the EIB.
- * @return
+ * @return the value of the EIBSYNRB field in the EIB.
+ *
*/
public char getEIBSYNRB();
/**
- * Returns the value of the EIBNODAT field in the EIB.
- * @return
+ * @return the value of the EIBNODAT field in the EIB.
+ *
*/
public char getEIBNODAT();
/**
- * Returns the value of the EIBRESP field in the EIB.
- * @return
+ * @return the value of the EIBRESP field in the EIB.
+ *
*/
public int getEIBRESP();
/**
- * Returns the value of the EIBRESP2 field in the EIB.
- * @return
+ * @return the value of the EIBRESP2 field in the EIB.
+ *
*/
public int getEIBRESP2();
/**
- * Returns the value of the EIBRLDBK field in the EIB.
- * @return
+ * @return the value of the EIBRLDBK field in the EIB.
+ *
*/
public char getEIBRLDBK();
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/MasType.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/MasType.java
index 3365b5d1c..42b67830c 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/MasType.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/MasType.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsBundleResourceException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsBundleResourceException.java
index 164042635..2e18fbae4 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsBundleResourceException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsBundleResourceException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.cicsresource;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmprofileResourceException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmprofileResourceException.java
index c128274e9..6a0faf49a 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmprofileResourceException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmprofileResourceException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.cicsresource;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmserverResourceException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmserverResourceException.java
index cbeee423d..c586ee05c 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmserverResourceException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsJvmserverResourceException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.cicsresource;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceManagerException.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceManagerException.java
index ece29e4ca..929de3f64 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceManagerException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.cicsresource;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceStatus.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceStatus.java
index e6539b4bc..9d461f7b3 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceStatus.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/CicsResourceStatus.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.cicsresource;
public enum CicsResourceStatus {
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsBundle.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsBundle.java
index fcf8f71f1..3c7fb5094 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsBundle.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsBundle.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.cicsresource;
/**
@@ -84,12 +86,14 @@ public interface ICicsBundle {
/**
* Check if the CICS BUNDLE resource definition exist via CEDA DISPLAY
+ * @return true if the resource definition exists, false otherwise
* @throws CicsBundleResourceException
*/
public boolean resourceDefined() throws CicsBundleResourceException;
/**
* Check if the CICS BUNDLE resource has been installed via CEMT INQUIRE
+ * @return true if it has been installed, false otherwise.
* @throws CicsBundleResourceException
*/
public boolean resourceInstalled() throws CicsBundleResourceException;
@@ -140,7 +144,7 @@ public interface ICicsBundle {
* Wait for the CICS BUNDLE resource to be disabled with specified timeout. Does NOT issue the disable command
* @param timeout timeout in seconds
* @return true if disabled, false if not disabled
- * @throws CicsJvmserverResourceException
+ * @throws CicsBundleResourceException
*/
public boolean waitForDisable(int timeout) throws CicsBundleResourceException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsResource.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsResource.java
index d88abb5aa..f67382d69 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsResource.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/ICicsResource.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.cicsresource;
import java.util.Map;
@@ -16,28 +18,31 @@
public interface ICicsResource {
/**
- * Create a CICS BUNDLE resource object supplying the CICS bundle content. The source bundle should have the same file structure as it exists
+ * Create a CICS BUNDLE resource object supplying the CICS bundle content.
+ *
+ * The source bundle should have the same file structure as it exists
* on the zOS UNIX file system and will be transferred to the host in binary mode.
+ *
* @param cicsTerminal a ICicsTerminal object for CEDA and CEMT transactions
- * @param testClass a {@link class} in the same bundle containing the application archive file, use this.getClass()
+ * @param testClass a class in the same bundle containing the application archive file, use this.getClass()
* @param name the CICS BUNDLE RDO name
* @param group the CICS BUNDLE RDO group name
* @param bundlePath the path to the directory in the test class bundle containing the CICS bundle
* @param parameters substitution parameters to replace variables in the META-INF/cics.xml. Can be null
* @return the CICS Bundle object
- * @throws CicsJvmserverResourceException
+ * @throws CicsBundleResourceException
*/
public ICicsBundle newCicsBundle(ICicsTerminal cicsTerminal, Class> testClass, String name, String group, String bundlePath, Map parameters) throws CicsBundleResourceException;
/**
* Create a CICS BUNDLE resource object without supplying the CICS bundle content, i.e. the bundle already exists on the zOS UNIX file system
* @param cicsTerminal a ICicsTerminal object for CEDA and CEMT transactions
- * @param testClass a {@link class} in the same bundle containing the application archive file, use this.getClass()
+ * @param testClass a class in the same bundle containing the application archive file, use this.getClass()
* @param name the CICS BUNDLE RDO name
* @param group the CICS BUNDLE RDO group name
* @param bundleDir the CICS BUNDLE RDO BUNDLEDIR value, i.e. the location of the existing CICS bundle
* @return the CICS Bundle object
- * @throws CicsJvmserverResourceException
+ * @throws CicsBundleResourceException
*/
public ICicsBundle newCicsBundle(ICicsTerminal cicsTerminal, Class> testClass, String name, String group, String bundleDir) throws CicsBundleResourceException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmprofile.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmprofile.java
index e9c42cff9..44a960cf1 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmprofile.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmprofile.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.cicsresource;
import java.util.Map;
@@ -160,7 +162,9 @@ public interface IJvmprofile {
public void saveToResultsArchive(String rasPath) throws CicsJvmserverResourceException;
/**
- * Set the value of the WLP_INSTALL_DIR environment variable in the JVM profile Galasa sets the default value of&USSHOME;/wlp
+ * Set the value of the WLP_INSTALL_DIR environment variable in the JVM profile
+ *
+ * Galasa sets the default value ofUSSHOME/wlp
* @param wlpInstallDir the value of WLP_INSTALL_DIR
* @throws CicsJvmserverResourceException
*/
@@ -183,7 +187,6 @@ public interface IJvmprofile {
/**
* Set the value of the ZCEE_INSTALL_DIR environment variable in the JVM profile using the value supplied
* in the Galasa Configuration Property Service
- * @param zOSConnectInstallDir the value of ZCEE_INSTALL_DIR
* @throws CicsJvmserverResourceException
*/
void setZosConnectInstallDir() throws CicsJvmserverResourceException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserver.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserver.java
index 85b807c19..974c5b35b 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserver.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserver.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.cicsresource;
@@ -260,7 +262,7 @@ public enum PurgeType {
/**
* Set the JVMSERVER Threadlimit value in CEMT
- * @param the Threadlimit value
+ * @param threadlimit max number of threads used by the JVM server
* @throws CicsJvmserverResourceException
*/
public void setThreadLimit(int threadlimit) throws CicsJvmserverResourceException;
@@ -371,7 +373,7 @@ public enum PurgeType {
public void checkpointLogs() throws CicsJvmserverResourceException;
/**
- * Get a <@link List} of Java log files, i.e Snap.*.trc, javacore.*.txt etc.
+ * Get a {@link List} of Java log files, i.e Snap.*.trc, javacore.*.txt etc.
* @return
* @throws CicsJvmserverResourceException
*/
@@ -392,7 +394,6 @@ public enum PurgeType {
/**
* Delete the JVM server logs
- * @param rasPath path in Results Archive Store
* @throws CicsJvmserverResourceException
*/
public void clearJvmLogs() throws CicsJvmserverResourceException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserverLog.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserverLog.java
index f145c0b71..64b971a03 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserverLog.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/cicsresource/IJvmserverLog.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.cicsresource;
import java.io.OutputStream;
@@ -52,8 +54,9 @@ public interface IJvmserverLog {
public OutputStream retrieve() throws CicsJvmserverResourceException;
/**
- * Delete the {@link IZosUNIXFile} if it exists. Will throw {@link CicsJvmserverResourceException} if the log is a {@link IZosBatchJobOutputSpoolFile}
- * @throws CicsJvmserverResourceException
+ * Delete the {@link IZosUNIXFile} if it exists.
+ *
+ * @throws CicsJvmserverResourceException the log is a {@link IZosBatchJobOutputSpoolFile}
*/
public void delete() throws CicsJvmserverResourceException;
@@ -86,6 +89,7 @@ public interface IJvmserverLog {
/**
* Searches contents of log for specified search text
+ *
* @param searchText the text to search
* @return true if text found
* @throws CicsJvmserverResourceException
@@ -94,6 +98,7 @@ public interface IJvmserverLog {
/**
* Searches contents of log for specified search or fail String
+ *
* @param searchText the text to search
* @return true if text found
* @throws CicsJvmserverResourceException
@@ -110,6 +115,7 @@ public interface IJvmserverLog {
/**
* Searches contents of log for specified search or fail String since the last checkpoint
+ *
* @param searchText the text to search
* @return the string found or null
* @throws CicsJvmserverResourceException
@@ -118,6 +124,7 @@ public interface IJvmserverLog {
/**
* Searches contents of log for specified search Pattern
+ *
* @param searchPattern the Pattern to search
* @return the string found or null
* @throws CicsJvmserverResourceException
@@ -126,6 +133,7 @@ public interface IJvmserverLog {
/**
* Searches contents of log for specified search or fail Pattern
+ *
* @param searchPattern the Pattern to search
* @return the string found or null
* @throws CicsJvmserverResourceException
@@ -143,19 +151,23 @@ public interface IJvmserverLog {
/**
* Searches contents of log for specified search or fail Pattern since the last checkpoint
* @param searchPattern the Pattern to search
+ * @param failPattern the failure pattern to search
* @return the string found or null
* @throws CicsJvmserverResourceException
*/
public String searchForPatternSinceCheckpoint(Pattern searchPattern, Pattern failPattern) throws CicsJvmserverResourceException;
/**
- * Wait for a search search String to appear in specified log. Will check every 3 seconds until one of:
+ * Wait for a search String to appear in specified log.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchText is found;
- *
the failText is found;
- *
the specified timeout is reached.
+ *
the searchText is found
+ *
the failText is found
+ *
the specified timeout is reached
*
- * @param searchString the text to search
+ *
+ * @param searchText the text to search
* @param timeout timeout in seconds
* @return the string found or null
* @throws CicsJvmserverResourceException
@@ -163,14 +175,17 @@ public interface IJvmserverLog {
public String waitForText(String searchText, long timeout) throws CicsJvmserverResourceException;
/**
- * Wait for a search String or fail text to appear in specified log. Will check every 3 seconds until one of:
+ * Wait for a search String or fail text to appear in specified log.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchText is found;
- *
the failText is found;
- *
the specified timeout is reached.
+ *
the searchText is found
+ *
the failText is found
+ *
the specified timeout is reached
*
- * @param searchString the text to search
- * @param failString the failure text to search
+ *
+ * @param searchText the text to search
+ * @param failText the failure text to search
* @param timeout timeout in seconds
* @return the string found or null
* @throws CicsJvmserverResourceException
@@ -178,11 +193,13 @@ public interface IJvmserverLog {
public String waitForText(String searchText, String failText, long timeout) throws CicsJvmserverResourceException;
/**
- * Wait for a search String to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:
+ * Wait for a search String to appear in specified log since the last checkpoint.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchText is found;
- *
the failText is found;
- *
the specified timeout is reached.
+ *
the searchText is found
+ *
the failText is found
+ *
the specified timeout is reached
*
* @param searchText the text to search
* @param timeout timeout in seconds
@@ -192,12 +209,15 @@ public interface IJvmserverLog {
public String waitForTextSinceCheckpoint(String searchText, long timeout) throws CicsJvmserverResourceException;
/**
- * Wait for a search or fail String to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:
+ * Wait for a search or fail String to appear in specified log since the last checkpoint.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchText is found;
- *
the failText is found;
- *
the specified timeout is reached.
+ *
the searchText is found
+ *
the failText is found
+ *
the specified timeout is reached
*
+ *
* @param searchText the text to search
* @param failText the failure text to search
* @param timeout timeout in seconds
@@ -221,12 +241,15 @@ public interface IJvmserverLog {
public String waitForPattern(Pattern searchPattern, long timeout) throws CicsJvmserverResourceException;
/**
- * Wait for a search or fail Pattern or fail Pattern to appear in specified log. Will check every 3 seconds until one of:
+ * Wait for a search or fail Pattern or fail Pattern to appear in specified log.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchPattern is found;
- *
the failPattern is found;
- *
the specified timeout is reached.
+ *
the searchPattern is found
+ *
the failPattern is found
+ *
the specified timeout is reached
*
+ *
* @param searchPattern the Pattern to search
* @param failPattern the failure pattern to search
* @param timeout timeout in seconds
@@ -236,12 +259,15 @@ public interface IJvmserverLog {
public String waitForPattern(Pattern searchPattern, Pattern failPattern, long timeout) throws CicsJvmserverResourceException;
/**
- * Wait for a search Pattern to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:
+ * Wait for a search Pattern to appear in specified log since the last checkpoint.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchPattern is found;
- *
the failPattern is found;
- *
the specified timeout is reached.
+ *
the searchPattern is found
+ *
the failPattern is found
+ *
the specified timeout is reached
*
+ *
* @param searchPattern the Pattern to search
* @param timeout timeout in seconds
* @return the string found or null
@@ -250,12 +276,15 @@ public interface IJvmserverLog {
public String waitForPatternSinceCheckpoint(Pattern searchPattern, long timeout) throws CicsJvmserverResourceException;
/**
- * Wait for a search or fail Pattern or fail Pattern to appear in specified log since the last checkpoint. Will check every 3 seconds until one of:
+ * Wait for a search or fail Pattern or fail Pattern to appear in specified log since the last checkpoint.
+ *
+ * Will check every 3 seconds until one of:
*
- *
the searchPattern is found;
- *
the failPattern is found;
- *
the specified timeout is reached.
+ *
the searchPattern is found
+ *
the failPattern is found
+ *
the specified timeout is reached
*
+ *
* @param searchPattern the Pattern to search
* @param failPattern the failure pattern to search
* @param timeout timeout in seconds
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsDefaultLogonProvider.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsDefaultLogonProvider.java
index 421693fe4..c27456111 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsDefaultLogonProvider.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsDefaultLogonProvider.java
@@ -1,28 +1,43 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import dev.galasa.ICredentialsUsernamePassword;
import dev.galasa.cicsts.CicstsManagerException;
import dev.galasa.cicsts.ICicsTerminal;
import dev.galasa.cicsts.internal.properties.DefaultLogonGmText;
import dev.galasa.cicsts.internal.properties.DefaultLogonInitialText;
import dev.galasa.cicsts.spi.ICicsRegionLogonProvider;
+import dev.galasa.framework.spi.IConfidentialTextService;
+import dev.galasa.framework.spi.IFramework;
+import dev.galasa.framework.spi.creds.CredentialsException;
+import dev.galasa.framework.spi.creds.ICredentialsService;
import dev.galasa.zos3270.Zos3270Exception;
public class CicstsDefaultLogonProvider implements ICicsRegionLogonProvider {
private static final Log logger = LogFactory.getLog(CicstsDefaultLogonProvider.class);
+ private final ICredentialsService cs;
+ private final IConfidentialTextService cts;
private final String initialText;
private final String gmText;
- public CicstsDefaultLogonProvider() throws CicstsManagerException {
+ public CicstsDefaultLogonProvider(IFramework framework) throws CicstsManagerException {
+
+ try {
+ this.cs = framework.getCredentialsService();
+ } catch (CredentialsException e) {
+ throw new CicstsManagerException("Could not obtain the Credentials service.", e);
+ }
+
+ this.cts = framework.getConfidentialTextService();
try {
initialText = DefaultLogonInitialText.get();
@@ -48,14 +63,40 @@ public boolean logonToCicsRegion(ICicsTerminal cicsTerminal) throws CicstsManage
checkForInitialText(cicsTerminal);
}
- cicsTerminal.type("LOGON APPLID(" + cicsTerminal.getCicsRegion().getApplid() + ")").enter();
+ cicsTerminal.type("LOGON APPLID(" + cicsTerminal.getCicsRegion().getApplid() + ")").enter().wfk();
waitForGmText(cicsTerminal);
- cicsTerminal.clear();
-
logger.debug("Logged onto " + cicsTerminal.getCicsRegion());
- } catch (Zos3270Exception e) {
+
+ // If loginCredentialsTag is provided, attempt to sign-in
+ // via CESL
+ if (!cicsTerminal.getLoginCredentialsTag().isEmpty()) {
+ ICredentialsUsernamePassword creds = (ICredentialsUsernamePassword)this.cs.getCredentials(cicsTerminal.getLoginCredentialsTag());
+ cts.registerText(creds.getPassword(), "Password for credential tag: " + cicsTerminal.getLoginCredentialsTag());
+
+ // Are we already on CESL/N? If not go to it
+ long timeout = 0;
+ if (!cicsTerminal.searchText("Signon to CICS", timeout)) {
+ cicsTerminal.clear().wfk();
+
+ cicsTerminal.type("CESL").enter().wfk();
+ }
+
+ cicsTerminal.waitForTextInField(new String[]{"Userid"}, new String[]{"Security is not active"});
+ cicsTerminal.type(creds.getUsername());
+ cicsTerminal.positionCursorToFieldContaining("Password");
+ cicsTerminal.tab();
+ cicsTerminal.type(creds.getPassword());
+ cicsTerminal.enter().wfk();
+
+ waitForLoggedOnText(cicsTerminal);
+ logger.debug("Logged into CICS TS as user: " + creds.getUsername());
+ }
+
+ cicsTerminal.clear().wfk();
+
+ } catch (Zos3270Exception | CredentialsException e) {
throw new CicstsManagerException("Problem logging onto the CICS region");
}
@@ -80,4 +121,21 @@ private void waitForGmText(ICicsTerminal cicsTerminal) throws CicstsManagerExcep
}
}
-}
\ No newline at end of file
+ private void waitForLoggedOnText(ICicsTerminal cicsTerminal) throws CicstsManagerException {
+
+ String[] pass = { "Sign-on is complete" };
+ String[] fail = {
+ "Your password has expired. Please type your new password.",
+ "Invalid credentials entered",
+ "userid has been revoked"
+ };
+
+ try {
+ cicsTerminal.waitForTextInField(pass, fail);
+ } catch (Exception e) {
+ throw new CicstsManagerException("Unable to wait for the initial CICS screen, looking for '" + String.join("', '", pass) + "'",
+ e);
+ }
+ }
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsManagerImpl.java
index 2cf1a2f5c..a91823646 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/CicstsManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal;
@@ -46,11 +48,9 @@
import dev.galasa.framework.spi.IManager;
import dev.galasa.framework.spi.ResourceUnavailableException;
import dev.galasa.framework.spi.language.GalasaTest;
-import dev.galasa.ipnetwork.IpNetworkManagerException;
import dev.galasa.textscan.spi.ITextScannerManagerSpi;
import dev.galasa.zos.spi.IZosManagerSpi;
import dev.galasa.zos3270.TerminalInterruptedException;
-import dev.galasa.zos3270.Zos3270ManagerException;
import dev.galasa.zosbatch.IZosBatch;
import dev.galasa.zosbatch.spi.IZosBatchSpi;
import dev.galasa.zosfile.IZosFileHandler;
@@ -65,9 +65,9 @@ public class CicstsManagerImpl extends AbstractManager implements ICicstsManager
private boolean required;
private IZosManagerSpi zosManager;
- private IZosBatchSpi zosBatchManager;
- private IZosFileSpi zosFileManager;
- private ITextScannerManagerSpi textScanner;
+ private IZosBatchSpi zosBatchManager;
+ private IZosFileSpi zosFileManager;
+ private ITextScannerManagerSpi textScanner;
private final HashMap provisionedCicsRegions = new HashMap<>();
@@ -208,15 +208,16 @@ public ICicsTerminal generateCicsTerminal(Field field, List annotati
CicsTerminal annotation = field.getAnnotation(CicsTerminal.class);
String tag = defaultString(annotation.cicsTag(), "PRIMARY").toUpperCase();
+ String loginCredentialsTag = defaultString(annotation.loginCredentialsTag(), "").toUpperCase();
ICicsRegionProvisioned region = this.provisionedCicsRegions.get(tag);
if (region == null) {
- throw new CicstsManagerException("Unable to setup CICS Terminal for field " + field.getName()
- + ", tagged region " + tag + " was not provisioned");
+ throw new CicstsManagerException("Unable to setup CICS Terminal for field '" + field.getName() + "', for region with tag '"
+ + tag + "' as a region with a matching 'cicsTag' tag was not found, or the region was not provisioned.");
}
try {
- CicsTerminalImpl newTerminal = new CicsTerminalImpl(this, getFramework(), region, annotation.connectAtStartup(), this.textScanner);
+ CicsTerminalImpl newTerminal = new CicsTerminalImpl(this, getFramework(), region, annotation.connectAtStartup(), this.textScanner, loginCredentialsTag);
this.terminals.add(newTerminal);
return newTerminal;
} catch (TerminalInterruptedException e) {
@@ -237,7 +238,7 @@ public ICicsTerminal generateCicsTerminal(String tag) throws CicstsManagerExcept
CicsTerminalImpl newTerminal = new CicsTerminalImpl(this, getFramework(), region, true, this.textScanner);
this.terminals.add(newTerminal);
return newTerminal;
- } catch (TerminalInterruptedException | IpNetworkManagerException | Zos3270ManagerException e) {
+ } catch (TerminalInterruptedException | ManagerException e) {
throw new CicstsManagerException(
"Unable to setup CICS Terminal for tagged region " + tag, e);
}
@@ -264,7 +265,7 @@ public void provisionBuild() throws ManagerException, ResourceUnavailableExcepti
@Override
public void provisionStart() throws ManagerException, ResourceUnavailableException {
// Add the default Logon Provider incase one isn't supplied
- this.logonProviders.add(new CicstsDefaultLogonProvider());
+ this.logonProviders.add(new CicstsDefaultLogonProvider(getFramework()));
// First, give the provisioners the opportunity to start CICS regions
for (ICicsRegionProvisioner provisioner : provisioners) {
@@ -300,6 +301,7 @@ public void provisionStart() throws ManagerException, ResourceUnavailableExcepti
public void provisionStop() {
for (CicsTerminalImpl terminal : this.terminals) {
try {
+ terminal.writeRasOutput();
terminal.flushTerminalCache();
terminal.disconnect();
} catch (TerminalInterruptedException e) { // NOSONAR - wish to hide disconnect errors
@@ -447,4 +449,9 @@ public Map getTaggedCicsRegions() {
}
return clonedTaggedCicsRegions;
}
+
+ @Override
+ public List getCicsTerminals() {
+ return new ArrayList<>(this.terminals);
+ }
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseCicsImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseCicsImpl.java
index f4e8911a8..1275b38e0 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseCicsImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseCicsImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.dse;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseProvisioningImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseProvisioningImpl.java
index 84051b7fc..56e7466af 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseProvisioningImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/dse/DseProvisioningImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.dse;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/CicstsPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/CicstsPropertiesSingleton.java
index b6d457cad..675b90200 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/CicstsPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/CicstsPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonGmText.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonGmText.java
index 458e94a2e..66b30e563 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonGmText.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonGmText.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonInitialText.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonInitialText.java
index cd3531b61..05d1b66f8 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonInitialText.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultLogonInitialText.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultVersion.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultVersion.java
index 08bd6cb42..e60644bc3 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultVersion.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DefaultVersion.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseApplid.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseApplid.java
index 4912c160e..bf46735a4 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseApplid.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseApplid.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJavaHome.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJavaHome.java
index 77a827d77..2bd9cc7b6 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJavaHome.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJavaHome.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJvmProfileDir.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJvmProfileDir.java
index 7f18616b5..6a700bba8 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJvmProfileDir.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseJvmProfileDir.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseUssHome.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseUssHome.java
index f13172f65..27499a116 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseUssHome.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseUssHome.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseVersion.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseVersion.java
index bc89a730f..b86875e8c 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseVersion.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/DseVersion.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ExtraBundles.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ExtraBundles.java
index 4382e6eb2..80212006f 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ExtraBundles.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ExtraBundles.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.internal.properties;
import java.util.ArrayList;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ProvisionType.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ProvisionType.java
index 3d738eaf9..f0c504dd8 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ProvisionType.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/internal/properties/ProvisionType.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/package-info.java
index 76a77d9a2..f0c325937 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/package-info.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* CICS/TS Manager
*
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/BaseCicsImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/BaseCicsImpl.java
index cea2a4d33..b94673d6f 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/BaseCicsImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/BaseCicsImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.spi;
import dev.galasa.cicsts.CicstsManagerException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/CicsTerminalImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/CicsTerminalImpl.java
index a40fee506..123018b39 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/CicsTerminalImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/CicsTerminalImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.spi;
import org.apache.commons.logging.Log;
@@ -13,11 +15,13 @@
import dev.galasa.ipnetwork.IIpHost;
import dev.galasa.ipnetwork.IpNetworkManagerException;
import dev.galasa.textscan.spi.ITextScannerManagerSpi;
+import dev.galasa.zos.ZosManagerException;
import dev.galasa.zos3270.FieldNotFoundException;
import dev.galasa.zos3270.KeyboardLockedException;
import dev.galasa.zos3270.TerminalInterruptedException;
import dev.galasa.zos3270.TimeoutException;
import dev.galasa.zos3270.Zos3270ManagerException;
+import dev.galasa.zos3270.common.screens.TerminalSize;
import dev.galasa.zos3270.spi.NetworkException;
import dev.galasa.zos3270.spi.Zos3270TerminalImpl;
@@ -29,26 +33,33 @@ public class CicsTerminalImpl extends Zos3270TerminalImpl implements ICicsTermin
public final ICicstsManagerSpi cicstsManager;
public final boolean connectAtStartup;
+ public final String loginCredentialsTag;
- public CicsTerminalImpl(ICicstsManagerSpi cicstsManager, IFramework framework, ICicsRegionProvisioned cicsRegion, String host, int port, boolean ssl, boolean connectAtStartup, ITextScannerManagerSpi textScanner)
- throws TerminalInterruptedException, Zos3270ManagerException {
- super(cicsRegion.getNextTerminalId(), host, port, ssl, framework, false, cicsRegion.getZosImage(), 80, 24, 0, 0, textScanner);
+ public CicsTerminalImpl(ICicstsManagerSpi cicstsManager, IFramework framework, ICicsRegionProvisioned cicsRegion, String host, int port, boolean ssl, boolean connectAtStartup, ITextScannerManagerSpi textScanner, String loginCredentialsTag)
+ throws TerminalInterruptedException, Zos3270ManagerException, ZosManagerException {
+ super(cicsRegion.getNextTerminalId(), host, port, ssl, framework, false, cicsRegion.getZosImage(), new TerminalSize(80, 24), new TerminalSize(0, 0), textScanner);
this.cicsRegion = cicsRegion;
this.cicstsManager = cicstsManager;
this.connectAtStartup = connectAtStartup;
+ this.loginCredentialsTag = loginCredentialsTag;
setAutoReconnect(connectAtStartup);
}
- public CicsTerminalImpl(ICicstsManagerSpi cicstsManager, IFramework framework, ICicsRegionProvisioned cicsRegion, IIpHost ipHost, boolean connectAtStartup, ITextScannerManagerSpi textScanner)
- throws TerminalInterruptedException, IpNetworkManagerException, Zos3270ManagerException {
- this(cicstsManager, framework, cicsRegion, ipHost.getHostname(), ipHost.getTelnetPort(), ipHost.isTelnetPortTls(), connectAtStartup, textScanner);
+ public CicsTerminalImpl(ICicstsManagerSpi cicstsManager, IFramework framework, ICicsRegionProvisioned cicsRegion, IIpHost ipHost, boolean connectAtStartup, ITextScannerManagerSpi textScanner, String loginCredentialsTag)
+ throws TerminalInterruptedException, IpNetworkManagerException, Zos3270ManagerException, ZosManagerException {
+ this(cicstsManager, framework, cicsRegion, ipHost.getHostname(), ipHost.getTelnetPort(), ipHost.isTelnetPortTls(), connectAtStartup, textScanner, loginCredentialsTag);
+ }
+
+ public CicsTerminalImpl(ICicstsManagerSpi cicstsManager, IFramework framework, ICicsRegionProvisioned cicsRegion, boolean connectAtStartup, ITextScannerManagerSpi textScanner, String loginCredentialsTag) throws TerminalInterruptedException, IpNetworkManagerException,
+ Zos3270ManagerException, ZosManagerException {
+ this(cicstsManager, framework, cicsRegion, cicsRegion.getZosImage().getIpHost(), connectAtStartup, textScanner, loginCredentialsTag);
}
public CicsTerminalImpl(ICicstsManagerSpi cicstsManager, IFramework framework, ICicsRegionProvisioned cicsRegion, boolean connectAtStartup, ITextScannerManagerSpi textScanner) throws TerminalInterruptedException, IpNetworkManagerException,
- Zos3270ManagerException {
- this(cicstsManager, framework, cicsRegion, cicsRegion.getZosImage().getIpHost(), connectAtStartup, textScanner);
+ Zos3270ManagerException, ZosManagerException {
+ this(cicstsManager, framework, cicsRegion, cicsRegion.getZosImage().getIpHost(), connectAtStartup, textScanner, "");
}
@Override
@@ -146,4 +157,9 @@ public boolean isUppercaseTranslation() throws CicstsManagerException {
}
}
-}
\ No newline at end of file
+ @Override
+ public String getLoginCredentialsTag() {
+ return this.loginCredentialsTag;
+ }
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICeciProvider.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICeciProvider.java
index 91a32e5bb..61d78ee56 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICeciProvider.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICeciProvider.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICedaProvider.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICedaProvider.java
index 08c6d1c28..dcc5d9f2b 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICedaProvider.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICedaProvider.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICemtProvider.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICemtProvider.java
index 2d50ca0d3..611112126 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICemtProvider.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICemtProvider.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionLogonProvider.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionLogonProvider.java
index 0f941b3b8..4adc1ef83 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionLogonProvider.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionLogonProvider.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioned.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioned.java
index 616664be7..9e1d6e681 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioned.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioned.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioner.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioner.java
index 450a8c103..5a44ecf71 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioner.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsRegionProvisioner.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsResourceProvider.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsResourceProvider.java
index 9334990d4..e00ba6c00 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsResourceProvider.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicsResourceProvider.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicstsManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicstsManagerSpi.java
index 42199f3c9..3b6c79737 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicstsManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ICicstsManagerSpi.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.spi;
import java.util.List;
@@ -97,4 +99,6 @@ public interface ICicstsManagerSpi {
public Map getTaggedCicsRegions();
public ICicsRegion locateCicsRegion(String tag) throws CicstsManagerException;
+
+ public List getCicsTerminals();
}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/cicsts/internal/TestCicstsManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/cicsts/internal/TestCicstsManagerImpl.java
new file mode 100644
index 000000000..2f75441e9
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/cicsts/internal/TestCicstsManagerImpl.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.cicsts.internal;
+
+import static org.assertj.core.api.Assertions.*;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Field;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.junit.Test;
+
+import dev.galasa.cicsts.CicsRegion;
+import dev.galasa.cicsts.CicsTerminal;
+import dev.galasa.cicsts.ICicsRegion;
+import dev.galasa.cicsts.ICicsTerminal;
+import dev.galasa.framework.Framework;
+import dev.galasa.framework.spi.IManager;
+import dev.galasa.framework.spi.language.GalasaTest;
+import dev.galasa.framework.spi.language.gherkin.GherkinTest;
+
+public class TestCicstsManagerImpl {
+
+ private class MockGalasaTest extends GalasaTest{
+
+ public MockGalasaTest(GherkinTest test) {
+ super(test);
+ }
+ }
+
+ private class DummyTestBad{
+
+ @CicsTerminal(cicsTag = "TERM01")
+ public ICicsTerminal terminal;
+
+ @CicsRegion(cicsTag = "REGN01")
+ public ICicsRegion cicsRegion;
+
+ }
+
+ private class mockCicstsManagerImpl extends CicstsManagerImpl{
+ public mockCicstsManagerImpl() {
+ super();
+ }
+ }
+
+ @Test
+ public void TestGenerateCicsTerminalBadReturnsError() throws Exception{
+ // Given...
+ DummyTestBad dummyTest = new DummyTestBad();
+ List managersList = new ArrayList();
+ managersList.add(new CicstsManagerImpl());
+
+ GalasaTest test = new MockGalasaTest(null);
+
+ Framework framework = new Framework();
+ CicstsManagerImpl cicsTsManager = new mockCicstsManagerImpl();
+ cicsTsManager.initialise(framework, managersList, managersList, test);
+
+ Field terminal = dummyTest.getClass().getField("terminal");
+ Field region = dummyTest.getClass().getField("cicsRegion");
+ List annotations = new ArrayList<>();
+ annotations.add(terminal.getAnnotation(CicsTerminal.class));
+ annotations.add(region.getAnnotation(CicsRegion.class));
+
+ // When...
+ Throwable thrown = catchThrowable(() -> {
+ cicsTsManager.generateCicsTerminal(terminal, annotations);
+ });
+
+ // Then...
+ assertThat(thrown).isNotNull();
+ String error = thrown.getMessage();
+ String expectedError = "Unable to setup CICS Terminal for field 'terminal', for region with tag 'TERM01'"+
+ " as a region with a matching 'cicsTag' tag was not found, or the region was not provisioned.";
+ assertThat(error).isEqualTo(expectedError);
+
+ }
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/SampleGalasaTst.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/SampleGalasaTst.java
index 46e9ffdfd..d8a7975e8 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/SampleGalasaTst.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/SampleGalasaTst.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.tests;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/TestGoldenPath.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/TestGoldenPath.java
index 1113e27a6..ab5259ea1 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/TestGoldenPath.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.manager/src/test/java/dev/galasa/tests/TestGoldenPath.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.tests;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/build.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/build.gradle
index 66b340dec..d10733d27 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/build.gradle
@@ -4,7 +4,7 @@ plugins {
description = 'Galasa CICS/TS Resource Manager'
-version = '0.25.0'
+version = '0.37.0'
dependencies {
api project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager')
@@ -12,6 +12,19 @@ dependencies {
implementation project (':galasa-managers-core-parent:dev.galasa.textscan.manager')
implementation project (':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager')
- implementation 'org.apache.commons:commons-lang3:3.8.1'
- implementation 'commons-io:commons-io:2.9.0'
+ implementation 'org.apache.commons:commons-lang3:3.14.0'
+ implementation 'commons-io:commons-io:2.16.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/settings.gradle
index 0ae497a5c..3a6ce964d 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.cicsts.resource.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.cicsts.resource.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleImpl.java
index 51bad5670..a51bc5010 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal;
import java.io.ByteArrayInputStream;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleResourceType.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleResourceType.java
index b0ad7b621..5bf89100d 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleResourceType.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsBundleResourceType.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal;
/**
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceImpl.java
index 6a4f5e983..622ba57d7 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceManagerImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceManagerImpl.java
index 22b44f2e5..7e9d98d8c 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/CicsResourceManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.resource.internal;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmprofileImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmprofileImpl.java
index 50a611b3e..440a227f9 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmprofileImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmprofileImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal;
import java.nio.file.attribute.PosixFilePermissions;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverImpl.java
index 96a58126e..9ec0e9f7e 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.resource.internal;
@@ -47,13 +49,13 @@
import dev.galasa.zosliberty.ZosLibertyServerException;
public class JvmserverImpl implements IJvmserver {
-
+
private static final Log logger = LogFactory.getLog(JvmserverImpl.class);
private CicsResourceManagerImpl cicsResourceManager;
private IZosFileHandler zosFileHandler;
private IZosLiberty zosLiberty;
-
+
private boolean shouldArchive = true;
private boolean shouldCleanup = true;
@@ -70,7 +72,7 @@ public class JvmserverImpl implements IJvmserver {
private String cicsRegionHomeDirectory;
private String cicsRegionJobname;
private String cicsRegionUserid;
-
+
private String resourceDefinitionName;
private String resourceDefinitionGroup;
private String resourceDefinitionDescription;
@@ -79,7 +81,7 @@ public class JvmserverImpl implements IJvmserver {
private JvmserverType jvmserverType = JvmserverType.UNKNOWN;
private String resourceDefinitionLerunopts;
private int resourceDefinitionThreadlimit = 15;
-
+
private IJvmprofile jvmprofile;
private String defaultWorkingDirectoryValue;
@@ -92,20 +94,20 @@ public class JvmserverImpl implements IJvmserver {
private IZosUNIXFile workingDirectory;
private IZosUNIXFile diagnosticsDirectory;
private IZosUNIXFile javaHome;
- private IZosUNIXFile logsDirectory;
- private IJvmserverLog jvmLogLog;
- private IJvmserverLog stdOutLog;
- private IJvmserverLog stdErrLog;
+ private IZosUNIXFile logsDirectory;
+ private IJvmserverLog jvmLogLog;
+ private IJvmserverLog stdOutLog;
+ private IJvmserverLog stdErrLog;
private IJvmserverLog jvmTraceLog;
-
+
private IZosLibertyServer zosLibertyServer;
private String wlpInstallDir;
private String wlpUserDir;
private String wlpOutputDir;
-
+
private int defaultTimeout = -1;
- private static final String SLASH_SYBMOL = "/";
+ private static final String SLASH_SYBMOL = "/";
private static final String SYMBOL_APPLID = "&APPLID;";
private static final String SYMBOL_CONFIGROOT = "&CONFIGROOT;";
private static final String SYMBOL_JVMSERVER = "&JVMSERVER;";
@@ -115,9 +117,9 @@ public class JvmserverImpl implements IJvmserver {
private static final String OPTION_JAVA_HOME = "JAVA_HOME";
private static final String OPTION_WORK_DIR = "WORK_DIR";
-
+
private static final String RESOURCE_TYPE_JVMSERVER = "JVMSERVER";
-
+
private static final String LOG_CEMT_PARAMETER = "Log";
private static final String LOG_PROFILE_OPTION = "JVMLOG";
private static final String LOG_FILE_SUFFIX = "dfhjvmlog";
@@ -131,29 +133,38 @@ public class JvmserverImpl implements IJvmserver {
private static final String TRACE_PROFILE_OPTION = "JVMTRACE";
private static final String TRACE_FILE_SUFFIX = "dfhjvmtrc";
- public JvmserverImpl(CicsResourceManagerImpl cicsResourceManager, ICicsRegion cicsRegion, ICicsTerminal cicsTerminal, String name, String group, String jvmprofileName, JvmserverType jvmserverType) throws CicsJvmserverResourceException {
- this.cicsResourceManager = cicsResourceManager;
+ public JvmserverImpl(CicsResourceManagerImpl cicsResourceManagerImpl, ICicsRegion cicsRegion, ICicsTerminal cicsTerminal, String name, String group) throws CicsJvmserverResourceException {
+ this.cicsResourceManager = cicsResourceManagerImpl;
this.cicsResourceManager.registerJvmserver(this);
+ this.cicsRegion = cicsRegion;
+ this.cicsZosImage = cicsRegion.getZosImage();
+
try {
this.zosFileHandler = this.cicsResourceManager.getZosFileHandler();
} catch (CicsResourceManagerException e) {
throw new CicsJvmserverResourceException("Unable to get zOS File Handler", e);
}
- this.cicsRegion = cicsRegion;
- this.cicsZosImage = cicsRegion.getZosImage();
+
setRunTemporaryUNIXPath();
this.cicsTerminal = cicsTerminal;
this.resourceDefinitionName = name;
this.resourceDefinitionGroup = group;
+ }
+
+ public JvmserverImpl(CicsResourceManagerImpl cicsResourceManagerImpl, ICicsRegion cicsRegion, ICicsTerminal cicsTerminal, String name, String group, String jvmprofileName, JvmserverType jvmserverType) throws CicsJvmserverResourceException {
+ this(cicsResourceManagerImpl, cicsRegion, cicsTerminal, name, group);
this.resourceDefinitionJvmprofile = jvmprofileName;
this.jvmserverType = jvmserverType;
this.jvmprofile = newJvmprofileFromCicsSuppliedProfile(jvmprofileName);
+
try {
this.javaHome = this.zosFileHandler.newUNIXFile(getDefaultJavaHomeValue(), cicsZosImage);
} catch (ZosUNIXFileException e) {
throw new CicsJvmserverResourceException("Unable to set JAVA_HOME", e);
}
+
this.jvmprofile.setProfileValue(OPTION_JAVA_HOME, this.javaHome.getUnixPath());
+
try {
this.workingDirectory = this.zosFileHandler.newUNIXFile(getDefaultWorkingDirectoryValue(), cicsZosImage);
} catch (ZosUNIXFileException e) {
@@ -174,28 +185,18 @@ public JvmserverImpl(CicsResourceManagerImpl cicsResourceManager, ICicsRegion ci
}
}
+
+
public JvmserverImpl(CicsResourceManagerImpl cicsResourceManagerImpl, ICicsRegion cicsRegion, ICicsTerminal cicsTerminal, String name, String group, IJvmprofile jvmprofile) throws CicsJvmserverResourceException {
- this.cicsResourceManager = cicsResourceManagerImpl;
- this.cicsResourceManager.registerJvmserver(this);
- this.cicsRegion = cicsRegion;
- this.cicsZosImage = cicsRegion.getZosImage();
- setRunTemporaryUNIXPath();
- this.cicsTerminal = cicsTerminal;
- this.resourceDefinitionName = name;
- this.resourceDefinitionGroup = group;
+ this(cicsResourceManagerImpl, cicsRegion, cicsTerminal, name, group);
+ this.jvmprofile = jvmprofile;
this.resourceDefinitionJvmprofile = jvmprofile.getProfileName();
this.jvmserverType = determineJvmserverType();
}
public JvmserverImpl(CicsResourceManagerImpl cicsResourceManagerImpl, ICicsRegion cicsRegion, ICicsTerminal cicsTerminal, String name, String group, IJvmprofile jvmprofile, IZosLibertyServer libertyServer) throws CicsJvmserverResourceException {
- this.cicsResourceManager = cicsResourceManagerImpl;
- this.cicsResourceManager.registerJvmserver(this);
- this.cicsRegion = cicsRegion;
- this.cicsZosImage = cicsRegion.getZosImage();
- setRunTemporaryUNIXPath();
- this.cicsTerminal = cicsTerminal;
- this.resourceDefinitionName = name;
- this.resourceDefinitionGroup = group;
+ this(cicsResourceManagerImpl, cicsRegion, cicsTerminal, name, group);
+ this.jvmprofile = jvmprofile;
this.resourceDefinitionJvmprofile = jvmprofile.getProfileName();
this.jvmserverType = JvmserverType.LIBERTY;
this.zosLibertyServer = libertyServer;
@@ -250,7 +251,7 @@ protected IZosLibertyServer newZosLibertyServerFromCicsSuppliedServerXml() throw
}
protected IZosLiberty getLiberty() throws CicsJvmserverResourceException {
- if (this.zosLiberty == null) {
+ if (this.zosLiberty == null) {
try {
this.zosLiberty = cicsResourceManager.getZosLiberty();
} catch (CicsResourceManagerException e) {
@@ -292,7 +293,7 @@ protected NavigableMap decendingDirectoryList(IZosUNIXFile
SortedMap directoryList = new TreeMap<>();
try {
if (directory.exists()) {
-
+
}
directoryList = directory.directoryList();
} catch (ZosUNIXFileException e) {
@@ -467,7 +468,7 @@ public void buildResourceDefinition() throws CicsJvmserverResourceException {
//TODO: Messages???
if (!resourceDefined()) {
throw new CicsJvmserverResourceException("Failed to define " + RESOURCE_TYPE_JVMSERVER + " resource definition");
- }
+ }
} catch (CicstsManagerException e) {
throw new CicsJvmserverResourceException("Unable to build " + RESOURCE_TYPE_JVMSERVER + " resource definition", e);
}
@@ -530,10 +531,10 @@ private void resetSavedValues() {
this.workingDirectory = null;
this.diagnosticsDirectory = null;
this.javaHome = null;
- this.logsDirectory = null;
- this.jvmLogLog = null;
- this.stdOutLog = null;
- this.stdErrLog = null;
+ this.logsDirectory = null;
+ this.jvmLogLog = null;
+ this.stdOutLog = null;
+ this.stdErrLog = null;
this.jvmTraceLog = null;
this.wlpInstallDir = null;
this.wlpUserDir = null;
@@ -619,7 +620,7 @@ public PurgeType disableWithEscalate(int steptimeout) throws CicsJvmserverResour
}
}
}
-
+
return purgeType;
}
@@ -817,7 +818,7 @@ public IZosUNIXFile getJavaHome() throws CicsJvmserverResourceException {
String javaHomeValue = this.jvmprofile.getProfileValue(OPTION_JAVA_HOME);
if (javaHomeValue == null) {
javaHomeValue = getDefaultJavaHomeValue();
- this.jvmprofile.setProfileValue(OPTION_JAVA_HOME, javaHomeValue);
+ this.jvmprofile.setProfileValue(OPTION_JAVA_HOME, javaHomeValue);
}
try {
this.javaHome = this.zosFileHandler.newUNIXFile(javaHomeValue, this.cicsZosImage);
@@ -834,7 +835,7 @@ public IZosUNIXFile getWorkingDirectory() throws CicsJvmserverResourceException
String workDirValue = this.jvmprofile.getProfileValue(OPTION_WORK_DIR);
if (workDirValue == null) {
workDirValue = getDefaultWorkingDirectoryValue();
- this.jvmprofile.setProfileValue(OPTION_WORK_DIR, workDirValue);
+ this.jvmprofile.setProfileValue(OPTION_WORK_DIR, workDirValue);
}
if (!workDirValue.startsWith(SLASH_SYBMOL)) {
workDirValue = getHomeDirectory() + workDirValue;
@@ -881,7 +882,7 @@ public IJvmserverLog getJvmTrace() throws CicsJvmserverResourceException {
}
@Override
- public void checkpointLogs() throws CicsJvmserverResourceException {
+ public void checkpointLogs() throws CicsJvmserverResourceException {
getJvmLog().checkpoint();
getStdOut().checkpoint();
getStdErr().checkpoint();
@@ -895,7 +896,7 @@ public List getJavaLogs() throws CicsJvmserverResourceException {
if (getWorkingDirectory().exists()) {
SortedMap directoryList = getWorkingDirectory().directoryList();
for (Entry entry : directoryList.entrySet()) {
- if (entry.getKey().matches(".*/Snap.*\\.trc$") ||
+ if (entry.getKey().matches(".*/Snap.*\\.trc$") ||
entry.getKey().matches(".*/javacore.*\\.txt$")) {
javaLogs.add(entry.getValue());
} else if(entry.getKey().matches(".*/jitdump.*\\.dmp$")) {
@@ -916,22 +917,14 @@ public void saveToResultsArchive() throws CicsJvmserverResourceException {
}
@Override
- public void saveToResultsArchive(String rasPath) throws CicsJvmserverResourceException {
- if (this.jvmprofile != null) {
- this.jvmprofile.saveToResultsArchive(rasPath);
- }
- if (this.jvmLogLog != null) {
- this.jvmLogLog.saveToResultsArchive(rasPath);
- }
- if (this.stdOutLog != null) {
- this.stdOutLog.saveToResultsArchive(rasPath);
- }
- if (this.stdErrLog != null) {
- this.stdErrLog.saveToResultsArchive(rasPath);
- }
- if (this.jvmTraceLog != null) {
- this.jvmTraceLog.saveToResultsArchive(rasPath);
- }
+ public void saveToResultsArchive(String rasPath) throws CicsJvmserverResourceException {
+ getJvmprofile().saveToResultsArchive(rasPath);
+
+ getJvmLog().saveToResultsArchive(rasPath);
+ getStdOut().saveToResultsArchive(rasPath);
+ getStdErr().saveToResultsArchive(rasPath);
+ getJvmTrace().saveToResultsArchive(rasPath);
+
saveDiagnosticsToResultsArchive(rasPath);
saveJavaLogsToResultsArchive(rasPath);
if (isLiberty()) {
@@ -944,7 +937,7 @@ public void saveToResultsArchive(String rasPath) throws CicsJvmserverResourceExc
}
@Override
- public void clearJvmLogs() throws CicsJvmserverResourceException {
+ public void clearJvmLogs() throws CicsJvmserverResourceException {
if (this.jvmLogLog != null) {
this.jvmLogLog.delete();
}
@@ -967,7 +960,7 @@ public void clearJvmLogs() throws CicsJvmserverResourceException {
}
}
}
-
+
@Override
public String toString() {
return "[JVM server] " + getName();
@@ -999,7 +992,7 @@ protected IJvmserverLog getLog(String cemtParameter, String jvmprofileOption, St
} catch (ZosBatchException | ZosUNIXFileException | CicstsManagerException e) {
throw new CicsJvmserverResourceException("Problem creating IJvmserverLog object for " + cemtParameter, e);
}
-
+
}
protected String getDdname(String logName) {
@@ -1014,7 +1007,7 @@ protected String getLogName(String cemtParameter, String jvmprofileOption, Strin
return cemtMap.get(cemtParameter);
}
}
-
+
// Try jvmprofile
if (this.jvmprofile.containsOption(jvmprofileOption)) {
String value = this.jvmprofile.getProfileValue(jvmprofileOption);
@@ -1025,18 +1018,18 @@ protected String getLogName(String cemtParameter, String jvmprofileOption, Strin
}
}
}
-
+
// Look on the file system
for(Map.Entry entry : decendingDirectoryList(getDefaultLogsDiretory()).entrySet()) {
if (entry.getKey().endsWith("." + fileSuffix)) {
return entry.getValue().getUnixPath();
}
}
-
+
throw new CicsJvmserverResourceException("Unable to establish JVM server " + cemtParameter + " log file");
-
+
}
-
+
protected boolean isDdname(String logName) {
return logName.startsWith("//DD:");
}
@@ -1099,7 +1092,7 @@ protected CicstsHashMap cemtInquire() throws CicsJvmserverResourceException {
}
return cemtMap;
}
-
+
protected String parseJvmprofileSymbols(String value) throws CicsJvmserverResourceException {
if (value.contains(SYMBOL_DATE) || value.contains(SYMBOL_TIME)) {
throw new CicsJvmserverResourceException("JVM profile options \"" + SYMBOL_DATE + "\" and \"" + SYMBOL_TIME + "\" not supported by JVM server Manager");
@@ -1109,10 +1102,10 @@ protected String parseJvmprofileSymbols(String value) throws CicsJvmserverResour
parsedValue = StringUtils.replace(parsedValue, SYMBOL_CONFIGROOT, getUsshome());
parsedValue = StringUtils.replace(parsedValue, SYMBOL_JVMSERVER, getName());
parsedValue = StringUtils.replace(parsedValue, SYMBOL_USSHOME, getUsshome());
-
+
return parsedValue;
}
-
+
protected String getUsshome() throws CicsJvmserverResourceException {
if (this.cicsUsshome == null) {
try {
@@ -1123,14 +1116,14 @@ protected String getUsshome() throws CicsJvmserverResourceException {
}
return this.cicsUsshome;
}
-
+
protected String getApplid() {
if (this.cicsApplid == null) {
this.cicsApplid = this.cicsRegion.getApplid();
}
return this.cicsApplid;
}
-
+
protected String getJvmProfileDir() throws CicsJvmserverResourceException {
if (this.cicsJvmprofileDir == null) {
try {
@@ -1141,7 +1134,7 @@ protected String getJvmProfileDir() throws CicsJvmserverResourceException {
}
return this.cicsJvmprofileDir;
}
-
+
protected String getConfigRoot() throws CicsJvmserverResourceException {
if (this.cicsConfigroot == null) {
//TOODO: get CONFIGROOT
@@ -1149,7 +1142,7 @@ protected String getConfigRoot() throws CicsJvmserverResourceException {
}
return this.cicsConfigroot;
}
-
+
protected IZosUNIXFile getDiagnosticsDirectory() throws CicsJvmserverResourceException {
if (this.diagnosticsDirectory == null) {
try {
@@ -1202,7 +1195,7 @@ protected void deleteJavaLogs() throws CicsJvmserverResourceException {
}
}
}
-
+
protected void cleanup() {
if (shouldArchive()) {
try {
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverLogImpl.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverLogImpl.java
index fa53643c7..c543c8cb3 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverLogImpl.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/JvmserverLogImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal;
import java.io.ByteArrayInputStream;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/package-info.java
index 771621da5..601ff3b2b 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/package-info.java
@@ -1,4 +1,6 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/CicstsResourcePropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/CicstsResourcePropertiesSingleton.java
index 13d38b443..1f617e1f7 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/CicstsResourcePropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/CicstsResourcePropertiesSingleton.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.resource.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/DefaultResourceTimeout.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/DefaultResourceTimeout.java
index fad58577f..4508f45fe 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/DefaultResourceTimeout.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/internal/properties/DefaultResourceTimeout.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cicsts.resource.internal.properties;
import dev.galasa.cicsts.cicsresource.CicsResourceManagerException;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/ICicsResourceManagerSpi.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/ICicsResourceManagerSpi.java
index 78bbde1c1..7bc5ee90b 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/ICicsResourceManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/ICicsResourceManagerSpi.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.resource.spi;
diff --git a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/package-info.java b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/package-info.java
index aa37a32c4..abc898288 100644
--- a/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.resource.manager/src/main/java/dev/galasa/cicsts/resource/spi/package-info.java
@@ -1,4 +1,6 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cicsts.resource.spi;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/build.gradle
index 4eaf47929..a1618c1c8 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/build.gradle
@@ -8,3 +8,16 @@ version = '0.22.0'
dependencies {
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/settings.gradle
index eef9af599..d1c9f8599 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/settings.gradle
@@ -1 +1,2 @@
rootProject.name = 'dev.galasa.cloud.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainer.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainer.java
index 7ca02c3b7..9fbd5f436 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainer.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainer.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerEnvProp.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerEnvProp.java
index d01d56c2c..46853a5ce 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerEnvProp.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerEnvProp.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerPort.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerPort.java
index 0a57a377e..055937b1f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerPort.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudContainerPort.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerException.java
index 4dd8ac000..51b8191b9 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerField.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerField.java
index b008d1565..dedf4e78c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerField.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/CloudManagerField.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud;
@@ -11,7 +13,7 @@
/**
* Annotation to capture the other cloud related annotations from the test class
*
- * @author Michael Baylis
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/ICloudContainer.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/ICloudContainer.java
index ccd15ce56..dbb1e6d5b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/ICloudContainer.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/ICloudContainer.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cloud;
import java.net.InetSocketAddress;
@@ -8,7 +10,7 @@
/**
* Cloud Container
*
- * @author Michael Baylis
+ *
*
*/
public interface ICloudContainer {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudContainerPortImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudContainerPortImpl.java
index 6a605a039..f283577ac 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudContainerPortImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudContainerPortImpl.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudManagerImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudManagerImpl.java
index 8356dd6d7..2d12a55dd 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/CloudManagerImpl.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud.internal;
@@ -47,7 +49,7 @@
/**
* The Cloud Manager
*
- * @author Michael Baylis
+ *
*
*/
@Component(service = { IManager.class })
@@ -166,7 +168,7 @@ public void provisionGenerate() throws ManagerException, ResourceUnavailableExce
*
* @param field The test field
* @param annotations any annotations with the ecosystem
- * @return a {@link IKubernetesEcosystem} ecosystem
+ * @return a {@link dev.galasa.galasaecosystem.IKubernetesEcosystem} ecosystem
* @throws InsufficientResourcesAvailableException
* @throws KubernetesManagerException if there is a problem generating a ecosystem
*/
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/CloudPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/CloudPropertiesSingleton.java
index 111172ea3..277e75b5d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/CloudPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/CloudPropertiesSingleton.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cloud.internal.properties;
import org.osgi.service.component.annotations.Activate;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverrideImage.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverrideImage.java
index bf0a24673..e3bac14bb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverrideImage.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverrideImage.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverridePlatform.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverridePlatform.java
index 3d5d3e81b..0aa1e98d6 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverridePlatform.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/ContainerOverridePlatform.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/DefaultPlatform.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/DefaultPlatform.java
index 563023aa6..6df32695f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/DefaultPlatform.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/internal/properties/DefaultPlatform.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.cloud.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerPort.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerPort.java
index 74306558f..c285ba085 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerPort.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerPort.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cloud.spi;
public interface ICloudContainerPort {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerProvider.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerProvider.java
index aa8e5fb0b..815b0bb37 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerProvider.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudContainerProvider.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cloud.spi;
import java.util.Properties;
@@ -15,7 +17,7 @@
/**
* Interface from the Cloud Manager to Cloud Container Providers
*
- * @author Michael Baylis
+ *
*
*/
public interface ICloudContainerProvider {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudManagerSpi.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudManagerSpi.java
index 7c350f8fe..faf3e4851 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.cloud.manager/src/main/java/dev/galasa/cloud/spi/ICloudManagerSpi.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.cloud.spi;
import java.util.Properties;
@@ -13,7 +15,7 @@
/**
* SPI for the Cloud Manager
*
- * @author Michael Baylis
+ *
*
*/
public interface ICloudManagerSpi {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/build.gradle
index dbcdfbf7b..936c4aeb6 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/build.gradle
@@ -4,7 +4,7 @@ plugins {
description = 'Galasa Docker Manager IVTs'
-version = '0.21.0'
+version = '0.25.0'
dependencies {
implementation project(':galasa-managers-cloud-parent:dev.galasa.docker.manager')
@@ -12,3 +12,17 @@ dependencies {
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/settings.gradle
index ca8b77c14..5a01d8d01 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.docker.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.docker.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/DockerManagerIVT.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/DockerManagerIVT.java
index e6bca5c20..963f4f8eb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/DockerManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/DockerManagerIVT.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.manager.ivt;
import static org.assertj.core.api.Assertions.assertThat;
@@ -53,7 +55,7 @@
* 8) Change config and start with ENV's and ensure they are set
* 9) Mounts a non created volume to the container and ensure all is created and mounted
*
- * @author Michael Baylis
+ *
*
*/
@Test
@@ -259,7 +261,7 @@ public void twoContainersShareVolume() throws DockerManagerException {
@Test
public void preLoadVolumeWithConfig() throws DockerManagerException, TestBundleResourceException, InterruptedException {
IDockerVolume volume = config2.getVolumeByTag("testVolume");
- InputStream in = resources.retrieveFile("resources/SampleConfig.cfg");
+ InputStream in = resources.retrieveFile("SampleConfig.cfg");
volume.LoadFile("TestConfigFile.cfg", in);
container.startWithConfig(config2);
IDockerExec cmd = container.exec("/bin/cat", "/tmp/testvol/TestConfigFile.cfg");
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/IvtException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/IvtException.java
index 16b446613..db58d1d71 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/IvtException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/java/dev/galasa/docker/manager/ivt/IvtException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/resources/SampleConfig.cfg b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/SampleConfig.cfg
similarity index 100%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/resources/SampleConfig.cfg
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/SampleConfig.cfg
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/resources/test1.html b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/test1.html
similarity index 100%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/resources/test1.html
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager.ivt/src/main/resources/test1.html
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/bnd.bnd b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/bnd.bnd
index d08eb78ed..87225772a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/bnd.bnd
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/bnd.bnd
@@ -8,6 +8,7 @@ Import-Package: com.google.gson,\
dev.galasa.framework.spi.cps,\
dev.galasa.framework.spi.creds,\
dev.galasa.framework.spi.language,\
+ dev.galasa.framework.spi.utils,\
dev.galasa.http,\
dev.galasa.http.spi,\
javax.validation.constraints;resolution:=optional,\
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/build.gradle
index 70df14f51..4d618fa2a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/build.gradle
@@ -4,12 +4,25 @@ plugins {
description = 'Galasa Docker Manager'
-version = '0.23.0'
+version = '0.34.0'
dependencies {
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
- implementation 'com.google.code.gson:gson:2.8.5'
- implementation 'commons-io:commons-io:2.9.0'
- implementation 'org.apache.commons:commons-compress:1.21'
+ implementation 'com.google.code.gson:gson:2.10.1'
+ implementation 'commons-io:commons-io:2.16.1'
+ implementation 'org.apache.commons:commons-compress:1.26.0'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/settings.gradle
index c3aa7a668..f8d922be0 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/settings.gradle
@@ -1 +1 @@
-rootProject.name = 'dev.galasa.docker.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.docker.manager'
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainer.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainer.java
index b1ceade41..1ab18f38a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainer.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainer.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
@@ -46,6 +46,7 @@
* The dockerContainerTag is used to identify the Docker Container to other Managers or Shared Environments. If a test is using multiple
* Docker Containers, each separate Docker Container must have a unique tag. If two Docker Containers use the same tag, they will refer to the
* same Docker Container.
+ * @return The tag for this container.
*/
public String dockerContainerTag() default "PRIMARY";
@@ -54,6 +55,7 @@
* include the Docker Registry as this is provided in the CPS. If using a public official image from DockerHub, then the
* image name must be prefixed with library/, for example library/httpd:latest, the Docker Manager will
* not default to the library namespace like the Docker commands do.
+ * @return the name of the image.
*/
public String image();
@@ -61,12 +63,14 @@
* The start attribute indicates whether the Docker Container should be started automatically. If the
* test needs to perform some work before the container is started, then start=false should be used, after which
* IDockerContainer.start() can be called to start the container.
+ * @return true if the docker container should be started automatically. false otherwise.
*/
public boolean start() default true;
/**
* The dockerEngineTag will be used in the future so that a container can be run on a specific Docker Engine type.
* You would not normally need to provide a Docker Engine tag.
+ * @return The docker engine tag associate with this container.
*/
public String dockerEngineTag() default "PRIMARY";
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainerConfig.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainerConfig.java
index fd3532a21..35c771396 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainerConfig.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerContainerConfig.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
@@ -16,22 +18,21 @@
*
* @galasa.annotation
*
- * @galasa.description The code>{@literal @}DockerContainerConfig annotation provides an object to manually configure certain aspects
+ * @galasa.description The {@literal @}DockerContainerConfig annotation provides an object to manually configure certain aspects
* of a containers run. Within the annotation, volumes can be requests, for both binding and provisioning. Look at the Docker volume annotation
* description for more details. The IDockerContainerConfig object it self allows for non provisioing configurations to be set at test time and
* ammended between container startups. The IDockerContainer object needs to use the startWithConfig() method to take use of the customised
* startup config
*
* @galasa.examples
- * {@literal @}DockerContainerConfig(
- * dockerVolumes = {
- @DockerVolume(mountPath = "/tmp/testvol"),
+ *
- *
- * @author James Davies
+
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD })
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerEngine.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerEngine.java
index 91e3e2ab8..c516d79f9 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerEngine.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerEngine.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerManagerException.java
index 74ff1d642..66113eaec 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerNotFoundException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerNotFoundException.java
index 44bcb49ea..a333e91f0 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerNotFoundException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerNotFoundException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerProvisionException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerProvisionException.java
index 555f42eff..528c9b642 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerProvisionException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerProvisionException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerVolume.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerVolume.java
index aed601dc2..3c1ee611c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerVolume.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/DockerVolume.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
@@ -18,34 +18,35 @@
*
* @galasa.annotation
*
- * @galasa.description The code>{@literal @}DockerVolume annotation provides the capability to bind or provision docker volumes. The
+ * @galasa.description The {@literal @}DockerVolume annotation provides the capability to bind or provision docker volumes. The
* volumes were desgined with three Docker volume use cases in mind:
- * 1. Mounting configuration - in this usecase any volume to be mounted contains configuration data and must not be edited by the running
+ *
+ *
+ *
Mounting configuration - in this usecase any volume to be mounted contains configuration data and must not be edited by the running
* container, as this could affect parallelization of test running. Therefore, in the DockerVolume annotation, if a volume name is provided
- * (aka already exists), the mount will be read only.
- * 2. Sharing volumes - when a volume is required for multiple containers to use to share data. This shoult not be a provided volume, so it
+ * (aka already exists), the mount will be read only.
+ *
Sharing volumes - when a volume is required for multiple containers to use to share data. This shoult not be a provided volume, so it
* is expected that a volume name will not be passed to the DockerVolume annotation, and the docker engine will generate a name. This
* volume will be tagged for later reference. Current limitation is that the config used to provision the volume must be used for all
- * containers wanting to mount the same volume. This results in the path having to be the same in all containers.
- * 3. Persisting data - There may be a use case for a volume to exsist outside the life span of the test. For this I have encorparated a
+ * containers wanting to mount the same volume. This results in the path having to be the same in all containers.
+ *
Persisting data - There may be a use case for a volume to exsist outside the life span of the test. For this I have encorparated a
* boolean called persist on the DockerVolume annotation. This is not indefinate, but controlled by resource management. A good default
- * would probably be 24 hours, but can utimately be set by the user with a CPS property.
+ * would probably be 24 hours, but can utimately be set by the user with a CPS property.
+ *
*
* @galasa.examples
* {@literal @}DockerContainerConfig(
* dockerVolumes = {
* // A read only mount, as a specific volume was requested.
- * @DockerVolume(volumeName = config, mountPath = "/configs"),
+ * {@literal @}DockerVolume(volumeName = config, mountPath = "/configs"),
* // A data volume that will persist past the life of the test
- * @DockerVolume(mountPath = "/data", persist = true),
+ * {@literal @}DockerVolume(mountPath = "/data", persist = true),
* // A sharing volume that will be cleanup post test.
- * @DockerVolume(mountPath = "/mnt/appShare"),
+ * {@literal @}DockerVolume(mountPath = "/mnt/appShare"),
* }
* )
* public IDockerContainerConfig config;
*
- *
- * @author James Davies
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD })
@@ -62,16 +63,14 @@
public String existingVolumeName() default "";
/**
- * Where to mount the volume on the container.
- *
- * @return
+ * @return Where to mount the volume on the container.
*/
public String mountPath();
/**
- * When wanting to reference a mount that is going to be provisioned, this tage will be used.
+ * When wanting to reference a mount that is going to be provisioned, this tag will be used.
*
- * @return
+ * @return The tag for this volume
*/
public String volumeTag();
@@ -87,7 +86,7 @@
* This field is used to protect this volume. If this volume is intended to be mounted to multiple containers, which you do not want
* editing the contents, set this to be true
*
- * @return
+ * @return true if the volume is read-only, false otherwise.
*/
public boolean readOnly() default false;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainer.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainer.java
index 3b2a3e91a..a277fb4ab 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainer.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainer.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker;
import java.util.List;
@@ -10,15 +12,13 @@
/**
* Docker Container Resource Object
- *
+ *
* Provides a resource object representing a Docker Container on a Docker
* Engine. The normal method of obtaining a Docker Container resource object is
* by using a field:-
* @DockerContainer(dockerContainerTag="a", image="galasadocker/ivp:1.0.0")
* private IDockerContainer containerA;
- * You can also retrieve a Docker Container using the
- * {@link IDockerManager#getDockerContainer(String)} method.
- *
+ *
* The following are DSE Environment properties:-
* docker.container.TAG.name=BOB to define the name the container
* is to use.
@@ -29,9 +29,6 @@
* container is to run on.
* docker.registries=http://localhost:5000 a list of Docker
* registries to search for an image
- *
- * @author Michael Baylis
- *
*/
public interface IDockerContainer {
/**
@@ -82,6 +79,7 @@ public interface IDockerContainer {
* Start the Docker Container with a provided galasa DockerContainerConfig. This will stop and remove
* any previous containers.
*
+ * @param config
* @throws DockerManagerException
*/
public void startWithConfig(IDockerContainerConfig config) throws DockerManagerException;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainerConfig.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainerConfig.java
index a89f69951..7a214621c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainerConfig.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerContainerConfig.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
@@ -9,7 +11,7 @@
/**
* An interface for the annotation object that represents the configurations for a container.
*
- * @author James Davies
+ *
*/
public interface IDockerContainerConfig {
@@ -34,9 +36,9 @@ public interface IDockerContainerConfig {
public List getVolumes();
/**
- * Return a volume from the configuration of a specfic tag.
- *
- * @return
+ * Get the volume by the tag it is known as.
+ * @param volumeTag
+ * @return a volume from the configuration of a specfic tag.
*/
public IDockerVolume getVolumeByTag(String volumeTag);
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerEngine.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerEngine.java
index 2727eacd7..de7b20d17 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerEngine.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerEngine.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerExec.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerExec.java
index 0632154bb..4899546d9 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerExec.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerExec.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
@@ -12,7 +12,7 @@
* container.
*
*
- * @author James Davies
+ *
*
*/
public interface IDockerExec {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerImage.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerImage.java
index 3185ef622..3540ce7fb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerImage.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerImage.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerManager.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerManager.java
index a4315a2e4..a973fe65c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerManager.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerManager.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerVolume.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerVolume.java
index fb5767e62..fc9636bdd 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerVolume.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/IDockerVolume.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker;
import java.io.InputStream;
@@ -8,41 +10,31 @@
/**
* A Galasa object to track, bind and provision Docker volumes with.
*
- * @author James Davies
-*/
+ */
public interface IDockerVolume {
/**
- * Returns the volume names, specified or provisioned.
- *
- * @return String volumeName
+ * @return the volume names, specified or provisioned.
*/
public String getVolumeName();
- /**
- * Return the volume tag
- *
- * @return String volumeName
+ /**
+ * @return the volume tag
*/
public String getVolumeTag();
/**
- * Returns the specified mount path.
- * @return String mountPath
+ * @return the specified mount path.
*/
public String getMountPath();
/**
- * Returns the read state of the volume.
- *
- * @return boolean readOnly
+ * @return the read state of the volume.
*/
public boolean readOnly();
/**
- * Get the Tag of the engine used to host the volume.
- *
- * @return
+ * @return the Tag of the engine used to host the volume.
*/
public String getEngineTag();
@@ -52,6 +44,7 @@ public interface IDockerVolume {
*
* @param fileName
* @param data
+ * @throws DockerManagerException
*/
public void LoadFile(String fileName, InputStream data) throws DockerManagerException;
@@ -60,6 +53,7 @@ public interface IDockerVolume {
*
* @param fileName
* @param data
+ * @throws DockerManagerException
*/
public void LoadFileAsString(String fileName, String data) throws DockerManagerException;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerConfigImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerConfigImpl.java
index fa9504302..a76703aa1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerConfigImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerConfigImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -13,7 +15,7 @@
/**
* Implementation for the object that represents the container configurations that can be edited for container startup
*
- * @author James Davies
+ *
*/
public class DockerContainerConfigImpl implements IDockerContainerConfig {
private List volumes = new ArrayList<>();
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerImpl.java
index fb2f96955..5084b1056 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.io.BufferedInputStream;
@@ -48,7 +50,7 @@
/**
* Docker Container implementation used to contain all container configurations.
*
- * @author James Davies
+ *
*/
public class DockerContainerImpl implements IDockerContainer {
@@ -415,7 +417,7 @@ public Map> getExposedPorts() throws DockerManag
/**
* Retrieves the first open socket `
*
- * @param exposed port
+ * @param exposedPort
* @return InetSocketAddress
*/
@Override
@@ -430,7 +432,7 @@ public InetSocketAddress getFirstSocketForExposedPort(String exposedPort) {
/**
* Retrieves a random open socket
*
- * @param exposed port
+ * @param exposedPort
* @return InetSocketAddress
*/
@Override
@@ -445,7 +447,7 @@ public InetSocketAddress getRandomSocketForExposedPort(String exposedPort) {
/**
* Submit exec commands to be executed on the docker container.
*
- * @param String... commands
+ * @param command
* @return IDockerExec
*/
@Override
@@ -458,7 +460,7 @@ public IDockerExec exec(String... command) throws DockerManagerException {
* timeout.
*
* @param timeout
- * @param String... commands
+ * @param command
* @return IDockerExec
*/
@Override
@@ -641,7 +643,7 @@ public DockerEngineImpl getDockerEngineImpl() {
}
/**
- * Retrieves the docker running ID
+ * @return the docker running ID
*/
public String getContainerId() {
return containerID;
@@ -676,8 +678,8 @@ public void discard() throws DockerManagerException {
/**
* Allows a file to be stored on a running docker container
*
- * @param path
- * @param InputStream
+ * @param absolutePath
+ * @param file
*/
@Override
public void storeFile(String absolutePath, InputStream file) throws DockerManagerException {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerResourceMonitor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerResourceMonitor.java
index 4bed38a19..9a115a8ac 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerContainerResourceMonitor.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -10,8 +12,6 @@
import java.util.List;
import java.util.Map;
-import com.google.gson.Gson;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -22,6 +22,7 @@
import dev.galasa.framework.spi.IDynamicStatusStoreService;
import dev.galasa.framework.spi.IFramework;
import dev.galasa.framework.spi.IResourceManagement;
+import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.http.HttpClientException;
import dev.galasa.http.HttpClientResponse;
import dev.galasa.http.IHttpClient;
@@ -30,7 +31,7 @@
/**
* Resource monitor for cleaning up orphaned containers.
*
- * @author James Davies
+ *
*/
public class DockerContainerResourceMonitor implements Runnable {
private final IFramework framework;
@@ -40,7 +41,7 @@ public class DockerContainerResourceMonitor implements Runnable {
private final Log logger = LogFactory.getLog(DockerContainerResourceMonitor.class);
- private Gson gson = new Gson();
+ private GalasaGson gson = new GalasaGson();
private Map dockerEngines = new HashMap<>();
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEngineImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEngineImpl.java
index 583f83095..5555aa703 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEngineImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEngineImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -58,6 +60,8 @@ public class DockerEngineImpl implements IDockerEngine {
*
* @param framework
* @param dockerManager
+ * @param dockerEngineTag
+ * @param dss
* @throws DockerProvisionException
*/
public DockerEngineImpl(IFramework framework, DockerManagerImpl dockerManager, String dockerEngineTag,
@@ -299,7 +303,7 @@ public JsonObject getContainer(@NotNull String containerId) throws DockerManager
/**
* Creates a container from a image name
*
- * @param containerName
+ * @param imageName
* @param imageData
* @return JsonObject
* @throws DockerManagerException
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEnvironment.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEnvironment.java
index ea5d49586..fb5f03c1f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEnvironment.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerEnvironment.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.time.Instant;
@@ -29,7 +31,7 @@
* Docker Environment. Manages the flow of both docker containers and slots to a
* specified docker engine
*
- * @author James Davies
+ *
*/
public class DockerEnvironment implements IDockerEnvironment {
private IFramework framework;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerExecImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerExecImpl.java
index 777fabe5c..24067f4a7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerExecImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerExecImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.io.IOException;
@@ -11,9 +13,8 @@
import java.util.Arrays;
import java.util.List;
-import com.google.gson.Gson;
+
import com.google.gson.JsonObject;
-import com.google.gson.JsonParser;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -21,11 +22,12 @@
import dev.galasa.docker.DockerManagerException;
import dev.galasa.docker.IDockerExec;
import dev.galasa.framework.spi.IFramework;
+import dev.galasa.framework.spi.utils.GalasaGson;
/**
* DockerExecImpl. An object passed back used to monitor and control the exec process on a container.
*
- * @author James Davies
+ *
*/
public class DockerExecImpl implements IDockerExec {
@@ -42,7 +44,7 @@ public class DockerExecImpl implements IDockerExec {
private boolean finished;
private final StringBuffer outputBuffer = new StringBuffer();
private long exitCode = -1;
- private Gson gson = new Gson();
+ private GalasaGson gson = new GalasaGson();
private static final Log logger = LogFactory.getLog(DockerExecImpl.class);
@@ -68,10 +70,9 @@ public DockerExecImpl(IFramework framework, DockerManagerImpl dockerManager, Doc
try{
ExecJson eJson = new ExecJson(false, true, true, true, this.commands);
- JsonParser parser = new JsonParser();
String json = gson.toJson(eJson);
- JsonObject cmd = (JsonObject)parser.parse(json);
+ JsonObject cmd = gson.fromJson(json, JsonObject.class);
JsonObject response = dockerEngine.sendExecCommands(dockerContainer.getContainerId(), cmd);
if(response == null){
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageBuilderImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageBuilderImpl.java
index 279200ce7..afb75c5a6 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageBuilderImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageBuilderImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.io.BufferedOutputStream;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageImpl.java
index f4b785a73..9e7aee41d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerImageImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -17,7 +19,7 @@
/**
* DockerImageImpl. Allows for the checking of images on registries and pulling of images to the docker engine.
*
- * @author James Davies
+ *
*/
public class DockerImageImpl implements IDockerImage {
private final IFramework framework;
@@ -41,7 +43,7 @@ public class DockerImageImpl implements IDockerImage {
* @param framework
* @param dockerManager
* @param dockerEngine
- * @param imageName
+ * @param fullImageName
*/
public DockerImageImpl(IFramework framework, DockerManagerImpl dockerManager,
DockerEngineImpl dockerEngine, String fullImageName) {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerField.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerField.java
index 2327aea97..b08555619 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerField.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -13,7 +13,7 @@
/**
* Annotation to capture the other docker realted annotations from the test class
*
- * @author James Davies
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerImpl.java
index ee455dd99..84aa89ddd 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerManagerImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.lang.annotation.Annotation;
@@ -51,7 +53,7 @@
* @DockerEngine - where the containers will be running, set value in CPS (see properties)
* @DockerContainer - define what container is to be run, image names mus be defined, tag can be set
*
- * @author James Davies
+ *
*/
@Component(service = { IManager.class })
public class DockerManagerImpl extends AbstractManager implements IDockerManagerSpi {
@@ -69,10 +71,10 @@ public class DockerManagerImpl extends AbstractManager implements IDockerManager
*
* Docker Environment is generated at this stage
*
- * @param IFramework - the galasa framework
- * @param List - list of all the managers
- * @param List - list of all the active managers
- * @param Class> - the test class
+ * @param framework - the galasa framework
+ * @param allManagers - list of all the managers
+ * @param activeManagers - list of all the active managers
+
* @throws ManagerException
*/
@Override
@@ -102,8 +104,8 @@ public void initialise(@NotNull IFramework framework, @NotNull List al
/**
* Makes sure that the docker manager is added to the list of active managers, and adds the dependency on http manager.
*
- * @param List - list of all the managers
- * @param List - list of the active managers
+ * @param allManagers - list of all the managers
+ * @param activeManagers - list of the active managers
* @throws ManagerException
*/
@Override
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerRegistryImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerRegistryImpl.java
index 573dd795e..076a43c2c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerRegistryImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerRegistryImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -37,7 +39,7 @@
* Docker RegistryImpl. Controls the location of where docker images can be
* pulled from
*
- * @author James Davies
+ *
*/
public class DockerRegistryImpl {
private IFramework framework;
@@ -63,7 +65,7 @@ public class DockerRegistryImpl {
*
* @param framework
* @param dockerManager
- * @param registryUrl
+ * @param registryId
* @throws DockerManagerException
*/
public DockerRegistryImpl(IFramework framework, DockerManagerImpl dockerManager, String registryId)
@@ -93,9 +95,7 @@ public DockerRegistryImpl(IFramework framework, DockerManagerImpl dockerManager,
/**
* Checks the registry for and image.
*
- * @param namespace
- * @param repository
- * @param tag
+ * @param image
* @return true/false
*/
public boolean doYouHave(DockerImageImpl image) {
@@ -128,8 +128,7 @@ public boolean doYouHave(DockerImageImpl image) {
/**
* Registry authentication
*
- * @param namespace
- * @param repository
+ * @param image
* @throws DockerManagerException
*/
public void registryAuthenticate(DockerImageImpl image) throws DockerManagerException {
@@ -153,7 +152,6 @@ public void registryAuthenticate(DockerImageImpl image) throws DockerManagerExce
* Attempts to gain a bearer token from realm, if unauthorized tries basic credentials login
* retreive token
*
- * @param client
* @return String token
* @throws DockerManagerException
*/
@@ -189,7 +187,6 @@ public String retrieveBearerToken() throws DockerManagerException {
/**
* Uses basic crednetials to gain a basic auth token.
*
- * @param client
* @return String token
* @throws DockerManagerException
*/
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerResourceManagement.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerResourceManagement.java
index ef88717ed..efa6b7266 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerResourceManagement.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -19,7 +21,7 @@
/**
* Resource management for the docker slots used to run docker containers
*
- * @author James Davies
+ *
*/
@Component(service = { IResourceManagementProvider.class })
public class DockerResourceManagement implements IResourceManagementProvider {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotImpl.java
index 4d9dfea9c..d364cedbf 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -11,7 +11,7 @@
/**
* Docker slot implemtnation to limit the number of concurrently running docker containers.
*
- * @author James Davies
+ *
*/
public class DockerSlotImpl {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotResourceMonitor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotResourceMonitor.java
index 33be01846..6b03780aa 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerSlotResourceMonitor.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
@@ -19,7 +21,7 @@
/**
* Docker resource monitor
*
- * @author James Davies
+ *
*/
public class DockerSlotResourceMonitor implements Runnable {
private final IFramework framework;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeImpl.java
index dacdc2272..df893934f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.io.ByteArrayInputStream;
@@ -23,7 +25,7 @@
/**
* A implementation of the docker volumes that will be brought up on the engine
*
- * @author James Davies
+ *
*/
public class DockerVolumeImpl implements IDockerVolume {
private DockerManagerImpl dockerManager;
@@ -204,7 +206,7 @@ private InputStream createDockerfile(String dockerfile, Map subs)
try {
String dockerfileTemplate = this.dockerManager.getArtifactManager()
.getBundleResources(this.getClass())
- .retrieveSkeletonFileAsString("resources/" + dockerfile, subs);
+ .retrieveSkeletonFileAsString(dockerfile, subs);
return new ByteArrayInputStream(dockerfileTemplate.getBytes());
} catch (IOException | TestBundleResourceException e) {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeResourceMonitor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeResourceMonitor.java
index da26c3fe4..16e38bf74 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/DockerVolumeResourceMonitor.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerEnvironment.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerEnvironment.java
index de302bfdc..31eca75e7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerEnvironment.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerEnvironment.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.util.Collection;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerImageBuilder.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerImageBuilder.java
index b8ab0cbcf..cce6b4e87 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerImageBuilder.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/IDockerImageBuilder.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import java.io.InputStream;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerJSON.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerJSON.java
index 957c0b8ca..6671c5c42 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerJSON.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerJSON.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal.json;
/**
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerLabels.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerLabels.java
index d0879c8c9..cfd303cd8 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerLabels.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/json/DockerContainerLabels.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal.json;
public class DockerContainerLabels {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerDSEEngine.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerDSEEngine.java
index b3457a5f7..241cd4d01 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerDSEEngine.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerDSEEngine.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngine.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngine.java
index 15832e6be..5f1100f23 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngine.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngine.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEnginePort.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEnginePort.java
index 56ceeb3e4..e890d1320 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEnginePort.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEnginePort.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngines.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngines.java
index 80178baf3..a9080c8ba 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngines.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerEngines.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerImagePrefix.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerImagePrefix.java
index a1f53a368..3a041bb60 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerImagePrefix.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerImagePrefix.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerLeaveRunning.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerLeaveRunning.java
index 354228853..ca1338fb7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerLeaveRunning.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerLeaveRunning.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal.properties;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerPropertiesSingleton.java
index 671697592..89975ef6e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistry.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistry.java
index cce92c2d4..385c690ec 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistry.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistry.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryCredentials.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryCredentials.java
index 034b933cc..553e4819b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryCredentials.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryCredentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryURL.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryURL.java
index f2363459e..e508bdf26 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryURL.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerRegistryURL.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerSlots.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerSlots.java
index 7face0cf9..24e19bd2d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerSlots.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/internal/properties/DockerSlots.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/package-info.java
index b9ce7810b..03b282d04 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/package-info.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* Docker Manager
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/spi/IDockerManagerSpi.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/spi/IDockerManagerSpi.java
index 208f91446..c850659ef 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/spi/IDockerManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/java/dev/galasa/docker/spi/IDockerManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.docker.spi;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/resources/CommandBusyboxDockerfile b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/CommandBusyboxDockerfile
similarity index 100%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/resources/CommandBusyboxDockerfile
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/CommandBusyboxDockerfile
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/resources/VolumeBusyboxDockerfile b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/VolumeBusyboxDockerfile
similarity index 100%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/resources/VolumeBusyboxDockerfile
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/main/resources/VolumeBusyboxDockerfile
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/test/java/dev/galasa/docker/internal/TestDockerRegistryImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/test/java/dev/galasa/docker/internal/TestDockerRegistryImpl.java
index 8fe2207ff..fe2e06a9e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/test/java/dev/galasa/docker/internal/TestDockerRegistryImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.docker.manager/src/test/java/dev/galasa/docker/internal/TestDockerRegistryImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.docker.internal;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.times;
@@ -113,7 +115,7 @@ public void retrieveBearerTokenUnauthorised() throws DockerManagerException, Mal
when(credentialsMock.getUsername()).thenReturn("testUsername");
when(credentialsMock.getPassword()).thenReturn("testPassword");
String user = "testUsername";
- String password = "testPassword";
+ String password = "testPassword"; //unit test mock password //pragma: allowlist secret
when(clientMock.setAuthorisation(user, password)).thenReturn(clientMock);
when(clientMock.build()).thenReturn(clientMock);
// Base64 encoding credentials to replicate private encoding method (generateDockerRegistryAuthStructure)
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/build.gradle
index 9a2516cb6..764190c14 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/build.gradle
@@ -12,3 +12,16 @@ dependencies {
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/settings.gradle
index dd06fe350..3607b52c9 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/settings.gradle
@@ -1 +1 @@
-rootProject.name = 'dev.galasa.kubernetes.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.kubernetes.manager.ivt'
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/IvtException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/IvtException.java
index 5a5d4412b..b436df124 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/IvtException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/IvtException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/KubernetesManagerIVT.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/KubernetesManagerIVT.java
index dfbef5d19..fdc852cb1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/KubernetesManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/java/dev/galasa/kubernetes/manager/ivt/KubernetesManagerIVT.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testSecret.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testSecret.yaml
deleted file mode 100644
index 1f7ff0098..000000000
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testSecret.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-apiVersion: v1
-kind: Secret
-metadata:
- name: testsecret
-data:
- test_password: dGVzdHBhc3N3b3Jk
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testConfigMap.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testConfigMap.yaml
similarity index 58%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testConfigMap.yaml
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testConfigMap.yaml
index 15bed58a6..cdb2e1fc8 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testConfigMap.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testConfigMap.yaml
@@ -1,3 +1,9 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
apiVersion: v1
kind: ConfigMap
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testDeployment.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testDeployment.yaml
similarity index 80%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testDeployment.yaml
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testDeployment.yaml
index eb2f31fa9..ae8c6da4a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testDeployment.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testDeployment.yaml
@@ -1,3 +1,9 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
apiVersion: apps/v1
kind: Deployment
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testPvc.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testPvc.yaml
similarity index 63%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testPvc.yaml
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testPvc.yaml
index c40874588..b8b492dfe 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testPvc.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testPvc.yaml
@@ -1,3 +1,9 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testSecret.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testSecret.yaml
new file mode 100644
index 000000000..b4fcb1faa
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testSecret.yaml
@@ -0,0 +1,12 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
+apiVersion: v1
+kind: Secret
+metadata:
+ name: testsecret
+data:
+ test_password: dGVzdHBhc3N3b3Jk #This is used in in the IVT test only #pragma: allowlist secret
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testService.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testService.yaml
similarity index 64%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testService.yaml
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testService.yaml
index f31ea0c86..1e08e9776 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testService.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testService.yaml
@@ -1,3 +1,9 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
apiVersion: v1
kind: Service
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testStatefulSet.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testStatefulSet.yaml
similarity index 81%
rename from galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testStatefulSet.yaml
rename to galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testStatefulSet.yaml
index 6aa18fa4b..8abf701c0 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/resources/testStatefulSet.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager.ivt/src/main/resources/testStatefulSet.yaml
@@ -1,3 +1,9 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
apiVersion: apps/v1
kind: StatefulSet
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/bnd.bnd b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/bnd.bnd
index b16ce386f..8cdd99309 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/bnd.bnd
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/bnd.bnd
@@ -1,15 +1,13 @@
-snapshot: ${tstamp}
Bundle-Name: Galasa Kubernetes Manager
Export-Package: dev.galasa.kubernetes,dev.galasa.kubernetes.spi
-Import-Package: com.google.gson,\
- com.google.gson.reflect,\
- com.google.gson.stream,\
- dev.galasa,\
+Import-Package: dev.galasa,\
dev.galasa.framework,\
dev.galasa.framework.spi,\
dev.galasa.framework.spi.cps,\
dev.galasa.framework.spi.creds,\
dev.galasa.framework.spi.language,\
+ dev.galasa.framework.spi.utils,\
dev.galasa.kubernetes,\
dev.galasa.cloud,\
dev.galasa.cloud.spi,\
@@ -24,29 +22,29 @@ Import-Package: com.google.gson,\
org.xml.sax.helpers
Embed-Transitive: true
Embed-Dependency: *;scope=compile
--includeresource: bcpkix-jdk15on-1.69.jar; lib:=true,\
- bcprov-ext-jdk15on-1.69.jar; lib:=true,\
- bcprov-jdk15on-1.69.jar; lib:=true,\
- client-java-14.0.0.jar; lib:=true,\
- client-java-api-14.0.0.jar; lib:=true,\
- client-java-proto-14.0.0.jar; lib:=true,\
+-includeresource: bcpkix-jdk18on-1.75.jar; lib:=true,\
+ bcprov-jdk18on-1.75.jar; lib:=true,\
+ bcutil-jdk18on-1.75.jar; lib:=true,\
+ client-java-17.0.0.jar; lib:=true,\
+ client-java-api-17.0.0.jar; lib:=true,\
+ client-java-proto-17.0.0.jar; lib:=true,\
commons-codec-1.15.jar; lib:=true,\
commons-collections4-4.4.jar; lib:=true,\
- commons-lang3-3.1.jar; lib:=true,\
- error_prone_annotations-2.5.1.jar; lib:=true,\
- gson-2.7.jar; lib:=true,\
+ commons-lang3-3.14.0.jar; lib:=true,\
+ commons-compress-1.26.0.jar; lib:=true,\
+ gson-2.10.jar; lib:=true,\
gson-fire-1.8.5.jar; lib:=true,\
- guava-30.1.1-jre.jar; lib:=true,\
- j2objc-annotations-1.3.jar; lib:=true,\
javax.annotation-api-1.3.2.jar; lib:=true,\
jsr305-3.0.2.jar; lib:=true,\
- kotlin-stdlib-1.4.10.jar; lib:=true,\
- kotlin-stdlib-common-1.4.10.jar; lib:=true,\
- logging-interceptor-4.9.1.jar; lib:=true,\
- okhttp-4.9.1.jar; lib:=true,\
- okio-jvm-2.8.0.jar; lib:=true,\
- protobuf-java-3.19.1.jar; lib:=true,\
- slf4j-api-1.7.32.jar; lib:=true,\
- snakeyaml-1.29.jar; lib:=true,\
- swagger-annotations-1.6.3.jar; lib:=true
+ kotlin-osgi-bundle-1.7.22.jar; lib:=true,\
+ logging-interceptor-4.10.0.jar; lib:=true,\
+ okhttp-4.10.0.jar; lib:=true,\
+ okio-jvm-3.0.0.jar; lib:=true,\
+ protobuf-java-3.21.10.jar; lib:=true,\
+ slf4j-api-2.0.5.jar; lib:=true,\
+ jose4j-0.9.2.jar; lib:=true,\
+ simpleclient-0.15.0.jar; lib:=true,\
+ simpleclient_httpserver-0.15.0.jar; lib:=true,\
+ snakeyaml-2.0.jar; lib:=true,\
+ swagger-annotations-1.6.9.jar; lib:=true
-fixupmessages "Classes found in the wrong directory"; restrict:=error; is:=warning
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/build.gradle
index d6d25476c..58723d23e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/build.gradle
@@ -4,25 +4,15 @@ plugins {
description = 'Galasa Kubernetes Manager'
-version = '0.22.0'
+version = '0.34.0'
dependencies {
api project(':galasa-managers-cloud-parent:dev.galasa.cloud.manager')
- implementation ('org.bouncycastle:bcpkix-jdk15on') {
+ implementation ('org.bouncycastle:bcpkix-jdk18on') {
version {
- strictly '1.69'
- }
- }
- implementation ('org.bouncycastle:bcprov-ext-jdk15on') {
- version {
- strictly '1.69'
- }
- }
- implementation ('com.google.guava:guava') {
- version {
- strictly '30.1.1-jre'
+ strictly '1.75'
}
}
implementation ('com.google.code.findbugs:jsr305') {
@@ -32,12 +22,12 @@ dependencies {
}
implementation ('com.google.code.gson:gson'){
version {
- strictly '2.7'
+ strictly '2.10'
}
}
implementation ('org.apache.commons:commons-lang3'){
version {
- strictly '3.1'
+ strictly '3.14.0'
}
}
implementation ('commons-codec:commons-codec'){
@@ -47,14 +37,33 @@ dependencies {
}
implementation ('org.yaml:snakeyaml'){
version {
- strictly '1.29'
+ strictly '2.0'
}
}
implementation ('org.apache.commons:commons-compress') {
version {
- strictly '1.21'
+ strictly '1.26.0'
}
}
- implementation 'io.kubernetes:client-java:14.0.0'
- implementation 'commons-io:commons-io:2.9.0'
+ implementation 'io.prometheus:simpleclient:0.15.0'
+ implementation 'io.prometheus:simpleclient_httpserver:0.15.0'
+ implementation 'com.squareup.okhttp3:okhttp:4.10.0'
+ implementation 'com.squareup.okio:okio-jvm:3.0.0'
+ implementation 'org.jetbrains.kotlin:kotlin-osgi-bundle:1.7.22'
+ implementation 'io.kubernetes:client-java:17.0.0'
+ implementation 'commons-io:commons-io:2.16.1'
}
+
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/account.sh b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/account.sh
index f7f03a083..41ae931d0 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/account.sh
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/account.sh
@@ -1,5 +1,11 @@
#!/bin/sh
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
kubectl -n galasa1 create serviceaccount galasa
kubectl -n galasa1 get serviceaccounts galasa -o yaml
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/namespaces.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/namespaces.yaml
index 9a46bfde3..1b5a13b6e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/namespaces.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/namespaces.yaml
@@ -1,4 +1,9 @@
-#Create a number of namespaces to be used by Galasa
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+
apiVersion: v1
kind: Namespace
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/rbac.yaml b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/rbac.yaml
index 760a7659e..8069cf64b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/rbac.yaml
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/examples/rbac.yaml
@@ -1,3 +1,8 @@
+#
+# Copyright contributors to the Galasa project
+#
+# SPDX-License-Identifier: EPL-2.0
+#
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/settings.gradle
index 7c972a99f..56b66953c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.kubernetes.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.kubernetes.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IConfigMap.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IConfigMap.java
index a50661e33..5fce0ede2 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IConfigMap.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IConfigMap.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
/**
* Represents a ConfigMap resource
*
- * @author Michael Baylis
+ *
*
*/
public interface IConfigMap extends IResource {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IDeployment.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IDeployment.java
index 02a66986c..773d0c7c7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IDeployment.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IDeployment.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
/**
* Represent a Deployment resource
*
- * @author Michael Baylis
+ *
*
*/
public interface IDeployment extends IReplicaSet {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IKubernetesNamespace.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IKubernetesNamespace.java
index 4d13b5ff3..b92672414 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IKubernetesNamespace.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IKubernetesNamespace.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
@@ -11,7 +11,7 @@
* This is the main interface to a provisioned Kubernetes namespace on an infrastructure cluster.
* Access to the Object is via the {@link KubernetesNamespace} annotation or the SPI.
*
- * @author Michael Baylis
+ *
*
*/
public interface IKubernetesNamespace {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPersistentVolumeClaim.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPersistentVolumeClaim.java
index 4368873d6..5e3c08e0e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPersistentVolumeClaim.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPersistentVolumeClaim.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
/**
* Represents a PersistentVolumeClaim
*
- * @author Michael Baylis
+ *
*
*/
public interface IPersistentVolumeClaim extends IResource {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPodLog.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPodLog.java
index 69237df02..6a107f9bf 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPodLog.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IPodLog.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
@@ -9,7 +9,7 @@
/**
* Holder for a Pod Log
*
- * @author Michael Baylis
+ *
*
*/
public interface IPodLog {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IReplicaSet.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IReplicaSet.java
index 120a38ac1..6ee846ee4 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IReplicaSet.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IReplicaSet.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
@@ -10,7 +10,7 @@
/**
* Represents a resource that utilises ReplicatSets, ie Deployment and StatefulSet
*
- * @author mikebyls
+ *
*
*/
public interface IReplicaSet extends IResource {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IResource.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IResource.java
index 3cf7e00a9..039bf8915 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IResource.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IResource.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
@@ -9,7 +9,7 @@
* Abstracts a Kubernetes Resource, so that the test is not dependent of whatever Kubernetes client the
* Kubernetes Manager decides to use.
*
- * @author Michael Baylis
+ *
*
*/
public interface IResource {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/ISecret.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/ISecret.java
index 246f83448..40ff3cdc7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/ISecret.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/ISecret.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
/**
* Represents a Secret resource
*
- * @author Michael Baylis
+ *
*
*/
public interface ISecret extends IResource {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IService.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IService.java
index 771f45d81..0e175047b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IService.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IService.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
@@ -12,7 +12,7 @@
/**
* Represents a Service resource
*
- * @author Michael Baylis
+ *
*
*/
public interface IService extends IResource {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IStatefulSet.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IStatefulSet.java
index 8d58423a7..82b13dbcb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IStatefulSet.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/IStatefulSet.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
/**
* Represents a StatefulSet resource
*
- * @author Michael Baylis
+ *
*
*/
public interface IStatefulSet extends IReplicaSet {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesManagerException.java
index 29cbe65d8..34439aee1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesNamespace.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesNamespace.java
index 27e7aa014..fac8bf3ec 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesNamespace.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/KubernetesNamespace.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesClusterImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesClusterImpl.java
index 3eb4135db..bd31c0d6f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesClusterImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesClusterImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal;
@@ -17,7 +19,6 @@
import org.apache.commons.logging.LogFactory;
import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
import dev.galasa.ICredentials;
import dev.galasa.ICredentialsToken;
@@ -27,6 +28,7 @@
import dev.galasa.framework.spi.InsufficientResourcesAvailableException;
import dev.galasa.framework.spi.creds.CredentialsException;
import dev.galasa.framework.spi.creds.ICredentialsService;
+import dev.galasa.framework.spi.utils.GalasaGsonBuilder;
import dev.galasa.kubernetes.KubernetesManagerException;
import dev.galasa.kubernetes.internal.properties.KubernetesCredentials;
import dev.galasa.kubernetes.internal.properties.KubernetesMaxSlots;
@@ -43,7 +45,7 @@
/**
* Represents a Kubernetes Cluster
*
- * @author Michael Baylis
+ *
*
*/
public class KubernetesClusterImpl {
@@ -226,18 +228,20 @@ public synchronized ApiClient getApi() throws KubernetesManagerException {
private static void applyNewGson(ApiClient apiClient) {
JSON json = apiClient.getJSON();
- Gson gson = json.getGson();
+ Gson existingGson = json.getGson();
- GsonBuilder newGsonBuilder = JSON.createGson();
- newGsonBuilder.registerTypeAdapter(OffsetDateTime.class, gson.getAdapter(OffsetDateTime.class));
- newGsonBuilder.registerTypeAdapter(Date.class, gson.getAdapter(Date.class));
- newGsonBuilder.registerTypeAdapter(java.sql.Date.class, gson.getAdapter(java.sql.Date.class));
- newGsonBuilder.registerTypeAdapter(byte[].class, gson.getAdapter(byte[].class));
- newGsonBuilder.registerTypeAdapter(Quantity.class, new Quantity.QuantityAdapter());
- newGsonBuilder.registerTypeAdapter(IntOrString.class, new IntOrString.IntOrStringAdapter());
- Gson newGson = newGsonBuilder.create();
+ /* This section has not been incorporated into the GalasaGsonWrapper as it involves kubernetes packages
+ * and would result in a circullar refernce.
+ */
+ GalasaGsonBuilder newGsonBuilder = new GalasaGsonBuilder()
+ .registerTypeAdapter(OffsetDateTime.class, existingGson.getAdapter(OffsetDateTime.class))
+ .registerTypeAdapter(Date.class, existingGson.getAdapter(Date.class))
+ .registerTypeAdapter(java.sql.Date.class, existingGson.getAdapter(java.sql.Date.class))
+ .registerTypeAdapter(byte[].class, existingGson.getAdapter(byte[].class))
+ .registerTypeAdapter(Quantity.class, new Quantity.QuantityAdapter())
+ .registerTypeAdapter(IntOrString.class, new IntOrString.IntOrStringAdapter());
- json.setGson(newGson);
+ json.setGson(newGsonBuilder.getGson());
}
/**
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerField.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerField.java
index 4016f1ebb..6401563c6 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerField.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal;
@@ -13,7 +13,7 @@
/**
* Annotation to identify manager controlled annotated fields
*
- * @author Michael Baylis
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerImpl.java
index 8371ffb54..d07055be7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal;
@@ -53,7 +55,7 @@
/**
* The Kubernetes Manager implementation
*
- * @author Michael Baylis
+ *
*
*/
@Component(service = { IManager.class })
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceImpl.java
index 99894fb2f..315941ce5 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal;
@@ -78,7 +80,7 @@
*
* See example scripts in examples/ to see how to create a name space with the necessary rbac.
*
- * @author Michael Baylis
+ *
*
*/
public class KubernetesNamespaceImpl implements IKubernetesNamespace {
@@ -140,7 +142,7 @@ public void initialiseNamespace() throws KubernetesManagerException {
addRunLabel(metadata);
try {
- api.createNamespacedConfigMap(this.namespaceId, configMap, null, null, null);
+ api.createNamespacedConfigMap(this.namespaceId, configMap, null, null, null, null);
} catch(ApiException e) {
if (e.getCode() == 409) {
throw new KubernetesManagerException("The allocated namespace " + this.namespaceId + " on cluster " + this.cluster.getId() + " is dirty, the configmap galasa still exists", e);
@@ -422,7 +424,7 @@ public IResource createResource(@NotNull String yaml) throws KubernetesManagerEx
spec.setStorageClassName(storageClass);
}
- V1PersistentVolumeClaim actualPvc = api.createNamespacedPersistentVolumeClaim(this.namespaceId, persistentVolumeClaim, null, null, null);
+ V1PersistentVolumeClaim actualPvc = api.createNamespacedPersistentVolumeClaim(this.namespaceId, persistentVolumeClaim, null, null, null, null);
logger.debug("PersistentVolumeClaim " + actualPvc.getMetadata().getName() + " created in namespace " + this.namespaceId + " on cluster " + this.cluster.getId());
@@ -443,7 +445,7 @@ private void addRunLabel(V1ObjectMeta metadata) {
addRunLabel(configMap.getMetadata());
CoreV1Api api = new CoreV1Api(cluster.getApi());
- V1ConfigMap actualConfig = api.createNamespacedConfigMap(namespaceId, configMap, null, null, null);
+ V1ConfigMap actualConfig = api.createNamespacedConfigMap(namespaceId, configMap, null, null, null, null);
logger.debug("ConfigMap " + actualConfig.getMetadata().getName() + " created in namespace " + this.namespaceId + " on cluster " + this.cluster.getId());
@@ -458,7 +460,7 @@ private void addRunLabel(V1ObjectMeta metadata) {
addRunLabel(secret.getMetadata());
CoreV1Api api = new CoreV1Api(cluster.getApi());
- V1Secret actualSecret = api.createNamespacedSecret(namespaceId, secret, null, null, null);
+ V1Secret actualSecret = api.createNamespacedSecret(namespaceId, secret, null, null, null, null);
logger.debug("Secret " + actualSecret.getMetadata().getName() + " created in namespace " + this.namespaceId + " on cluster " + this.cluster.getId());
@@ -472,7 +474,7 @@ private void addRunLabel(V1ObjectMeta metadata) {
addRunLabel(service.getMetadata());
CoreV1Api api = new CoreV1Api(cluster.getApi());
- V1Service actualService = api.createNamespacedService(namespaceId, service, null, null, null);
+ V1Service actualService = api.createNamespacedService(namespaceId, service, null, null, null, null);
logger.debug("Service " + actualService.getMetadata().getName() + " created in namespace " + this.namespaceId + " on cluster " + this.cluster.getId());
@@ -495,7 +497,7 @@ private void addRunLabel(V1ObjectMeta metadata) {
AppsV1Api api = new AppsV1Api(cluster.getApi());
- V1Deployment actualDeployment = api.createNamespacedDeployment(namespaceId, deployment, null, null, null);
+ V1Deployment actualDeployment = api.createNamespacedDeployment(namespaceId, deployment, null, null, null, null);
logger.debug("Deployment " + actualDeployment.getMetadata().getName() + " created in namespace " + this.namespaceId + " on cluster " + this.cluster.getId());
@@ -550,7 +552,7 @@ private void addRunLabel(V1ObjectMeta metadata) {
- V1StatefulSet actualStatefulSet = api.createNamespacedStatefulSet(namespaceId, statefulSet, null, null, null);
+ V1StatefulSet actualStatefulSet = api.createNamespacedStatefulSet(namespaceId, statefulSet, null, null, null, null);
logger.debug("StatefulSet " + actualStatefulSet.getMetadata().getName() + " created in namespace " + this.namespaceId + " on cluster " + this.cluster.getId());
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceResourceMonitor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceResourceMonitor.java
index 051e3ac60..2fac88e36 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesNamespaceResourceMonitor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal;
@@ -21,7 +21,7 @@
/**
* Clean up namespaces when a run is finished with it.
*
- * @author Michael Baylis
+ *
*
*/
public class KubernetesNamespaceResourceMonitor implements Runnable {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesResourceManagement.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesResourceManagement.java
index b175c9bb6..8d5b051d2 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/KubernetesResourceManagement.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal;
@@ -20,7 +20,7 @@
/**
* Initialise the Resource Management routines for the Kubernetes Manager
*
- * @author Michael Baylis
+ *
*
*/
@Component(service= {IResourceManagementProvider.class})
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesClusters.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesClusters.java
index b6f74ac14..b6b0fa0c2 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesClusters.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesClusters.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesCredentials.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesCredentials.java
index c6cc87c5b..b08193ab5 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesCredentials.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesCredentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesMaxSlots.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesMaxSlots.java
index 6c8453757..748931be7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesMaxSlots.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesMaxSlots.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaceTagSharedEnvironment.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaceTagSharedEnvironment.java
index c52ad3646..8bfcbc29c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaceTagSharedEnvironment.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaceTagSharedEnvironment.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaces.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaces.java
index 76f1867cd..65d774566 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaces.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNamespaces.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNodePortProxy.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNodePortProxy.java
index b506846c5..8738f4f8a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNodePortProxy.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesNodePortProxy.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesPropertiesSingleton.java
index cb06105da..2d2a0abbc 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
@@ -15,7 +15,7 @@
/**
* Kubernetes Manager CPS singleton
*
- * @author Michael Baylis
+ *
*
*/
@Component(service = KubernetesPropertiesSingleton.class, immediate = true)
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesStorageClass.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesStorageClass.java
index 34e2484f8..0b6dae0b1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesStorageClass.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesStorageClass.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesUrl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesUrl.java
index 850d8abcf..597f9c4f9 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesUrl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesUrl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesValidateCertificate.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesValidateCertificate.java
index 27cd6835c..93e98200c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesValidateCertificate.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/properties/KubernetesValidateCertificate.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ConfigMapImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ConfigMapImpl.java
index fd4c4238a..2f02cf20c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ConfigMapImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ConfigMapImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -14,7 +14,7 @@
/**
* ConfigMap implementation
*
- * @author Michael Baylis
+ *
*
*/
public class ConfigMapImpl implements IConfigMap {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/DeploymentImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/DeploymentImpl.java
index 9cbef09b7..4951f1c78 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/DeploymentImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/DeploymentImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -17,7 +17,7 @@
/**
* Deployment Implementation
*
- * @author Michael Baylis
+ *
*
*/
public class DeploymentImpl extends ReplicaSetHolder implements IDeployment {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PersistentVolumeClaimImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PersistentVolumeClaimImpl.java
index 10146fbff..649862a8d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PersistentVolumeClaimImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PersistentVolumeClaimImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -14,7 +14,7 @@
/**
* PersistentVolumeClaim implementation
*
- * @author Michael Baylis
+ *
*
*/
public class PersistentVolumeClaimImpl implements IPersistentVolumeClaim {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PodLogImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PodLogImpl.java
index 256ec2a11..7921c71ac 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PodLogImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/PodLogImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -10,7 +10,7 @@
/**
* A holder for the Pod Log
*
- * @author Michael Baylis
+ *
*
*/
public class PodLogImpl implements IPodLog {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ReplicaSetHolder.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ReplicaSetHolder.java
index d66117775..ac4c196a8 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ReplicaSetHolder.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ReplicaSetHolder.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -20,7 +22,7 @@
/**
* ReplicaSet type resource implementation, ie Deployment/StatefulSet
*
- * @author Michael Baylis
+ *
*
*/
public abstract class ReplicaSetHolder {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/SecretImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/SecretImpl.java
index f76dce47c..013d9075d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/SecretImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/SecretImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -14,7 +14,7 @@
/**
* Secret implementation
*
- * @author Michael Baylis
+ *
*
*/
public class SecretImpl implements ISecret {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ServiceImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ServiceImpl.java
index d5ee2c5c0..e62e01339 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ServiceImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/ServiceImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -19,7 +19,7 @@
/**
* Service implementations
*
- * @author Michael Baylis
+ *
*
*/
public class ServiceImpl implements IService {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/StatefulSetImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/StatefulSetImpl.java
index b4c745904..5e1ec14c2 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/StatefulSetImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/StatefulSetImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -16,7 +18,7 @@
/**
* StatefulSet implementation
*
- * @author Michael Baylis
+ *
*
*/
public class StatefulSetImpl extends ReplicaSetHolder implements IStatefulSet {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/Utility.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/Utility.java
index fab9b6e3a..0c7090223 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/Utility.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/internal/resources/Utility.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.internal.resources;
@@ -16,7 +16,7 @@
/**
* Utility class for routines that are missing the kubernetes client
*
- * @author Michael Baylis
+ *
*
*/
public class Utility {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/package-info.java
index bafad6750..e62a98738 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/package-info.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* Kubernetes Manager
*
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/spi/IKubernetesManagerSpi.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/spi/IKubernetesManagerSpi.java
index e59c0fb11..c7c00ac07 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/spi/IKubernetesManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.kubernetes.manager/src/main/java/dev/galasa/kubernetes/spi/IKubernetesManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.kubernetes.spi;
@@ -13,7 +13,7 @@
* Provides the SPI for the Kubernetes Manager for Manager to Manager communication.
* Should not be used by Test code
*
- * @author Michael Baylis
+ *
*
*/
public interface IKubernetesManagerSpi {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/build.gradle
index 85156086d..40e1514aa 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/build.gradle
@@ -8,3 +8,16 @@ version = '0.21.0'
dependencies {
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/settings.gradle
index c1d966552..9b1e91a3e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.liberty.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.liberty.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServer.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServer.java
index 11ecf0f0a..77f809da1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServer.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServer.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.liberty;
public interface ILibertyServer {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServerXml.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServerXml.java
index eaa9fc043..227107ff4 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServerXml.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/ILibertyServerXml.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.liberty;
public interface ILibertyServerXml {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyManagerException.java
index d541e2d2d..5835f2151 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.liberty;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyServerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyServerException.java
index d2b308fe0..c4b085a31 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyServerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/LibertyServerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.liberty;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/package-info.java
index fb6cb951b..3ccfdc221 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/package-info.java
@@ -1,6 +1,6 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.liberty;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/ILibertyServerSpi.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/ILibertyServerSpi.java
index 1ad9e3d78..6d011bd49 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/ILibertyServerSpi.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/ILibertyServerSpi.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.liberty.spi;
public interface ILibertyServerSpi {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/package-info.java
index 2b60015ad..6e10b8f91 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.liberty.manager/src/main/java/dev/galasa/liberty/spi/package-info.java
@@ -1,6 +1,6 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.liberty.spi;
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/build.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/build.gradle
index 19f142723..367e5c145 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/build.gradle
@@ -4,13 +4,27 @@ plugins {
description = 'Galasa Openstack Manager'
-version = '0.21.0'
+version = '0.36.0'
dependencies {
api project(':galasa-managers-comms-parent:dev.galasa.ipnetwork.manager')
implementation project(':galasa-managers-unix-parent:dev.galasa.linux.manager')
implementation project(':galasa-managers-windows-parent:dev.galasa.windows.manager')
implementation 'org.apache.httpcomponents:httpclient-osgi:4.5.13'
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'com.google.code.gson:gson:2.10.1'
implementation 'io.prometheus:simpleclient:0.6.0'
}
+
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/settings.gradle b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/settings.gradle
index 8b59c21ce..8909e3a50 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.openstack.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.openstack.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackLinuxManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackLinuxManagerException.java
index 2ebd97dbe..cca46253d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackLinuxManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackLinuxManagerException.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.openstack.manager;
import dev.galasa.linux.LinuxManagerException;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackManagerException.java
index e5dc0ff91..31d86e364 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackWindowsManagerException.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackWindowsManagerException.java
index 18899b423..512776c2f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackWindowsManagerException.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/OpenstackWindowsManagerException.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.openstack.manager;
import dev.galasa.windows.WindowsManagerException;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/FloatingIpResourceMonitor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/FloatingIpResourceMonitor.java
index 209116ab0..a0f77cf22 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/FloatingIpResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/FloatingIpResourceMonitor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackHttpClient.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackHttpClient.java
index 2bdbbff08..333a1e9df 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackHttpClient.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackHttpClient.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
@@ -26,13 +26,11 @@
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-
import dev.galasa.ICredentials;
import dev.galasa.ICredentialsUsernamePassword;
import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.IFramework;
+import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.openstack.manager.OpenstackManagerException;
import dev.galasa.openstack.manager.internal.json.Api;
import dev.galasa.openstack.manager.internal.json.Auth;
@@ -78,7 +76,7 @@ public class OpenstackHttpClient {
private String openstackComputeUri;
private String openstackNetworkUri;
- private Gson gson = new GsonBuilder().setPrettyPrinting().create();
+ private GalasaGson gson = new GalasaGson();
protected OpenstackHttpClient(IFramework framework) throws ConfigurationPropertyStoreException {
this.framework = framework;
@@ -241,7 +239,7 @@ public Server findServerByName(@NotNull String serverName) throws OpenstackManag
try {
checkToken();
- // *** Retrieve a list of the networks available and select one
+ // *** Retrieve a list of the servers available and select one
HttpGet get = new HttpGet(this.openstackComputeUri + "/servers");
get.addHeader(this.openstackToken.getHeader());
@@ -540,9 +538,10 @@ protected String getImageId(@NotNull String image) throws OpenstackManagerExcept
try {
checkToken();
- // *** Retrieve a list of the images
-
- HttpGet get = new HttpGet(this.openstackImageUri + "/v2.5/images");
+ /* Attempt to retrieve the image ID we want from Openstack using the image name */
+ String uri = this.openstackImageUri + "/v2/images?name=" + image;
+ logger.trace("Attempting to get the image " + image + " from " + uri);
+ HttpGet get = new HttpGet(uri);
get.addHeader(this.openstackToken.getHeader());
try (CloseableHttpResponse response = httpClient.execute(get)) {
@@ -553,17 +552,20 @@ protected String getImageId(@NotNull String image) throws OpenstackManagerExcept
throw new OpenstackManagerException("OpenStack list image failed - " + status);
}
+ /* Even though we are searching by image name, the JSON returned is still an array of images */
Images images = gson.fromJson(entity, Images.class);
- if (images != null && images.images != null) {
- for (Image i : images.images) {
- if (i.name != null) {
+ if (images != null & images.images != null) {
+ for (Image i :images.images){
+ if (i.name != null && i.name != ""){
if (image.equals(i.name)) {
+ logger.trace("Image " + image + " found");
return i.id;
}
}
}
- }
+ }
}
+ logger.trace("Image " + image + " wasn't found in Openstack");
return null;
} catch (OpenstackManagerException e) {
throw e;
@@ -576,7 +578,7 @@ protected String getFlavourId(@NotNull String flavour) throws OpenstackManagerEx
try {
checkToken();
- // *** Retrieve a list of the images
+ // *** Retrieve a list of the flavours
HttpGet get = new HttpGet(this.openstackComputeUri + "/flavors");
get.addHeader(this.openstackToken.getHeader());
@@ -586,7 +588,7 @@ protected String getFlavourId(@NotNull String flavour) throws OpenstackManagerEx
String entity = EntityUtils.toString(response.getEntity());
if (status.getStatusCode() != HttpStatus.SC_OK) {
- throw new OpenstackManagerException("OpenStack list image failed - " + status);
+ throw new OpenstackManagerException("OpenStack list flavour failed - " + status);
}
Flavors flavours = gson.fromJson(entity, Flavors.class);
@@ -631,7 +633,7 @@ public Floatingip allocateFloatingip(Port port, Network network) throws Openstac
String entity = EntityUtils.toString(response.getEntity());
if (status.getStatusCode() != HttpStatus.SC_CREATED) {
- throw new OpenstackManagerException("OpenStack list image failed - " + status);
+ throw new OpenstackManagerException("OpenStack create floating ip failed - " + status);
}
FloatingipRequestResponse fipResponse = this.gson.fromJson(entity, FloatingipRequestResponse.class);
@@ -648,6 +650,7 @@ public Floatingip allocateFloatingip(Port port, Network network) throws Openstac
}
public Network findExternalNetwork(String externalNetwork) throws OpenstackManagerException {
+
try {
checkToken();
@@ -669,10 +672,6 @@ public Network findExternalNetwork(String externalNetwork) throws OpenstackManag
for (Network network : networks.networks) {
if (externalNetwork != null && externalNetwork.equals(network.name)) {
return network;
- } else {
- if (network.route_external) {
- return network;
- }
}
}
}
@@ -682,7 +681,7 @@ public Network findExternalNetwork(String externalNetwork) throws OpenstackManag
} catch (OpenstackManagerException e) {
throw e;
} catch (Exception e) {
- throw new OpenstackManagerException("Unable to list floating ips ", e);
+ throw new OpenstackManagerException("Unable to list networks ", e);
}
}
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackIpHost.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackIpHost.java
index e1be1dfea..225cd50ab 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackIpHost.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackIpHost.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackLinuxImageImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackLinuxImageImpl.java
index 5e7ace757..b4f735753 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackLinuxImageImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackLinuxImageImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.openstack.manager.internal;
import java.nio.file.FileSystem;
@@ -81,10 +83,14 @@ public void build() throws OpenstackManagerException, ConfigurationPropertyStore
+ this.tag);
String flavor = LinuxFlavor.get(this.image);
+ logger.trace("The Linux flavor is " + flavor);
+
+ String imageName = LinuxName.get(this.image);
+ logger.trace("The image name is " + imageName);
Server server = new Server();
server.name = this.instanceName;
- server.imageRef = getOpenstackHttpClient().getImageId(LinuxName.get(this.image));
+ server.imageRef = getOpenstackHttpClient().getImageId(imageName);
server.flavorRef = getOpenstackHttpClient().getFlavourId(flavor);
server.availability_zone = LinuxAvailablityZone.get(this.image);
server.metadata = new GalasaMetadata();
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackManagerImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackManagerImpl.java
index e2e7f94f1..472596e15 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackManagerImpl.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
@@ -18,7 +20,6 @@
import org.osgi.service.component.annotations.Component;
import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
import dev.galasa.ManagerException;
import dev.galasa.framework.spi.AbstractManager;
@@ -35,6 +36,7 @@
import dev.galasa.framework.spi.InsufficientResourcesAvailableException;
import dev.galasa.framework.spi.ResourceUnavailableException;
import dev.galasa.framework.spi.language.GalasaTest;
+import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.ipnetwork.spi.IIpNetworkManagerSpi;
import dev.galasa.linux.LinuxManagerException;
import dev.galasa.linux.OperatingSystem;
@@ -71,7 +73,7 @@ public class OpenstackManagerImpl extends AbstractManager implements ILinuxProvi
private CloseableHttpClient httpClient;
private OpenstackHttpClient openstackHttpClient;
- private Gson gson = new GsonBuilder().setPrettyPrinting().create();
+ private GalasaGson gson = new GalasaGson();
/*
* (non-Javadoc)
@@ -157,16 +159,18 @@ public ILinuxProvisionedImage provisionLinux(String tag, OperatingSystem operati
// check we are enabled
if (!OpenStackEnabled.get()) {
+ logger.trace("OpenStack not enabled");
return null;
}
// *** Check that we can connect to openstack before we attempt to provision, if
// we can't end gracefully and give someone else a chance
if (!openstackHttpClient.connectToOpenstack()) {
+ logger.trace("Unable to connect to OpenStack");
return null;
}
- // *** Locate the possible images that are available for selection
+ logger.trace("Locating possible images that are available for selection");
try {
List possibleImages = LinuxImages.get(operatingSystem, null);
@@ -174,21 +178,27 @@ public ILinuxProvisionedImage provisionLinux(String tag, OperatingSystem operati
nextImage:
while(possibleImagesIterator.hasNext()) {
String image = possibleImagesIterator.next();
+ logger.trace("Checking if image " + image + " is correct for this test");
// First check to see the the tests MUST request a capability this server provides
List availableCapabilities = LinuxImageCapabilities.get(image);
if (!availableCapabilities.isEmpty()) {
for(String availableCapability : availableCapabilities) {
+ logger.trace(availableCapability + " is an available capability of this image");
if (availableCapability.startsWith("+")) {
String actualAvailableCapability = availableCapability.substring(1);
boolean requestedCapability = false;
for(String choosenCapability : capabilities) {
if (choosenCapability.equalsIgnoreCase(actualAvailableCapability)) {
+ logger.trace("This image has an available capability " + actualAvailableCapability + " that matches a chosen capability " + choosenCapability);
requestedCapability = true;
break;
+ } else {
+ logger.trace("This image's available capability " + availableCapability + " is not required");
}
}
if (!requestedCapability) {
+ logger.trace("This image had no availabilie capabilities that were chosen for this test");
possibleImagesIterator.remove();
continue nextImage;
}
@@ -209,12 +219,16 @@ public ILinuxProvisionedImage provisionLinux(String tag, OperatingSystem operati
availableCapability = availableCapability.substring(1);
}
if (availableCapability.equalsIgnoreCase(choosenCapability)) {
+ logger.trace("This image has an available capability " + availableCapability + " that matches a required capability " + choosenCapability);
found = true;
break;
+ } else {
+ logger.trace("This image's available capability " + availableCapability + " is not required");
}
}
if (!found) {
+ logger.trace("This image had no available capabilities that we need so it is not possible to use");
possibleImagesIterator.remove();
continue nextImage;
}
@@ -231,6 +245,7 @@ public ILinuxProvisionedImage provisionLinux(String tag, OperatingSystem operati
// *** Select the first image as they will be listed in preference order
String selectedImage = possibleImages.get(0);
+ logger.trace("The selected image for this test is " + selectedImage);
// *** See if we have capacity for a new Instance on Openstack
String instanceName = reserveInstance();
@@ -393,7 +408,7 @@ public IDynamicStatusStoreService getDSS() {
}
protected Gson getGson() {
- return this.gson;
+ return this.gson.getGson();
}
protected IIpNetworkManagerSpi getIpNetworkManager() {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackResourceManagement.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackResourceManagement.java
index 74c515fd5..52899b9da 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackResourceManagement.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackServerImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackServerImpl.java
index c3e340980..9434937c2 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackServerImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackServerImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.openstack.manager.internal;
import java.security.SecureRandom;
@@ -30,6 +32,7 @@
import dev.galasa.openstack.manager.internal.json.Server;
import dev.galasa.openstack.manager.internal.json.ServerRequest;
import dev.galasa.openstack.manager.internal.properties.BuildTimeout;
+import dev.galasa.openstack.manager.internal.properties.OpenStackNetworkName;
public abstract class OpenstackServerImpl {
@@ -313,9 +316,11 @@ protected void createServer(ServerRequest serverRequest) throws OpenstackManager
}
// *** Locate the external network
- Network network = this.openstackHttpClient.findExternalNetwork(null); // TODO provide means to specify
- // network
-
+ String networkName = OpenStackNetworkName.get();
+ if (networkName == null) {
+ throw new OpenstackManagerException("The external network name to allocate a floatingip on was not provided in the CPS");
+ }
+ Network network = this.openstackHttpClient.findExternalNetwork(networkName);
if (network == null) {
throw new OpenstackManagerException("Unable to select an external network to allocate a floatingip on");
}
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackToken.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackToken.java
index 04d98545c..4e76ce220 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackToken.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackToken.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackUsernamePasswordCredentials.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackUsernamePasswordCredentials.java
index 86781ccff..2ef03dffa 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackUsernamePasswordCredentials.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackUsernamePasswordCredentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackWindowsImageImpl.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackWindowsImageImpl.java
index 003e42a2d..62de4ff67 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackWindowsImageImpl.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/OpenstackWindowsImageImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.openstack.manager.internal;
import java.nio.file.FileSystem;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/ServerResourceMonitor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/ServerResourceMonitor.java
index 0ff7eb021..6021a0a25 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/ServerResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/ServerResourceMonitor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Api.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Api.java
index 91e15ff89..bdabefa0a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Api.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Api.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Auth.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Auth.java
index 4ec13dd53..853ca2f62 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Auth.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Auth.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokenResponse.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokenResponse.java
index 0afe76399..3195122c3 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokenResponse.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokenResponse.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokens.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokens.java
index 052a8889c..365ffab1d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokens.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/AuthTokens.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/DnsAssignment.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/DnsAssignment.java
index 352c8a87b..d50dc8818 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/DnsAssignment.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/DnsAssignment.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Domain.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Domain.java
index 29b4d1858..0d7e92f4f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Domain.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Domain.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Endpoint.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Endpoint.java
index d418ce919..f26c8ca87 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Endpoint.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Endpoint.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavor.java
index b7c6bc886..8d876ee0d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavors.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavors.java
index d057d8542..afca90b93 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavors.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Flavors.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingip.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingip.java
index ccde3eb14..5b5c691fb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingip.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingip.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/FloatingipRequestResponse.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/FloatingipRequestResponse.java
index 7a8e7d08c..a188e33c1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/FloatingipRequestResponse.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/FloatingipRequestResponse.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingips.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingips.java
index dffe233b7..6edc60758 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingips.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Floatingips.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/GalasaMetadata.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/GalasaMetadata.java
index 1a42f1ee5..49ebb6167 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/GalasaMetadata.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/GalasaMetadata.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Identity.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Identity.java
index 5582ba13a..c3e2a32cd 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Identity.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Identity.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Image.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Image.java
index b44152bb4..6ff9e0af1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Image.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Image.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Images.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Images.java
index d230be4c3..e4f011428 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Images.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Images.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Network.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Network.java
index da2d0816e..b8afc1289 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Network.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Network.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Networks.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Networks.java
index 3e3c26969..aeafd7b43 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Networks.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Networks.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Password.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Password.java
index 7d044962c..e08e4df1f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Password.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Password.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Port.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Port.java
index 24293d50c..b7c45ffab 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Port.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Port.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/PortsResponse.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/PortsResponse.java
index b998ae4bd..140bfa21a 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/PortsResponse.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/PortsResponse.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Project.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Project.java
index 0f87c776c..3182ac79c 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Project.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Project.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Scope.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Scope.java
index fdb67351e..0a1ccf7ef 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Scope.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Scope.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/SecurityGroup.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/SecurityGroup.java
index 6c9e0474a..b18d15359 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/SecurityGroup.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/SecurityGroup.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Server.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Server.java
index 74150f394..51fd5114e 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Server.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Server.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerRequest.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerRequest.java
index 4134037bc..002c04961 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerRequest.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerRequest.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerResponse.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerResponse.java
index c5adbe86d..2a5b2a1f4 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerResponse.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServerResponse.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServersResponse.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServersResponse.java
index 27e5269cf..312aa906f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServersResponse.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/ServersResponse.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Token.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Token.java
index 9578abc78..511645f7b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Token.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/Token.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/User.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/User.java
index e573db28e..60dbf52cd 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/User.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/User.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.json;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/package-info.java
index 7003c1960..b478ac325 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/json/package-info.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* OpenStack Manager - OpenStack API JSON POJOs
*/
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/package-info.java
index 02a5cd87c..55fef2ae7 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/package-info.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* OpenStack Manager - Internal
*/
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/BuildTimeout.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/BuildTimeout.java
index f14889f4d..6066c4878 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/BuildTimeout.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/BuildTimeout.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -22,8 +22,6 @@
*
* default value is 10 minutes
*
- *
- * @author Michael Baylis
*
*/
public class BuildTimeout extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxArchivesDirectory.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxArchivesDirectory.java
index 120eb1279..4c02be8aa 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxArchivesDirectory.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxArchivesDirectory.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -21,8 +23,6 @@
*
* Default is /opt/archives
*
- *
- * @author Michael Baylis
*
*/
public class LinuxArchivesDirectory extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxAvailablityZone.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxAvailablityZone.java
index 9320d0f1d..f557c65af 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxAvailablityZone.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxAvailablityZone.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* The default is nova
*
- *
- * @author Michael Baylis
*
*/
public class LinuxAvailablityZone extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxCredentials.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxCredentials.java
index 9b138d104..a7ccd9928 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxCredentials.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxCredentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -27,8 +27,6 @@
*
* The default is OPENSTACKSSH
*
- *
- * @author Michael Baylis
*
*/
public class LinuxCredentials extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxFlavor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxFlavor.java
index ed305d811..4765e4fdb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxFlavor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxFlavor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* The default is m1.medium
*
- *
- * @author Michael Baylis
*
*/
public class LinuxFlavor extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImageCapabilities.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImageCapabilities.java
index 943b9723a..5e4034b52 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImageCapabilities.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImageCapabilities.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -32,8 +32,6 @@
*
* The default is no capabilities
*
- *
- * @author Michael Baylis
*
*/
public class LinuxImageCapabilities extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImages.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImages.java
index e56fb5445..75ccc4eac 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImages.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxImages.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -32,8 +32,6 @@
*
* There are no defaults
*
- *
- * @author Michael Baylis
*
*/
public class LinuxImages extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxKeyPair.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxKeyPair.java
index 2c4d98edf..5d15e2b06 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxKeyPair.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxKeyPair.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* There is no default
*
- *
- * @author Michael Baylis
*
*/
public class LinuxKeyPair extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxName.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxName.java
index 7f6515bcd..c039dabeb 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxName.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxName.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* The default is the same as the imagename
*
- *
- * @author Michael Baylis
*
*/
public class LinuxName extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxSecurityGroups.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxSecurityGroups.java
index 2e599f9ae..0c25da035 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxSecurityGroups.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/LinuxSecurityGroups.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -29,8 +29,6 @@
*
* There is no default
*
- *
- * @author James Davies
*
*/
public class LinuxSecurityGroups extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/MaximumInstances.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/MaximumInstances.java
index 9d89fd910..477e8f684 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/MaximumInstances.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/MaximumInstances.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -22,8 +22,6 @@
*
* default value is 2 instaces
*
- *
- * @author Michael Baylis
*
*/
public class MaximumInstances extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/NamePool.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/NamePool.java
index 6fd1536a2..44dee1efc 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/NamePool.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/NamePool.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -30,8 +30,6 @@
*
* default value is GALASA{0-9}{0-9}
*
- *
- * @author Michael Baylis
*
*/
public class NamePool extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackCredentialsId.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackCredentialsId.java
index 9813a8643..7ca8c8f3f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackCredentialsId.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackCredentialsId.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -23,8 +23,6 @@
*
* default value is openstack
*
- *
- * @author Michael Baylis
*
*/
public class OpenStackCredentialsId extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackDomainName.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackDomainName.java
index ce2a1ad1f..090a18085 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackDomainName.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackDomainName.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* There is no default
*
- *
- * @author Michael Baylis
*
*/
public class OpenStackDomainName extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackEnabled.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackEnabled.java
index faf9e5304..80a27ac28 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackEnabled.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackEnabled.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -21,8 +23,6 @@
*
* default value is true
*
- *
- * @author Michael Baylis
*
*/
public class OpenStackEnabled extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackIdentityUri.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackIdentityUri.java
index 4994fd715..6af2dda1b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackIdentityUri.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackIdentityUri.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -25,8 +25,6 @@
*
* There is no default
*
- *
- * @author Michael Baylis
*
*/
public class OpenStackIdentityUri extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackLinuxPriority.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackLinuxPriority.java
index 8df76cc80..53a5a704b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackLinuxPriority.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackLinuxPriority.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -21,8 +23,6 @@
*
* default value is 1
*
- *
- * @author Michael Baylis
*
*/
public class OpenStackLinuxPriority extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackNetworkName.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackNetworkName.java
new file mode 100644
index 000000000..f5da67b6d
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackNetworkName.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.openstack.manager.internal.properties;
+
+import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
+import dev.galasa.framework.spi.cps.CpsProperties;
+import dev.galasa.openstack.manager.OpenstackManagerException;
+
+/**
+ * OpenStack Network name
+ *
+ * The Openstack Network name that the OpenStack Manager will use
+ * to create a Floating IP address within. The Network name is used
+ * to get the Network ID.
+ *
+ * The property is:
+ * openstack.network.name=my_network_name
+ *
+ * There is no default
+ *
+ */
+public class OpenStackNetworkName extends CpsProperties {
+
+ public static String get()
+ throws ConfigurationPropertyStoreException, OpenstackManagerException {
+ return getStringNulled(OpenstackPropertiesSingleton.cps(), "network", "name");
+ }
+
+}
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackProjectName.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackProjectName.java
index 20cb21f5e..bbf036d24 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackProjectName.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenStackProjectName.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* There is no default
*
- *
- * @author Michael Baylis
*
*/
public class OpenStackProjectName extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenstackPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenstackPropertiesSingleton.java
index a20413d3b..674ac3923 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenstackPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/OpenstackPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsAvailablityZone.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsAvailablityZone.java
index c049d85bc..41e6e9a39 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsAvailablityZone.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsAvailablityZone.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* The default is nova
*
- *
- * @author Michael Baylis
*
*/
public class WindowsAvailablityZone extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsCredentials.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsCredentials.java
index a2979af57..2d4087e38 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsCredentials.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsCredentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -27,8 +27,6 @@
*
* The default is OPENSTACKSSH
*
- *
- * @author Michael Baylis
*
*/
public class WindowsCredentials extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsFlavor.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsFlavor.java
index 2abc0a9e1..694c1f6a9 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsFlavor.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsFlavor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* The default is m1.medium
*
- *
- * @author Michael Baylis
*
*/
public class WindowsFlavor extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImageCapabilities.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImageCapabilities.java
index 3925211d7..ed036510b 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImageCapabilities.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImageCapabilities.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -32,8 +32,6 @@
*
* The default is no capabilities
*
- *
- * @author Michael Baylis
*
*/
public class WindowsImageCapabilities extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImages.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImages.java
index 6a6869d2d..e24626470 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImages.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsImages.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -30,8 +30,6 @@
*
* There are no defaults
*
- *
- * @author Michael Baylis
*
*/
public class WindowsImages extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsKeyPair.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsKeyPair.java
index be5909c13..a79b38db1 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsKeyPair.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsKeyPair.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* There is no default
*
- *
- * @author Michael Baylis
*
*/
public class WindowsKeyPair extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsName.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsName.java
index 8ec78144f..d8e1a1624 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsName.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsName.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -26,8 +26,6 @@
*
* The default is the same as the imagename
*
- *
- * @author Michael Baylis
*
*/
public class WindowsName extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsSecurityGroups.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsSecurityGroups.java
index 24e9ead69..838ea878f 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsSecurityGroups.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/WindowsSecurityGroups.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.openstack.manager.internal.properties;
@@ -28,8 +28,6 @@
*
* There is no default
*
- *
- * @author James Davies
*
*/
public class WindowsSecurityGroups extends CpsProperties {
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/package-info.java
index 4627305fe..24668df1d 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/internal/properties/package-info.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* OpenStack Manager - CPS Properties
*
diff --git a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/package-info.java b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/package-info.java
index 6e7de7cc0..5ada464c0 100644
--- a/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/package-info.java
+++ b/galasa-managers-parent/galasa-managers-cloud-parent/dev.galasa.openstack.manager/src/main/java/dev/galasa/openstack/manager/package-info.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* Open Stack Manager
diff --git a/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/.gitignore b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/.gitignore
new file mode 100644
index 000000000..29df26c1a
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/.gitignore
@@ -0,0 +1,4 @@
+/.apt_generated/
+/.apt_generated_tests/
+/target/
+bin/
diff --git a/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/bnd.bnd b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/bnd.bnd
new file mode 100644
index 000000000..a76c2c889
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/bnd.bnd
@@ -0,0 +1,8 @@
+-snapshot: ${tstamp}
+Bundle-Name: Manager Common
+Export-Package: dev.galasa.common
+Import-Package: dev.galasa,\
+ dev.galasa.framework.spi,\
+ dev.galasa.framework.spi.language,
+
+
diff --git a/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/build.gradle b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/build.gradle
new file mode 100644
index 000000000..78db7f04c
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/build.gradle
@@ -0,0 +1,20 @@
+plugins {
+ id 'galasa.manager'
+}
+
+description = 'Manager Common'
+
+version = '0.25.0'
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/settings.gradle b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/settings.gradle
new file mode 100644
index 000000000..276e9f05b
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = 'dev.galasa.common'
+
diff --git a/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/src/main/java/dev/galasa/common/SSLTLSContextNameSelector.java b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/src/main/java/dev/galasa/common/SSLTLSContextNameSelector.java
new file mode 100644
index 000000000..e4fa05850
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/src/main/java/dev/galasa/common/SSLTLSContextNameSelector.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.common;
+
+import java.util.Properties;
+
+public class SSLTLSContextNameSelector {
+
+ public static final String JAVA_VENDOR_PROPERTY = "java.vendor";
+ public static final String JAVA_VERSION_PROPERTY = "java.version";
+
+ public String getSelectedSSLContextName() {
+ return getSelectedSSLContextName(System.getProperties());
+ }
+ public String getSelectedSSLContextName( Properties props ) {
+ boolean ibmJdk = props.getProperty(JAVA_VENDOR_PROPERTY).contains("IBM");
+ String name ;
+ if (ibmJdk) {
+ if (props.getProperty(JAVA_VERSION_PROPERTY).startsWith("8.")) {
+ name="SSL_TLSv2";
+ }else {
+ name ="TLSv1.2";
+ }
+ } else {
+ name = "TLSv1.2";
+ }
+ return name ;
+ }
+
+}
diff --git a/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/src/test/java/dev/galasa/common/SSLTLSContextNameSelectorTest.java b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/src/test/java/dev/galasa/common/SSLTLSContextNameSelectorTest.java
new file mode 100644
index 000000000..e0f7f2482
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-common-parent/dev.galasa.common/src/test/java/dev/galasa/common/SSLTLSContextNameSelectorTest.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.common;
+
+import org.junit.Test;
+
+import static org.junit.Assert.* ;
+import java.util.Properties;
+
+public class SSLTLSContextNameSelectorTest {
+ @Test
+ public void testNonIBMJVMGivesTLS12Context() throws Exception {
+ Properties testProps = new Properties();
+ testProps.setProperty(SSLTLSContextNameSelector.JAVA_VENDOR_PROPERTY,"FakeJavaRuntimeVendorName" );
+ // When...
+ String contextName = new SSLTLSContextNameSelector().getSelectedSSLContextName(testProps);
+ // Then...
+ String expected = "TLSv1.2";
+ assertEquals(expected,contextName);
+ }
+ @Test
+ public void testIBMJVM8GivesSSL_TLSv2Context() throws Exception {
+ // Given...
+ Properties testProps = new Properties();
+ testProps.setProperty(SSLTLSContextNameSelector.JAVA_VENDOR_PROPERTY,"IBMJavaRuntimeVendorName" );
+ testProps.setProperty(SSLTLSContextNameSelector.JAVA_VERSION_PROPERTY, "8.0.16");
+ // When...
+ String contextName = new SSLTLSContextNameSelector().getSelectedSSLContextName(testProps);
+ // Then...
+ String expected = "SSL_TLSv2";
+ assertEquals(expected,contextName);
+ }
+
+ @Test
+ public void testIBMJVM11GivesTLSv12Context() throws Exception {
+ // Given...
+ Properties testProps = new Properties();
+ testProps.setProperty(SSLTLSContextNameSelector.JAVA_VENDOR_PROPERTY,"IBMJavaRuntimeVendorName" );
+ testProps.setProperty(SSLTLSContextNameSelector.JAVA_VERSION_PROPERTY, "11.0.16.1+1");
+ // When...
+ String contextName = new SSLTLSContextNameSelector().getSelectedSSLContextName(testProps);
+ // Then...
+ String expected = "TLSv1.2";
+ assertEquals(expected,contextName);
+ }
+}
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/build.gradle
index f8454734f..767e98ac9 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/build.gradle
@@ -4,10 +4,24 @@ plugins {
description = 'Galasa HTTP Manager IVTs'
-version = '0.21.0'
+version = '0.31.0'
dependencies {
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
implementation project(':galasa-managers-core-parent:dev.galasa.core.manager')
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'com.google.code.gson:gson:2.10.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/settings.gradle
index b0ee74b2b..cf0f28824 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/settings.gradle
@@ -1 +1 @@
-rootProject.name = 'dev.galasa.http.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.http.manager.ivt'
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/src/main/java/dev/galasa/http/manager/ivt/HttpManagerIVT.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/src/main/java/dev/galasa/http/manager/ivt/HttpManagerIVT.java
index d414d8c30..d42842c8b 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/src/main/java/dev/galasa/http/manager/ivt/HttpManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager.ivt/src/main/java/dev/galasa/http/manager/ivt/HttpManagerIVT.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.http.manager.ivt;
import static org.assertj.core.api.Assertions.assertThat;
@@ -158,7 +163,7 @@ public void testBinary() throws HttpClientException {
assertThat(response.getContent().length).isEqualTo(8);
assertThat(response.getHeader("Content-Type")).isEqualTo("application/octet-stream");
}
-
+
@Test
public void downloadFileTest()
throws Exception {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/bnd.bnd b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/bnd.bnd
index f194b003e..5ffc885ff 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/bnd.bnd
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/bnd.bnd
@@ -5,7 +5,9 @@ Import-Package: com.google.gson,\
dev.galasa,\
dev.galasa.framework.spi,\
dev.galasa.framework.spi.language,\
+ dev.galasa.framework.spi.utils,\
dev.galasa.http.spi,\
+ dev.galasa.common,\
javax.net.ssl,\
javax.validation.constraints;resolution:=optional,\
jakarta.xml.bind,\
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/build.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/build.gradle
index 3a4397b5c..87667a94c 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/build.gradle
@@ -4,18 +4,32 @@ plugins {
description = 'HTTP Manager'
-version = '0.25.0'
+version = '0.36.0'
dependencies {
api 'org.apache.httpcomponents:httpclient-osgi:4.5.13'
implementation 'org.apache.httpcomponents:httpcore-osgi:4.4.14'
implementation 'org.apache.httpcomponents:httpmime:4.5.8'
- implementation 'commons-io:commons-io:2.9.0'
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'commons-io:commons-io:2.16.1'
+ implementation 'com.google.code.gson:gson:2.10.1'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:3.0.0'
implementation (group: 'commons-codec', name: 'commons-codec'){
version{
strictly "[1.15]"
}
}
+ implementation project (':galasa-managers-common-parent:dev.galasa.common')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/settings.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/settings.gradle
index 85c6d3475..456648a74 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.http.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.http.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/ContentType.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/ContentType.java
index 30cd84426..e5e2b17a0 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/ContentType.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/ContentType.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClient.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClient.java
index 58afae708..2a623fbef 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClient.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClient.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http;
@@ -17,7 +17,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author William Yates
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientException.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientException.java
index 0aed6b1a9..8367b98fc 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientException.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientResponse.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientResponse.java
index 7c35bf650..a6ae2421f 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientResponse.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpClientResponse.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http;
@@ -24,7 +24,6 @@
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
-import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
@@ -32,12 +31,13 @@
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBException;
+import dev.galasa.framework.spi.utils.GalasaGson;
/**
* Parametrisable representation of a response to an HTTP request. The parameter
* describes the content type of the response. Use the static methods to create
* instances from an {@link HttpResponse}.
*
- * @author James Bartlett
+ *
*
* @param Class describing the content type of the response
*/
@@ -240,11 +240,11 @@ public static HttpClientResponse textResponse(CloseableHttpResponse http
}
/**
- * Create an {@link HttpClientResponse} with a {@link JSONObject} content type
+ * Create an {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* from an {@link HttpResponse}.
*
* @param httpResponse
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
public static HttpClientResponse jsonResponse(CloseableHttpResponse httpResponse)
@@ -253,14 +253,14 @@ public static HttpClientResponse jsonResponse(CloseableHttpResponse
}
/**
- * Create an {@link HttpClientResponse} with a {@link JSONObject} content type
+ * Create an {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* from an {@link HttpResponse}. If contentOnBadResponse is true, an attempt
* will be made to retrieve the content even on a non 200 status code, otherwise
* the content will be null in such an instance.
*
* @param httpResponse
* @param contentOnBadResponse
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
public static HttpClientResponse jsonResponse(CloseableHttpResponse httpResponse,
@@ -274,17 +274,21 @@ public static HttpClientResponse jsonResponse(CloseableHttpResponse
if (response.getStatusCode() == HttpStatus.SC_OK || contentOnBadResponse) {
String sResponse = EntityUtils.toString(httpResponse.getEntity());
-// JsonReader reader = new JsonReader(new InputStreamReader(httpResponse.getEntity().getContent()));
- JsonElement jsonElement = null;
- try{
- jsonElement = new Gson().fromJson(sResponse, JsonElement.class);
- }catch(JsonSyntaxException jse){
- System.err.println("Unable to parse JSON from the following: " + sResponse);
- throw jse;
- }
- if (jsonElement != null) {
- JsonObject json = jsonElement.getAsJsonObject();
- response.setContent(json);
+ if (sResponse.trim().startsWith("{")) {
+// JsonReader reader = new JsonReader(new InputStreamReader(httpResponse.getEntity().getContent()));
+ JsonElement jsonElement = null;
+ try{
+ jsonElement = new GalasaGson().fromJson(sResponse, JsonElement.class);
+ }catch(JsonSyntaxException jse){
+ System.err.println("Unable to parse JSON from the following: " + sResponse);
+ throw jse;
+ }
+ if (jsonElement != null) {
+ JsonObject json = jsonElement.getAsJsonObject();
+ response.setContent(json);
+ }
+ } else {
+ System.err.println("Did not attempt to parse JSON from the following: " + sResponse);
}
} else {
EntityUtils.consume(httpResponse.getEntity());
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpDelete.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpDelete.java
new file mode 100644
index 000000000..bb271c731
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/HttpDelete.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+package dev.galasa.http;
+
+import java.net.URI;
+
+import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
+
+/**
+ * HTTP DELETE method.
+ *
+ * The apache provided HttpDelete does not allow the inclusion
+ * of a body, which goes against HTTP specs, which allows it.
+ * This simple class now provides the capability.
+ */
+public class HttpDelete extends HttpEntityEnclosingRequestBase {
+
+ public static final String METHOD_NAME = "DELETE";
+
+ public HttpDelete() {
+ super();
+ }
+
+ public HttpDelete(final URI uri) {
+ super();
+ setURI(uri);
+ }
+
+ public HttpDelete(final String uri) {
+ super();
+ setURI(URI.create(uri));
+ }
+
+ public String getMethod() {
+ return METHOD_NAME;
+ }
+}
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpClient.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpClient.java
index f08e00c9f..efcc129ab 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpClient.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpClient.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019-2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http;
@@ -122,47 +122,70 @@ HttpClientResponse postXML(String url, String xml)
throws HttpClientException;
/**
- * Issue an HTTP GET to the provided URL, receiving a {@link JSONObject} in the
+ * Issue an HTTP GET to the provided URL, receiving a com.google.gson.JsonObject in the
* response.
*
* @param url
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse getJson(String url) throws HttpClientException;
/**
* Issue an HTTP POST to the provided URL, sending the provided
- * {@link JSONObject} and receiving a {@link JSONObject} in the response.
+ * com.google.gson.JsonObject and receiving a com.google.gson.JsonObject in the response.
*
* @param url
* @param json
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse postJson(String url, JsonObject json) throws HttpClientException;
- /**
+ /**
+ * Issue an HTTP PATCH to the provided URL, sending the provided
+ * com.google.gson.JsonObject and receiving a com.google.gson.JsonObject in the response.
+ *
+ * @param url
+ * @param json
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
+ * @throws HttpClientException
+ */
+ HttpClientResponse patchJson(String url, JsonObject json) throws HttpClientException;
+
+
+ /**
* Issue an HTTP PUT to the provided URL, sending the provided
- * {@link JSONObject} and receiving a {@link JSONObject} in the response.
+ * com.google.gson.JsonObject and receiving a com.google.gson.JsonObject in the response.
*
* @param url
* @param json
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse putJson(String url, JsonObject json) throws HttpClientException;
/**
- * Issue an HTTP DELETE to the provided URL, receiving a {@link JSONObject} in
+ * Issue an HTTP DELETE to the provided URL, receiving a com.google.gson.JsonObject in
* the response.
*
* @param url
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse deleteJson(String url) throws HttpClientException;
+ /**
+ * Issue an HTTP DELETE to the provided URL, receiving a com.google.gson.JsonObject in
+ * the response.
+ *
+ * @param url
+ * @param json
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
+ * @throws HttpClientException
+ */
+ HttpClientResponse deleteJson(String url, JsonObject json) throws HttpClientException;
+
/**
* Issue an HTTP GET to the provided URL, receiving a {@link String} in the
* response.
@@ -211,7 +234,7 @@ HttpClientResponse postXML(String url, String xml)
*
* @param url
* @param binary
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse putBinary(String url, byte[] binary) throws HttpClientException;
@@ -222,7 +245,7 @@ HttpClientResponse postXML(String url, String xml)
*
* @param url
* @param binary
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse getBinary(String url, byte[] binary) throws HttpClientException;
@@ -233,7 +256,7 @@ HttpClientResponse postXML(String url, String xml)
*
* @param url
* @param binary
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse postBinary(String url, byte[] binary) throws HttpClientException;
@@ -244,7 +267,7 @@ HttpClientResponse postXML(String url, String xml)
*
* @param url
* @param binary
- * @return - {@link HttpClientResponse} with a {@link JSONObject} content type
+ * @return - {@link HttpClientResponse} with a com.google.gson.JsonObject content type
* @throws HttpClientException
*/
HttpClientResponse deleteBinary(String url, byte[] binary) throws HttpClientException;
@@ -252,25 +275,23 @@ HttpClientResponse postXML(String url, String xml)
/**
* Download a file from a specified location to a specified destination on local host.
*
- * @param Path destination - local location
- * @param String path = URL path
+ * @param path = URL path
*/
CloseableHttpResponse getFile(String path) throws HttpClientException;
/**
* Download a file from a specified location to a specified destination on local host.
*
- * @param Path destination - local location
- * @Param Content Types
- * @param String path = URL path
+ * @param acceptTypes
+ * @param path - URL path
*/
CloseableHttpResponse getFile(String path, ContentType... acceptTypes) throws HttpClientException;
/**
* Send a compressed (tar) file from a local location to a specified destination on a host.
*
- * @param Sting path - URL path
- * @param File file - tar archive file
+ * @param path - URL path
+ * @param file - tar archive file
*/
void putFile(String path, InputStream file);
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpManager.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpManager.java
index 5302db515..28eed51c6 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpManager.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/IHttpManager.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http;
/**
* Provides test code access to HTTP Manager to execute HTTP requests
*
- * @author Will Yates
+ *
*/
public interface IHttpManager {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/StandAloneHttpClient.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/StandAloneHttpClient.java
index 48bd2584b..56efbe277 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/StandAloneHttpClient.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/StandAloneHttpClient.java
@@ -1,9 +1,15 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.http;
import org.apache.commons.logging.Log;
import dev.galasa.http.internal.HttpClientImpl;
+
/**
* This is a class to allow the HTTP manager implementations be used without the need for the manager to be active
*/
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/ClientAuthTrustManager.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/ClientAuthTrustManager.java
index 6848cc7e5..e966a13f9 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/ClientAuthTrustManager.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/ClientAuthTrustManager.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
@@ -15,7 +15,7 @@
/**
* Client Authentication Trust Manager
*
- * @author James Bartlett
+ *
*
*/
public class ClientAuthTrustManager implements X509TrustManager {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientImpl.java
index c3227d4c8..bf249d304 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
@@ -68,6 +70,7 @@
import com.google.gson.JsonObject;
+import dev.galasa.common.SSLTLSContextNameSelector;
import dev.galasa.http.ContentType;
import dev.galasa.http.HttpClientException;
import dev.galasa.http.HttpClientResponse;
@@ -78,7 +81,7 @@
public class HttpClientImpl implements IHttpClient {
- private static final String JAVA_VENDOR_PROPERTY = "java.vendor";
+
private CloseableHttpClient httpClient;
protected URI host = null;
@@ -96,6 +99,8 @@ public class HttpClientImpl implements IHttpClient {
private Log logger;
+ private SSLTLSContextNameSelector nameSelector = new SSLTLSContextNameSelector();
+
public HttpClientImpl(int timeout, Log log) {
this.timeout = timeout;
this.logger = log;
@@ -175,6 +180,16 @@ public HttpClientResponse postJson(String url, JsonObject json) thro
return executeJsonRequest(request);
}
+ @Override
+ public HttpClientResponse patchJson(String url, JsonObject json) throws HttpClientException {
+
+ HttpClientRequest request = HttpClientRequest.newPatchRequest(buildUri(url, null).toString(),
+ new ContentType[] { ContentType.APPLICATION_JSON }, ContentType.APPLICATION_JSON);
+ request.setJSONBody(json);
+
+ return executeJsonRequest(request);
+ }
+
@Override
public HttpClientResponse deleteJson(String url) throws HttpClientException {
@@ -184,6 +199,16 @@ public HttpClientResponse deleteJson(String url) throws HttpClientEx
return executeJsonRequest(request);
}
+ @Override
+ public HttpClientResponse deleteJson(String url, JsonObject json) throws HttpClientException {
+
+ HttpClientRequest request = HttpClientRequest.newDeleteRequest(buildUri(url, null).toString(),
+ new ContentType[] { ContentType.APPLICATION_JSON }, ContentType.APPLICATION_JSON);
+ request.setJSONBody(json);
+
+ return executeJsonRequest(request);
+ }
+
private HttpClientResponse executeJsonRequest(HttpClientRequest request) throws HttpClientException {
return HttpClientResponse.jsonResponse(execute(request.buildRequest()));
@@ -356,26 +381,21 @@ public void addOkResponseCode(int responseCode) {
* @throws HttpClientException
*/
public IHttpClient setTrustingSSLContext() throws HttpClientException {
-
try {
- boolean ibmJdk = System.getProperty(JAVA_VENDOR_PROPERTY).contains("IBM");
- SSLContext sslContext;
- if (ibmJdk)
- sslContext = SSLContext.getInstance("SSL_TLSv2"); // NOSONAR
- else
- sslContext = SSLContext.getInstance("TLSv1.2");
+ String contextName = nameSelector.getSelectedSSLContextName();
+ SSLContext sslContext = SSLContext.getInstance(contextName);
sslContext.init(null, new TrustManager[] { new VeryTrustingTrustManager() }, new SecureRandom());
setSSLContext(sslContext);
} catch (GeneralSecurityException e) {
throw new HttpClientException("Error attempting to create SSL context", e);
}
-
return this;
}
+
/**
* Set up Client Authentication SSL Context and install
- *
+ *
* @param clientKeyStore
* @param serverKeyStore
* @param alias
@@ -385,29 +405,20 @@ public IHttpClient setTrustingSSLContext() throws HttpClientException {
*/
public IHttpClient setupClientAuth(KeyStore clientKeyStore, KeyStore serverKeyStore, String alias, String password)
throws HttpClientException {
-
try {
// Create the Key Manager Factory
KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
kmf.init(clientKeyStore, password.toCharArray());
-
// Create the Trust Managers
TrustManager[] trustManagers = { new ClientAuthTrustManager(serverKeyStore, alias) };
-
// Create the SSL Context
- boolean ibmJdk = System.getProperty(JAVA_VENDOR_PROPERTY).contains("IBM");
- SSLContext sslContext;
- if (ibmJdk)
- sslContext = SSLContext.getInstance("SSL_TLSv2"); // NOSONAR
- else
- sslContext = SSLContext.getInstance("TLSv1.2");
+ String contextName = nameSelector.getSelectedSSLContextName();
+ SSLContext sslContext = SSLContext.getInstance(contextName);
sslContext.init(kmf.getKeyManagers(), trustManagers, null);
-
setSSLContext(sslContext);
} catch (GeneralSecurityException e) {
throw new HttpClientException("Error attempting to create SSL context", e);
}
-
return this;
}
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientRequest.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientRequest.java
index 81c8f7fbf..976727572 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientRequest.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpClientRequest.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
@@ -16,12 +16,12 @@
import org.apache.http.HttpEntity;
import org.apache.http.HttpHeaders;
-import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpHead;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
+import org.apache.http.client.methods.HttpPatch;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.entity.ByteArrayEntity;
@@ -32,6 +32,7 @@
import com.google.gson.JsonObject;
import dev.galasa.http.ContentType;
+import dev.galasa.http.HttpDelete;
import dev.galasa.http.HttpClientException;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBException;
@@ -42,7 +43,7 @@
* {@link #setUrl(String)} must be called before use, as well as one of the
* setBody(...) methods if this is a PUT or POST request
*
- * @author Will Yates
+ *
*
*/
public class HttpClientRequest {
@@ -53,6 +54,7 @@ private enum RequestType {
DELETE,
PUT,
POST,
+ PATCH,
HEAD;
}
@@ -275,6 +277,9 @@ HttpUriRequest buildRequest() throws HttpClientException {
case HEAD:
request = new HttpHead(uri);
break;
+ case PATCH:
+ request = new HttpPatch(uri);
+ break;
case GET:
default:
request = new HttpGet(uri);
@@ -324,6 +329,24 @@ public static HttpClientRequest newDeleteRequest(String url, ContentType[] accep
return request;
}
+ /**
+ * Create a new DELETE request
+ *
+ * @param url
+ * @param acceptTypes
+ * @param contentType
+ * @return new DELETE request
+ */
+ public static HttpClientRequest newDeleteRequest(String url, ContentType[] acceptTypes, ContentType contentType) {
+
+ HttpClientRequest request = new HttpClientRequest(RequestType.DELETE);
+ request.setUrl(url);
+ request.setAcceptTypes(acceptTypes);
+ request.setContentType(contentType);
+
+ return request;
+ }
+
/**
* Create a new PUT request
*
@@ -359,6 +382,23 @@ public static HttpClientRequest newPostRequest(String url, ContentType[] acceptT
return request;
}
+ /**
+ * Create a new PATCH request
+ *
+ * @param url
+ * @param acceptTypes
+ * @param contentType
+ * @return new POST request
+ */
+ public static HttpClientRequest newPatchRequest(String url, ContentType[] acceptTypes, ContentType contentType) {
+
+ HttpClientRequest request = new HttpClientRequest(RequestType.PATCH);
+ request.setUrl(url);
+ request.setAcceptTypes(acceptTypes);
+ request.setContentType(contentType);
+
+ return request;
+ }
/**
* Create a new HEAD request
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerField.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerField.java
index 02755aa57..85221329c 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerField.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author William Yates
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerImpl.java
index 87633c5fe..550050246 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/HttpManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/RequestPart.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/RequestPart.java
index 3fe4f60f5..b3bff83f2 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/RequestPart.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/RequestPart.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/VeryTrustingTrustManager.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/VeryTrustingTrustManager.java
index 89774ea76..da37ba933 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/VeryTrustingTrustManager.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/internal/VeryTrustingTrustManager.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/package-info.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/package-info.java
index 31b4b4b8d..eb8d41c99 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/package-info.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/package-info.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* HTTP Client Manager
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/spi/IHttpManagerSpi.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/spi/IHttpManagerSpi.java
index bee59d266..35ef71be4 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/spi/IHttpManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/main/java/dev/galasa/http/spi/IHttpManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.http.spi;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/test/java/test/force/codecoverage/ExceptionsTest.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/test/java/test/force/codecoverage/ExceptionsTest.java
index bf6f44386..7590164c8 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/test/java/test/force/codecoverage/ExceptionsTest.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.http.manager/src/test/java/test/force/codecoverage/ExceptionsTest.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package test.force.codecoverage;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/build.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/build.gradle
index 361cadb36..f328fb953 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/build.gradle
@@ -4,9 +4,23 @@ plugins {
description = 'IP Network Manager'
-version = '0.21.0'
+version = '0.25.0'
dependencies {
implementation 'dev.galasa:com.jcraft.jsch:0.1.55'
implementation 'commons-codec:commons-codec:1.15'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/settings.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/settings.gradle
index 446762548..7e23153bf 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/settings.gradle
@@ -1 +1 @@
-rootProject.name = 'dev.galasa.ipnetwork.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.ipnetwork.manager'
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/ICommandShell.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/ICommandShell.java
index 0d6d32bfa..b3c442d8d 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/ICommandShell.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/ICommandShell.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
@@ -10,8 +10,8 @@ public interface ICommandShell {
public String issueCommand(String command) throws IpNetworkManagerException;
/**
- * Issue a command using SSH. Equivalent to {@link #issueCommand(String, false,
- * long)}
+ * Issue a command using SSH. Equivalent to {@link #issueCommand(String, boolean, long)}
+
*
* @param command - command to issue
* @param timeout - time (in milliseconds) to wait with no new output appearing
@@ -23,7 +23,7 @@ public interface ICommandShell {
/**
* Issue a command using SSH. Equivalent to
- * {@link #issueCommand(String, boolean, defaultTimeout)}
+ * {@link #issueCommand(String, boolean, long)}
*
* @param command - command to issue
* @param newShell - if true will start a new
@@ -58,10 +58,12 @@ public interface ICommandShell {
public void setChangePromptCommand(String command);
/**
- * Issue a command using SSH shell. Equivalent to
- * {@link #issueCommandToShell(String, false, defaultTimeout)} - not valid for
+ * Issue a command using SSH shell.
+ *
+ * Equivalent to
+ * {@link #issueCommandToShell(String, boolean, long)} - not valid for
* Rexec implementation - equivalent to
- * {@link #issueCommand(String, boolean, long)} for Telnet implementation
+ * {@link #issueCommand(String, long)} for Telnet implementation
*
* @param command - command to issue
* @return the output of the command (stdout and stderr)
@@ -71,8 +73,8 @@ public interface ICommandShell {
/**
* Issue a command using SSH shell. Equivalent to
- * {@link #issueCommandToShell(String, false, long)} - not valid for Rexec
- * implementation - equivalent to {@link #issueCommand(String, boolean, long)}
+ * {@link #issueCommandToShell(String, boolean, long)} - not valid for Rexec
+ * implementation - equivalent to {@link #issueCommand(String, long)}
* for Telnet implementation
*
* @param command - command to issue - if true will start a new
@@ -83,9 +85,9 @@ public interface ICommandShell {
/**
* Issue a command using SSH shell. Equivalent to
- * {@link #issueCommandToShell(String, boolean, defaultTimeout)} - not valid for
+ * {@link #issueCommandToShell(String, boolean, long)} - not valid for
* Rexec implementation - equivalent to
- * {@link #issueCommand(String, boolean, long)} for Telnet implementation
+ * {@link #issueCommand(String, long)} for Telnet implementation
*
* @param command - command to issue
* @param newShell - if true will start a new
@@ -96,7 +98,7 @@ public interface ICommandShell {
/**
* Issue a command using SSH shell - not valid for Rexec implementation -
- * equivalent to {@link #issueCommand(String, boolean, long)} for Telnet
+ * equivalent to {@link #issueCommand(String, long)} for Telnet
* implementation
*
* @param command - command to issue
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IFileProcessor.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IFileProcessor.java
index 3c6573376..301354555 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IFileProcessor.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IFileProcessor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpHost.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpHost.java
index d27a0b6cf..807aee8d3 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpHost.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpHost.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
@@ -18,7 +18,7 @@
* Use the appropriate host manager annotation to obtain an object
*
*
- * @author Michael Baylis
+ *
*
*/
public interface IIpHost {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpPort.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpPort.java
index 79fc0d54d..761106e95 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpPort.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IIpPort.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
@@ -14,7 +14,7 @@
* Use the appropriate host manager annotation to obtain an object
*
*
- * @author Michael Baylis
+ *
*
*/
public interface IIpPort {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IpNetworkManagerException.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IpNetworkManagerException.java
index d4b1f013c..3c38d4295 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IpNetworkManagerException.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/IpNetworkManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHAuthFailException.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHAuthFailException.java
index 8bab7b76c..4fd3663ea 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHAuthFailException.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHAuthFailException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHException.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHException.java
index 1f86c30c1..cbe3af4f6 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHException.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/SSHException.java
@@ -1,14 +1,14 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork;
/**
* zOS Command exception indicating an error in SSH
*
- * @author James Bartlett
+ *
*
*/
public class SSHException extends IpNetworkManagerException {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkManagerImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkManagerImpl.java
index ea3442963..2607e6532 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkResourceManagement.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkResourceManagement.java
index a781355c6..2f35082cc 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpNetworkResourceManagement.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpPortImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpPortImpl.java
index 8bc9ff139..3332f93f4 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpPortImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/IpPortImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/PortResourceMonitor.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/PortResourceMonitor.java
index a88adec36..8dce94c36 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/PortResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/PortResourceMonitor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributes.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributes.java
index 267eb7bd6..b77376bd0 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributes.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributes.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
@@ -11,7 +11,7 @@
/**
* For use with the dummy RAS file system
*
- * @author Michael Baylis
+ *
*
*/
public class SSHBasicAttributes implements BasicFileAttributes {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributesView.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributesView.java
index e8f120537..adc93c2dc 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributesView.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHBasicAttributesView.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
@@ -13,7 +13,7 @@
/**
* For use with the dummy RAS file system
*
- * @author Michael Baylis
+ *
*
*/
public class SSHBasicAttributesView implements BasicFileAttributeView {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHByteChannel.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHByteChannel.java
index 354ebe110..5cb9ed0c8 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHByteChannel.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHByteChannel.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2020,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
@@ -25,7 +25,7 @@
/**
* Dummy Byte Channel for a null Result Archive Store
*
- * @author Michael Baylis
+ *
*
*/
public class SSHByteChannel implements SeekableByteChannel {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHDirectoryStream.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHDirectoryStream.java
index 6e49e6eba..0a54ea904 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHDirectoryStream.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHDirectoryStream.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileStore.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileStore.java
index 0c378c99c..449f252c2 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileStore.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileStore.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystem.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystem.java
index eb4ee2bdf..1aa404da9 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystem.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystem.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystemProvider.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystemProvider.java
index 9aca54b94..745c33919 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystemProvider.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHFileSystemProvider.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019-2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
@@ -43,7 +43,7 @@
/**
* SSH FileStore for Galasa
*
- * @author Michael Baylis
+ *
*
*/
public class SSHFileSystemProvider extends FileSystemProvider {
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHPath.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHPath.java
index 118f42d8c..ead811d4d 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHPath.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/internal/ssh/filesystem/SSHPath.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019-2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.internal.ssh.filesystem;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/package-info.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/package-info.java
index caf2b03dc..5bd1a06e6 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/package-info.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/package-info.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* IP Network Manager
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AbstractGenericIpHost.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AbstractGenericIpHost.java
index a87f0e3f8..c0f9a1775 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AbstractGenericIpHost.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AbstractGenericIpHost.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.ipnetwork.spi;
import javax.validation.constraints.NotNull;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AnsiEscapeSequences.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AnsiEscapeSequences.java
index 05a899f08..462bc6d54 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AnsiEscapeSequences.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/AnsiEscapeSequences.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.spi;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpHostSpi.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpHostSpi.java
index 24e983150..5162a8594 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpHostSpi.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpHostSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.spi;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpNetworkManagerSpi.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpNetworkManagerSpi.java
index 1d97a8494..6e8a058b0 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpNetworkManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/IIpNetworkManagerSpi.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.spi;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/SSHClient.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/SSHClient.java
index da9c51001..17526cb47 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/SSHClient.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.ipnetwork.manager/src/main/java/dev/galasa/ipnetwork/spi/SSHClient.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.ipnetwork.spi;
@@ -37,7 +39,7 @@
/**
* SSH client for Galasa
*
- * @author James Bartlett
+ *
*
*/
public class SSHClient implements ICommandShell {
@@ -68,11 +70,11 @@ public class SSHClient implements ICommandShell {
// Default value: Linux command
private String changePromptCommand = "PS1=" + specialPrompt;
- public SSHClient(String hostname, int port, ICredentials credentials, long defaultTimeout) throws SSHException {
+ public SSHClient(String hostname, int port, ICredentials credentials, long defaultTimeoutInMillis) throws SSHException {
this.hostname = hostname;
this.port = port;
- this.defaultTimeout = defaultTimeout;
+ this.defaultTimeout = defaultTimeoutInMillis;
this.sshClient = new JSch();
this.session = null;
@@ -99,8 +101,7 @@ public SSHClient(String hostname, int port, ICredentials credentials, long defau
}
/**
- * Issue a command using SSH. Equivalent to {@link #issueCommand(String, false,
- * defaultTimeout)}
+ * Issue a command using SSH. Equivalent to {@link #issueCommand(String, boolean, long)}
*
* @param command - command to issue
* @return the output of the command (stdout and stderr)
@@ -113,23 +114,23 @@ public String issueCommand(String command) throws SSHException {
}
/**
- * Issue a command using SSH. Equivalent to {@link #issueCommand(String, false,
+ * Issue a command using SSH. Equivalent to {@link #issueCommand(String, boolean,
* long)}
*
* @param command - command to issue
- * @param timeout - time (in milliseconds) to wait with no new output appearing
+ * @param timeoutInMillis - time (in milliseconds) to wait with no new output appearing
* before timing out
* @return the output of the command (stdout and stderr)
* @throws SSHException
*/
@Override
- public String issueCommand(String command, long timeout) throws SSHException {
- return issueCommand(command, false, timeout);
+ public String issueCommand(String command, long timeoutInMillis) throws SSHException {
+ return issueCommand(command, false, timeoutInMillis);
}
/**
* Issue a command using SSH. Equivalent to
- * {@link #issueCommand(String, boolean, defaultTimeout)}
+ * {@link #issueCommand(String, boolean, long)}
*
* @param command - command to issue
* @param newShell - if true will start a new
@@ -146,13 +147,13 @@ public String issueCommand(String command, boolean newShell) throws SSHException
*
* @param command - command to issue
* @param newShell - if true will start a new
- * @param timeout - time (in milliseconds) to wait with no new output appearing
+ * @param timeoutInMillis - time (in milliseconds) to wait with no new output appearing
* before timing out
* @return the output of the command (stdout and stderr)
* @throws SSHException
*/
@Override
- public synchronized String issueCommand(String command, boolean newShell, long timeout) throws SSHException {
+ public synchronized String issueCommand(String command, boolean newShell, long timeoutInMillis) throws SSHException {
// Connect if we are not already connected
connect();
@@ -167,7 +168,7 @@ public synchronized String issueCommand(String command, boolean newShell, long t
// Issue the desired command and retrieve the response to a
// string
- String response = retrieveOutput(command, timeout);
+ String response = retrieveOutput(command, timeoutInMillis);
if (logShellResults) {
logger.trace("Received '" + response);
@@ -201,12 +202,11 @@ public void setChangePromptCommand(String command) {
/**
* Issue a command using SSH shell. Equivalent to
- * {@link #issueCommandToShell(String, false, defaultTimeout)}
+ * {@link #issueCommandToShell(String, boolean, long)}
*
* @param command - command to issue
* @return the output of the command
* @throws SSHException
- * @throws JSchException
*/
@Override
public String issueCommandToShell(String command) throws SSHException {
@@ -216,29 +216,27 @@ public String issueCommandToShell(String command) throws SSHException {
/**
* Issue a command using SSH shell. Equivalent to
- * {@link #issueCommandToShell(String, false, long)}
+ * {@link #issueCommandToShell(String, boolean, long)}
*
* @param command - command to issue
- * @param timeout - time (in milliseconds) to wait with no new output appearing
+ * @param timeoutInMillis - time (in milliseconds) to wait with no new output appearing
* before timing out
* @return the output of the command
* @throws SSHException
- * @throws JSchException
*/
@Override
- public String issueCommandToShell(String command, long timeout) throws SSHException {
- return issueCommandToShell(command, false, timeout);
+ public String issueCommandToShell(String command, long timeoutInMillis) throws SSHException {
+ return issueCommandToShell(command, false, timeoutInMillis);
}
/**
* Issue a command using SSH shell. Equivalent to
- * {@link #issueCommandToShell(String, boolean, defaultTimeout)}
+ * {@link #issueCommandToShell(String, boolean, long)}
*
* @param command - command to issue
* @param newShell - if true will start a new
* @return the output of the command
* @throws SSHException
- * @throws JSchException
*/
@Override
public String issueCommandToShell(String command, boolean newShell) throws SSHException {
@@ -250,14 +248,13 @@ public String issueCommandToShell(String command, boolean newShell) throws SSHEx
*
* @param command - command to issue
* @param newShell - if true will start a new
- * @param timeout - time (in milliseconds) to wait with no new output appearing
+ * @param timeoutInMillis - time (in milliseconds) to wait with no new output appearing
* before timing out
* @return the output of the command
* @throws SSHException
- * @throws JSchException
*/
@Override
- public synchronized String issueCommandToShell(String command, boolean newShell, long timeout) throws SSHException {
+ public synchronized String issueCommandToShell(String command, boolean newShell, long timeoutInMillis) throws SSHException {
connect();
@@ -279,12 +276,12 @@ public synchronized String issueCommandToShell(String command, boolean newShell,
lastCommandTimestamp = System.currentTimeMillis();
// Set a special prompt so we can easily identify responses to our commands
logger.trace("Setting special prompt '" + specialPrompt + "'");
- retrieveOutputFromShell(channel, changePromptCommand, timeout);
+ retrieveOutputFromShell(channel, changePromptCommand, timeoutInMillis);
Thread.sleep(500); // NOSONAR - Sleep is sufficent
// Issue the desired command and retrieve the response to a string
lastCommandTimestamp = System.currentTimeMillis();
- String response = retrieveOutputFromShell(channel, command, timeout);
+ String response = retrieveOutputFromShell(channel, command, timeoutInMillis);
lastCommandTimestamp = System.currentTimeMillis();
return response;
@@ -406,17 +403,16 @@ public synchronized void disconnect() throws SSHException {
* Retrieve all output from the shell, returning only that which is found
* between the command issued and the next occurrence of the special prompt we
* defined in {@link #issueCommand(String)}
- *
- * @param session
+ *
* @param command
- * @param timeout
+ * @param timeoutInMillis
* @return
* @throws IOException
* @throws InterruptedException
* @throws ExecutionException
* @throws SSHException
*/
- private String retrieveOutput(String command, long timeout)
+ private String retrieveOutput(String command, long timeoutInMillis)
throws IOException, InterruptedException, ExecutionException, SSHException {
StringBuilder sb = new StringBuilder();
@@ -432,7 +428,7 @@ private String retrieveOutput(String command, long timeout)
InputStream err = channel.getErrStream();
channel.connect();
- long whenTimeout = Calendar.getInstance().getTimeInMillis() + timeout;
+ long whenTimeout = Calendar.getInstance().getTimeInMillis() + timeoutInMillis;
byte[] tmp = new byte[1024];
while (true) {
@@ -498,14 +494,14 @@ private byte[] removeAnsiEscapeCodes(byte[] bytes) throws IOException {
*
* @param channel
* @param command
- * @param timeout
+ * @param timeoutInMillis
* @return
* @throws IOException
* @throws InterruptedException
* @throws ExecutionException
* @throws SSHException
*/
- private String retrieveOutputFromShell(Channel channel, String command, long timeout)
+ private String retrieveOutputFromShell(Channel channel, String command, long timeoutInMillis)
throws IOException, InterruptedException, ExecutionException, SSHException {
// Get the input stream from the current session
@@ -537,7 +533,7 @@ private String retrieveOutputFromShell(Channel channel, String command, long tim
// Create an executor and a callable which will allow us to read continuously
// from
- // the input stream with a timeout
+ // the input stream with a timeoutInMillis
ExecutorService executor = Executors.newFixedThreadPool(2);
Callable reader = new Callable() {
@@ -557,7 +553,7 @@ public Integer call() throws Exception {
Future future = executor.submit(reader);
int read = 0;
try {
- read = future.get(timeout, TimeUnit.MILLISECONDS);
+ read = future.get(timeoutInMillis, TimeUnit.MILLISECONDS);
} catch (TimeoutException e) {
executor.shutdown();
throw new SSHException("Timed out waiting for response from ssh. Response so far: " + responseBuilder);
@@ -581,7 +577,10 @@ public Integer call() throws Exception {
private class KeepAliveThread extends Thread {
private final Session monitorSession;
- private long idleTimeout = 60000;
+
+ // Some commands we run download the isolated build zip which takes ages...
+ // Timeout increased from 60secs to 120secs to allow the download to complete.
+ private long idleTimeout = 120000;
public KeepAliveThread(Session session) {
this.monitorSession = session;
@@ -598,8 +597,6 @@ public KeepAliveThread(Session session) {
// }
//
// }
-
- return;
}
@Override
@@ -613,7 +610,7 @@ public void run() {
long timeout = System.currentTimeMillis() - idleTimeout;
if (timeout >= lastCommandTimestamp) {
- logger.debug("No command issued after " + idleTimeout + " milliseconds, closing SSH session");
+ logger.debug("SSH Client unused after " + idleTimeout + " milliseconds, freeing session");
this.monitorSession.disconnect();
}
}
@@ -624,8 +621,6 @@ public void run() {
return;
}
}
-
- return;
}
}
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/build.gradle
index 7029bf5df..0c1e2b9a6 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/build.gradle
@@ -10,3 +10,16 @@ dependencies {
implementation project(':galasa-managers-comms-parent:dev.galasa.mq.manager')
implementation project(':galasa-managers-core-parent:dev.galasa.core.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/settings.gradle
index 34aafed5e..65e6bd684 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/settings.gradle
@@ -1 +1,3 @@
-rootProject.name = 'dev.galasa.mq.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.mq.manager.ivt'
+
+
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/src/main/java/dev/galasa/mq/manager/ivt/MqManagerIVT.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/src/main/java/dev/galasa/mq/manager/ivt/MqManagerIVT.java
index a404ff20e..e261d0017 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/src/main/java/dev/galasa/mq/manager/ivt/MqManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager.ivt/src/main/java/dev/galasa/mq/manager/ivt/MqManagerIVT.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/build.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/build.gradle
index 13f87c0f8..b66dc26fb 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/build.gradle
@@ -15,3 +15,16 @@ dependencies {
implementation 'commons-codec:commons-codec:1.11'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/settings.gradle b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/settings.gradle
index 1aac5ba35..1dedfd9a8 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.mq.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.mq.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueue.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueue.java
index 4ab00ff40..c03cc06aa 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueue.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueue.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueueManager.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueueManager.java
index 427f066f9..153977c83 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueueManager.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/IMessageQueueManager.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerException.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerException.java
index 31cc80717..110c397d8 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerException.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq;
import dev.galasa.ManagerException;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerField.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerField.java
index 6a161c005..400449f6b 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerField.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/MqManagerField.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq;
@@ -12,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author William Yates
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/Queue.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/Queue.java
index 5769e2b35..d9f45d4d8 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/Queue.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/Queue.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/QueueManager.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/QueueManager.java
index 3dd071dda..d9488572b 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/QueueManager.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/QueueManager.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MQManagerImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MQManagerImpl.java
index e88c73ee1..f0008ac31 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MQManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MQManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageDirection.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageDirection.java
index b6b656466..e9c5615b6 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageDirection.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageDirection.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueImpl.java
index 92e232020..7b59a4f4a 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueManagerImpl.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueManagerImpl.java
index a56f21a9d..28f184ef2 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/MessageQueueManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceChannelName.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceChannelName.java
index 7316a102d..29700a389 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceChannelName.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceChannelName.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceCredentials.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceCredentials.java
index 7c334e613..60d6e72fc 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceCredentials.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceCredentials.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceForTag.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceForTag.java
index 51ecd4ae4..422d2ecae 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceForTag.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceForTag.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceHost.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceHost.java
index 6a6473ee1..c0969c099 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceHost.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceHost.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceName.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceName.java
index 5373bf762..e5c558628 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceName.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstanceName.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstancePort.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstancePort.java
index b2aeb0fa6..75d7d5ca4 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstancePort.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/InstancePort.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/MqPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/MqPropertiesSingleton.java
index d111ac4b3..52fdaead5 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/MqPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/MqPropertiesSingleton.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/QueueNameForTag.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/QueueNameForTag.java
index c5f749421..b2c39091b 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/QueueNameForTag.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/internal/properties/QueueNameForTag.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.mq.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/package-info.java b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/package-info.java
index da92690ff..a7aba53a3 100644
--- a/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/package-info.java
+++ b/galasa-managers-parent/galasa-managers-comms-parent/dev.galasa.mq.manager/src/main/java/dev/galasa/mq/package-info.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* Message Queueing Manager
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/build.gradle
index 6bcd57faf..ea33ba5c3 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/build.gradle
@@ -4,9 +4,22 @@ plugins {
description = 'Galasa Artifact Manager IVTs'
-version = '0.21.0'
+version = '0.25.0'
dependencies {
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project(':galasa-managers-core-parent:dev.galasa.core.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/settings.gradle
index e7a324369..8cbc70bff 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.artifact.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.artifact.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/java/dev/galasa/artifact/manager/ivt/ArtifactManagerIVT.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/java/dev/galasa/artifact/manager/ivt/ArtifactManagerIVT.java
index a8634946c..a2878bd79 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/java/dev/galasa/artifact/manager/ivt/ArtifactManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/java/dev/galasa/artifact/manager/ivt/ArtifactManagerIVT.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact.manager.ivt;
@@ -45,14 +45,14 @@ public void checkManagerNotNull() throws Exception {
@Test
public void testRetrieveFileAsStringMethod() throws Exception {
- String textContent = resources.retrieveFileAsString("/resources/textFiles/test1.txt");
+ String textContent = resources.retrieveFileAsString("/textFiles/test1.txt");
logger.debug("Read the following from the file test1.txt: " + textContent);
assertThat(textContent.trim()).isEqualTo("Hello from Galasa");
}
@Test
public void testRetrieveSkeletonFileAsStringMethod() throws Exception {
- String textContent = resources.retrieveSkeletonFileAsString("/resources/skeletons/test1.skel", buildHashMap());
+ String textContent = resources.retrieveSkeletonFileAsString("/skeletons/test1.skel", buildHashMap());
logger.info("Received the following from the skeleton file: " + textContent);
assertThat(textContent.trim()).isEqualTo("The third parameter is ITEM NUMBER THREE");
}
@@ -60,7 +60,7 @@ public void testRetrieveSkeletonFileAsStringMethod() throws Exception {
@Test
public void readTextFileArtifactManager() throws Exception, TestBundleResourceException, IOException {
- InputStream file = resources.retrieveFile("/resources/textFiles/test1.txt");
+ InputStream file = resources.retrieveFile("/textFiles/test1.txt");
String textContent = artifacts.getBundleResources(this.getClass()).streamAsString(file);
logger.debug("Read the following from the file test1.txt: " + textContent);
assertThat(textContent.trim()).isEqualTo("Hello from Galasa");
@@ -68,7 +68,7 @@ public void readTextFileArtifactManager() throws Exception, TestBundleResourceEx
@Test
public void readTextFileBundleResources() throws Exception, TestBundleResourceException, IOException {
- String textContent = resources.streamAsString(resources.retrieveFile("/resources/textFiles/test1.txt"));
+ String textContent = resources.streamAsString(resources.retrieveFile("/textFiles/test1.txt"));
logger.debug("Read the following from the file test1.txt: " + textContent);
assertThat(textContent.trim()).isEqualTo("Hello from Galasa");
}
@@ -83,21 +83,21 @@ private HashMap buildHashMap(){
@Test
public void readSkeletonBundleResources() throws TestBundleResourceException, Exception, IOException {
- String textContent = resources.streamAsString(resources.retrieveSkeletonFile("/resources/skeletons/test1.skel", buildHashMap()));
+ String textContent = resources.streamAsString(resources.retrieveSkeletonFile("/skeletons/test1.skel", buildHashMap()));
logger.info("Received the following from the skeleton file: " + textContent);
assertThat(textContent.trim()).isEqualTo("The third parameter is ITEM NUMBER THREE");
}
@Test
public void readSkeletonBundleResourcesVelocity() throws TestBundleResourceException, Exception, IOException {
- String textContent = resources.streamAsString(resources.retrieveSkeletonFile("/resources/velocity/velocityTest.skel", buildHashMap(), SkeletonType.VELOCITY));
+ String textContent = resources.streamAsString(resources.retrieveSkeletonFile("/velocity/velocityTest.skel", buildHashMap(), SkeletonType.VELOCITY));
logger.info("Received the following from the skeleton file: " + textContent);
assertThat(textContent.trim()).isEqualTo("The third parameter is ITEM NUMBER THREE");
}
@Test
public void readSkeletonFileArtifactManager() throws TestBundleResourceException, Exception, IOException {
- InputStream is = resources.retrieveSkeletonFile("/resources/skeletons/test1.skel", buildHashMap());
+ InputStream is = resources.retrieveSkeletonFile("/skeletons/test1.skel", buildHashMap());
String textContent = artifacts.getBundleResources(this.getClass()).streamAsString(is);
logger.info("Received the following from the skeleton file: " + textContent);
@@ -111,7 +111,7 @@ public void readSkeletonFile2ArtifactManager() throws TestBundleResourceExceptio
props.put("ITEM2", "SECOND ITEM");
props.put("ITEM3", "ITEM NUMBER THREE");
- InputStream is = resources.retrieveSkeletonFile("/resources/skeletons/test2.skel", props);
+ InputStream is = resources.retrieveSkeletonFile("/skeletons/test2.skel", props);
String textContent = artifacts.getBundleResources(this.getClass()).streamAsString(is);
logger.info("Received the following from the skeleton file: " + textContent);
@@ -121,7 +121,7 @@ public void readSkeletonFile2ArtifactManager() throws TestBundleResourceExceptio
@Test
public void readFileAsList() throws TestBundleResourceException, IOException {
- InputStream is = resources.retrieveFile("/resources/textFiles/list.txt");
+ InputStream is = resources.retrieveFile("/textFiles/list.txt");
List listContent = artifacts.getBundleResources(this.getClass()).streamAsList(is);
logger.info("Received the following from the text file: " + listContent);
@@ -133,17 +133,17 @@ public void readFileAsList() throws TestBundleResourceException, IOException {
@Test
public void retrieveDirectoryContentsTest() throws Exception {
- Map contents = resources.retrieveDirectoryContents("/resources/textFiles");
+ Map contents = resources.retrieveDirectoryContents("/textFiles");
logger.info("Received the following from the directory: " + contents);
- assertThat(contents).containsKey("resources/textFiles/list.txt");
- assertThat(contents).containsKey("resources/textFiles/test1.txt");
+ assertThat(contents).containsKey("textFiles/list.txt");
+ assertThat(contents).containsKey("textFiles/test1.txt");
}
@Test
public void retrieveEmptyDirectoryContentsTest() throws Exception {
- Map contents = resources.retrieveDirectoryContents("/resources/emptyDirectory");
+ Map contents = resources.retrieveDirectoryContents("/emptyDirectory");
logger.info("Received the following from the directory: " + contents);
@@ -152,57 +152,43 @@ public void retrieveEmptyDirectoryContentsTest() throws Exception {
@Test
public void retrieveNestedirectoryContentsTest() throws Exception {
- Map contents = resources.retrieveDirectoryContents("/resources/directory");
+ Map contents = resources.retrieveDirectoryContents("/directory");
logger.info("Received the following from the directory: " + contents);
- assertThat(contents).containsKey("resources/directory/nestedDirectory/nestedFile.txt");
+ assertThat(contents).containsKey("directory/nestedDirectory/nestedFile.txt");
}
@Test
public void retrieveSkeletonDirectoryContentsTest() throws Exception {
- Map contents = resources.retrieveSkeletonDirectoryContents("/resources/skeletons", buildHashMap(), 0);
+ Map contents = resources.retrieveSkeletonDirectoryContents("/skeletons", buildHashMap(), 0);
logger.info("Received the following from the directory: " + contents);
//Asserts that directory contains correct files
- assertThat(contents).containsKey("resources/skeletons/test1.skel");
- assertThat(contents).containsKey("resources/skeletons/test2.skel");
+ assertThat(contents).containsKey("skeletons/test1.skel");
+ assertThat(contents).containsKey("skeletons/test2.skel");
+
+ //assert that there are only two entries
+ assertThat(contents.keySet().size()).isEqualTo(2);
+
+ String textContent = new String();
+
+ textContent = resources.streamAsString(contents.get("skeletons/test1.skel"));
+ logger.info("Received the following from the file: " + textContent);
+ assertThat(textContent).contains("ITEM NUMBER THREE");
- int i = 1;
- //Iterates through the directory contents
- for (Map.Entry entry : contents.entrySet()) {
- //Switch checks i and uses case associated, initially set to 1
- switch(i)
- {
- //For the first inputStream stored in Map, stream as a string and assert that variables are correctly substituted
- case 1:
- String textContent = resources.streamAsString(entry.getValue());
- logger.info("Received the following from the file: " + textContent);
+ textContent = resources.streamAsString(contents.get("skeletons/test2.skel"));
+ logger.info("Received the following from the file: " + textContent);
+ assertThat(textContent).contains("The third parameter is ITEM NUMBER THREE\n" +
+ "The first item was \"THIS IS ITEM1\" and this is the second line ");
- assertThat(textContent).contains("ITEM NUMBER THREE");
- break;
- //For the second inputStream stored in Map, stream as a string and assert that variables are correctly substituted
- case 2:
- String textContent2 = resources.streamAsString(entry.getValue());
- logger.info("Received the following from the file: " + textContent2);
-
- assertThat(textContent2).contains("The third parameter is ITEM NUMBER THREE\n" +
- "The first item was \"THIS IS ITEM1\" and this is the second line ");
- break;
- //If there are more entries than the two expected, throw error
- default:
- throw new Exception("Invalid content in directory files");
- }
- // increments i so that case 2 is used on the next loop
- i++;
- }
}
@Test
public void retrieveJarTest() throws Exception {
- InputStream is = resources.retrieveJar("HelloGalasa", "0.0.1", "/resources/jars/");
+ InputStream is = resources.retrieveJar("HelloGalasa", "0.0.1", "/jars/");
String jarContent = resources.streamAsString(is);
//If the class file is found then the jar has been retrieved successfully
@@ -212,7 +198,7 @@ public void retrieveJarTest() throws Exception {
@Test
public void retrieveJarTestWithVersionCompare() throws Exception {
- InputStream is = resources.retrieveJar("dev.galasa", "0.15.0.202105120649", "/resources/jars/");
+ InputStream is = resources.retrieveJar("dev.galasa", "0.15.0.202105120649", "/jars/");
String jarContent = resources.streamAsString(is);
@@ -223,7 +209,7 @@ public void retrieveJarTestWithVersionCompare() throws Exception {
@Test
public void retrieveJarTestWithinRange() throws Exception {
- InputStream is = resources.retrieveJar("dev.galasa", "(0.14.0.202105120649,0.16.0.202105120649)", "/resources/jars/");
+ InputStream is = resources.retrieveJar("dev.galasa", "(0.14.0.202105120649,0.16.0.202105120649)", "/jars/");
String jarContent = resources.streamAsString(is);
@@ -235,7 +221,7 @@ public void retrieveJarTestWithinRange() throws Exception {
@Test
public void retrieveJarTestNoVersion() throws Exception {
- InputStream is = resources.retrieveJar("HelloGalasa", "", "/resources/jars/");
+ InputStream is = resources.retrieveJar("HelloGalasa", "", "/jars/");
String jarContent = resources.streamAsString(is);
@@ -245,7 +231,7 @@ public void retrieveJarTestNoVersion() throws Exception {
@Test
public void retrieveJarTestDifferSeperator() throws Exception {
- InputStream is = resources.retrieveJar("HelloGalasa", "0.0.1", "/resources/jarsHyphenVersion/");
+ InputStream is = resources.retrieveJar("HelloGalasa", "0.0.1", "/jarsHyphenVersion/");
String jarContent = resources.streamAsString(is);
@@ -256,7 +242,7 @@ public void retrieveJarTestDifferSeperator() throws Exception {
@Test
public void zipDirectoryTestGZIP() throws TestBundleResourceException, IOException {
- InputStream is = resources.zipDirectoryContents("/resources/zipFiles/", buildHashMap(), "US-ASCII", true);
+ InputStream is = resources.zipDirectoryContents("/zipFiles/", buildHashMap(), "US-ASCII", true);
GZIPInputStream gzip = new GZIPInputStream(is);
//Decode zip using "US-ASCII"
@@ -273,7 +259,7 @@ public void zipDirectoryTestGZIP() throws TestBundleResourceException, IOExcepti
@Test
public void zipDirectoryTest() throws TestBundleResourceException, IOException {
- InputStream is = resources.zipDirectoryContents("/resources/zipFiles/", buildHashMap(), "US-ASCII", false);
+ InputStream is = resources.zipDirectoryContents("/zipFiles/", buildHashMap(), "US-ASCII", false);
//Decode zip using "US-ASCII"
String text = "Decoded Zip: ";
@@ -289,7 +275,7 @@ public void zipDirectoryTest() throws TestBundleResourceException, IOException {
@Test
public void zipDirectoryTestNoEncoding() throws TestBundleResourceException, IOException {
- InputStream is = resources.zipDirectoryContents("/resources/zipFiles/", buildHashMap(), null, false);
+ InputStream is = resources.zipDirectoryContents("/zipFiles/", buildHashMap(), null, false);
//Read zip using no encoding"
String text = "Zip: ";
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/directory/nestedDirectory/nestedFile.txt b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/directory/nestedDirectory/nestedFile.txt
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/directory/nestedDirectory/nestedFile.txt
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/directory/nestedDirectory/nestedFile.txt
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jars/HelloGalasa.jar b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jars/HelloGalasa.jar
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jars/HelloGalasa.jar
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jars/HelloGalasa.jar
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jars/HelloGalasa_0.0.1.jar b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jars/HelloGalasa_0.0.1.jar
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jars/HelloGalasa_0.0.1.jar
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jars/HelloGalasa_0.0.1.jar
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jars/dev.galasa.0.15.0.202105120649.jar b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jars/dev.galasa.0.15.0.202105120649.jar
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jars/dev.galasa.0.15.0.202105120649.jar
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jars/dev.galasa.0.15.0.202105120649.jar
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jarsHyphenVersion/HelloGalasa-0.0.1.jar b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jarsHyphenVersion/HelloGalasa-0.0.1.jar
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/jarsHyphenVersion/HelloGalasa-0.0.1.jar
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/jarsHyphenVersion/HelloGalasa-0.0.1.jar
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/skeletons/test1.skel b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/skeletons/test1.skel
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/skeletons/test1.skel
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/skeletons/test1.skel
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/skeletons/test2.skel b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/skeletons/test2.skel
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/skeletons/test2.skel
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/skeletons/test2.skel
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/textFiles/list.txt b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/textFiles/list.txt
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/textFiles/list.txt
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/textFiles/list.txt
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/textFiles/test1.txt b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/textFiles/test1.txt
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/textFiles/test1.txt
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/textFiles/test1.txt
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/velocity/velocityTest.skel b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/velocity/velocityTest.skel
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/velocity/velocityTest.skel
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/velocity/velocityTest.skel
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/zipFiles/zipTest.txt b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/zipFiles/zipTest.txt
similarity index 100%
rename from galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/resources/zipFiles/zipTest.txt
rename to galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager.ivt/src/main/resources/zipFiles/zipTest.txt
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/build.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/build.gradle
index 1ca45aae2..9e9f0d4ec 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/build.gradle
@@ -6,9 +6,23 @@ plugins {
description = 'Handles the retrieval of artifacts from the OSGi bundles'
-version = '0.21.0'
+version = '0.34.0'
dependencies {
- implementation 'org.apache.velocity:velocity:1.7'
- implementation 'commons-io:commons-io:2.9.0'
-}
\ No newline at end of file
+ implementation 'org.apache.velocity:velocity-engine-core:2.3'
+ implementation 'commons-io:commons-io:2.16.1'
+}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/settings.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/settings.gradle
index 0b8530e68..2a03f16df 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/settings.gradle
@@ -1 +1,2 @@
rootProject.name = 'dev.galasa.artifact.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManager.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManager.java
index 6eadb2d02..038127971 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManager.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManager.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
@@ -16,7 +16,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author William Yates
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManagerField.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManagerField.java
index 9d5e06645..7ff5535ba 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManagerField.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ArtifactManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Will Yates
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/BundleResources.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/BundleResources.java
index 37e08172e..df31cdba8 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/BundleResources.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/BundleResources.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
@@ -15,7 +15,7 @@
/**
* Obtain a {@link IBundleResources} object for this test class
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IArtifactManager.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IArtifactManager.java
index 07b69abe5..f67d3e37a 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IArtifactManager.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IArtifactManager.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
@@ -12,7 +12,7 @@
* retrieving artifacts/resources from the 'resources' directory in your test
* bundle, and manipulating those resources
*
- * @author James Bartlett
+ *
*
*/
public interface IArtifactManager {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IBundleResources.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IBundleResources.java
index 461d0e94a..3f7ddc1c9 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IBundleResources.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/IBundleResources.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
@@ -24,10 +24,12 @@ public interface IBundleResources {
InputStream retrieveFile(String path) throws TestBundleResourceException;
/**
- * Retrieve a file as a String
- * @param path
- * @return
+ * Retrieve the contents of a file as a String
+ *
+ * @param path The path to the file to which will be read
+ * @return The contents of the file
* @throws TestBundleResourceException
+ * @throws IOException
*/
String retrieveFileAsString(String path) throws TestBundleResourceException, IOException;
@@ -46,25 +48,32 @@ InputStream retrieveSkeletonFile(String path, Map parameters, in
/**
- * Retrieve a single file as an InputStream, if the file is a skeleton then any
- * required substitutions will be performed before the stream is returned. Uses
- * the default skeleton processor {@link SkeletonType#PLUSPLUS}
+ * Retrieve a single file as an InputStream
*
- * @param path
+ * If the file is a skeleton then any
+ * required substitutions will be performed before the stream is returned.
+ *
+ * Uses the default {@link ISkeletonProcessor}
+ *
+ * @param path The path to the file
* @param parameters
- * @return
+ * @return A stream so the caller can read the contents of the file
* @throws TestBundleResourceException
*/
InputStream retrieveSkeletonFile(String path, Map parameters) throws TestBundleResourceException;
/**
- * Retrieve a single file as a String, if the file is a skeleton then any
- * required substitutions will be performed before the string is returned. Uses
- * the default skeleton processor {@link SkeletonType#PLUSPLUS}
- * @param path
- * @param parameters
- * @return
+ * Retrieve a single file as a String
+ *
+ * If the file is a skeleton then any required substitutions will
+ * be performed before the string is returned.
+ *
+ * Uses the default {@link ISkeletonProcessor}
+ *
+ * @param path The path to the file to be read
+ * @param parameters
+ * @return The contents of the file
* @throws TestBundleResourceException
*/
String retrieveSkeletonFileAsString(String path, Map parameters) throws TestBundleResourceException, IOException;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ISkeletonProcessor.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ISkeletonProcessor.java
index 800cb896c..f66891832 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ISkeletonProcessor.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/ISkeletonProcessor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/OutputRepositoryException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/OutputRepositoryException.java
index f0f060b58..599574bbd 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/OutputRepositoryException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/OutputRepositoryException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/SkeletonProcessorException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/SkeletonProcessorException.java
index edc2fa60e..346af02b8 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/SkeletonProcessorException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/SkeletonProcessorException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/TestBundleResourceException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/TestBundleResourceException.java
index 162773e07..fea92cfe9 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/TestBundleResourceException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/TestBundleResourceException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/ArtifactManagerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/ArtifactManagerImpl.java
index 7593d734b..f17974afc 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/ArtifactManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/ArtifactManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/BundleResourcesImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/BundleResourcesImpl.java
index e511cd18c..3c71ff47e 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/BundleResourcesImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/BundleResourcesImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact.internal;
@@ -484,9 +484,6 @@ private String normalisePath(String rawPath) {
if (!rawPath.startsWith(FILE_SEPARATOR))
rawPath = FILE_SEPARATOR + rawPath;
- if (!rawPath.startsWith(FILE_SEPARATOR + "resources"))
- rawPath = FILE_SEPARATOR + "resources" + rawPath;
-
rawPath = rawPath.replaceAll("\\/+", "/");
rawPath = rawPath.replaceFirst(FILE_SEPARATOR, "");
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/PlusPlusSkeletonProcessor.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/PlusPlusSkeletonProcessor.java
index 4afcc4cb3..92aaf659a 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/PlusPlusSkeletonProcessor.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/PlusPlusSkeletonProcessor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact.internal;
@@ -26,7 +26,7 @@
/**
* A simple skeleton processor to replace velocity
*
- * @author James Bartlett
+ *
*
*/
public class PlusPlusSkeletonProcessor implements ISkeletonProcessor {
@@ -199,7 +199,7 @@ public String purgeUnusedMarkers(String skeletonContent) {
/**
* Describes a known form of delimiting a value to be substituted
*
- * @author root
+ *
*
*/
private class Delimiter {
@@ -277,7 +277,7 @@ public String substitute(String input, String key, String value) {
* Describes a known way of describing a substitution for each member of some
* collection
*
- * @author root
+ *
*
*/
private class LoopForm {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/VelocitySkeletonProcessor.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/VelocitySkeletonProcessor.java
index f3b8e99b4..8ad5e8e23 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/VelocitySkeletonProcessor.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/internal/VelocitySkeletonProcessor.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.artifact.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/package-info.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/package-info.java
index 10d2880d1..99bd21c70 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/package-info.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/main/java/dev/galasa/artifact/package-info.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* Artifact Manager
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/test/java/dev/galasa/artifact/manager/DummyTest.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/test/java/dev/galasa/artifact/manager/DummyTest.java
index efde7b4c4..d82b52d66 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/test/java/dev/galasa/artifact/manager/DummyTest.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.artifact.manager/src/test/java/dev/galasa/artifact/manager/DummyTest.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.artifact.manager;
import org.junit.Assert;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/build.gradle
index 8d10149bf..6f5c3780a 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/build.gradle
@@ -9,3 +9,16 @@ version = '0.21.0'
dependencies {
implementation project(':galasa-managers-core-parent:dev.galasa.core.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/settings.gradle
index c6115ed62..e5560f772 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.core.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.core.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/core/manager/ivt/CoreManagerIVT.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/core/manager/ivt/CoreManagerIVT.java
index c1f0c563b..8c3f3bf61 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/core/manager/ivt/CoreManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/core/manager/ivt/CoreManagerIVT.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.core.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTest.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTest.java
index 452747304..a04b5832c 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTest.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTest.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.framework.ivt;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtended.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtended.java
index 35d9947aa..577d93813 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtended.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtended.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.framework.ivt;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtendedAgain.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtendedAgain.java
index ed217178e..005fe1799 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtendedAgain.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestExtendedAgain.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.framework.ivt;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestFail.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestFail.java
index 66bbe87cc..425f79df0 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestFail.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager.ivt/src/main/java/dev/galasa/framework/ivt/BasicTestFail.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.framework.ivt;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/build.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/build.gradle
index 1e592576f..965ea1935 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/build.gradle
@@ -3,8 +3,22 @@ plugins {
}
description = 'Galasa Core Manager'
-version = '0.21.0'
+version = '0.31.0'
dependencies {
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'com.google.code.gson:gson:2.10.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/settings.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/settings.gradle
index 6b49a5e37..844405f7b 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.core.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.core.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManager.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManager.java
index 66f11210b..f9f138b35 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManager.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManager.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
import static java.lang.annotation.ElementType.FIELD;
@@ -12,17 +14,11 @@
import dev.galasa.framework.spi.ValidAnnotatedFields;
/**
- *
* Fill this field with the Core Manager instance.
- *
*
- *
* Will only populate public {@link ICoreManager} fields.
- *
- *
- * @author Michael Baylis
- * @see {@link ICoreManager}
*
+ * @see ICoreManager
*/
@Retention(RUNTIME)
@Target(FIELD)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerException.java
index edb8d8b8b..2e7d2618a 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.core.manager;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerField.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerField.java
index f469f5420..82516f544 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerField.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/CoreManagerField.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
import java.lang.annotation.ElementType;
@@ -12,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ICoreManager.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ICoreManager.java
index 621c21812..73e008420 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ICoreManager.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ICoreManager.java
@@ -1,31 +1,27 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.core.manager;
import javax.validation.constraints.NotNull;
import dev.galasa.ICredentials;
+import dev.galasa.ICredentialsUsernamePassword;
/**
- *
* The Core Manager provides Tests with access to some of the most common
* features within the Galasa Framework
- *
*
- *
* To gain access to the Core Manager, include the following in the test class:-
- *
*
*
- * @CoreManager
- * public ICoreManager coreManager;
- *
+ @CoreManager
+ public ICoreManager coreManager;
+
*
- * @author Michael Baylis
- * @See {@link CoreManager}
+ * @see CoreManager
*
*/
public interface ICoreManager {
@@ -47,5 +43,15 @@ public interface ICoreManager {
*/
ICredentials getCredentials(@NotNull String credentialsId) throws CoreManagerException;
+ /**
+ * Retrieve Username and Password Credentials only
+ *
+ * @param credentialsId
+ * @return A credentials object or null if id not found
+ * @throws CoreManagerException If there is a problem accessing the credentials store
+ * or if the credential is not of type ICredentialsUsernamePassword
+ */
+ ICredentialsUsernamePassword getUsernamePassword(@NotNull String credentialsId) throws CoreManagerException;
+
void registerConfidentialText(String confidentialString, String comment);
}
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/IResourceString.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/IResourceString.java
index 181801887..492d7c7e7 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/IResourceString.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/IResourceString.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
public interface IResourceString {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/Logger.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/Logger.java
index c360cb49e..cba8e5f8c 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/Logger.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/Logger.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
import static java.lang.annotation.ElementType.FIELD;
@@ -22,7 +24,7 @@
*
*
* @see {@link org.apache.commons.logging.Log}
- * @author Michael Baylis
+ *
*
*/
@Retention(RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ResourceString.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ResourceString.java
index d9576142e..913b7aa71 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ResourceString.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/ResourceString.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
import static java.lang.annotation.ElementType.FIELD;
@@ -17,10 +19,10 @@
* The CPS property core.resource.string.[length].pattern determines the make up of the random string.
*
*
- * Will only populate public {@link java.lang.Stringdev.galasa.core.manager.IResourceString} fields.
+ * Will only populate public {@link dev.galasa.core.manager.IResourceString} fields.
*
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RUNTIME)
@@ -35,7 +37,7 @@
*
* The tag must be provided as there is no default for this resource.
*
- * The {@link java.lang.Stringdev.galasa.core.manager.IResourceString} object is keyed on the tag, so if the tag is referred to in multiple
+ * The {@link dev.galasa.core.manager.IResourceString} object is keyed on the tag, so if the tag is referred to in multiple
* super classes, then the lengths must be identical otherwise an exception will be thrown.
*/
String tag();
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/RunName.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/RunName.java
index 3944b51f3..55c741317 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/RunName.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/RunName.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
import static java.lang.annotation.ElementType.FIELD;
@@ -12,19 +14,13 @@
import dev.galasa.framework.spi.ValidAnnotatedFields;
/**
- *
- * Fill this field with the name of the Test Run. Can be used for making
- * resource names unique to this run. The Test Run will be unique across all
- * Local and Automated runs that are in the system at that point.
- *
+ * Fill this field with the name of the Test Run.
+ *
+ * Can be used for making resource names unique to this run.
+ * The Test Run will be unique across all Local and Automated runs
+ * that are in the system at that point.
*
- *
* Will only populate public {@link java.lang.String} fields.
- *
* Fill this field Root path of the Stored Artifacts for this Test Run. This can
* be used to record test logs, job output, trace files etc.
- *
- *
- *
- * Will only populate public {@link java.nio.files.Path} fields.
- *
- *
- * @author Michael Baylis
- * @see {@link java.nio.files.Path}
*
+ * Will only populate public {@link java.nio.file.Path} fields.
+ *
+ * @see java.nio.file.Path
*/
@Retention(RUNTIME)
@Target(FIELD)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/TestProperty.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/TestProperty.java
index 12b9d6202..536390407 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/TestProperty.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/TestProperty.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager;
import static java.lang.annotation.ElementType.FIELD;
@@ -20,7 +22,7 @@
*
*
* @see {@link String}
- * @author Michael Baylis
+ *
*
*/
@Retention(RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CoreManagerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CoreManagerImpl.java
index c48d70d82..a5e4e5a2e 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CoreManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CoreManagerImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal;
import java.lang.annotation.Annotation;
@@ -16,6 +18,7 @@
import org.osgi.service.component.annotations.Component;
import dev.galasa.ICredentials;
+import dev.galasa.ICredentialsUsernamePassword;
import dev.galasa.ManagerException;
import dev.galasa.Tags;
import dev.galasa.TestAreas;
@@ -174,7 +177,7 @@ public String createTestproperty(Field field, List annotations) thro
+ ",suffix="
+ testPropertyAnnotation.suffix()
+ ",infixes="
- + testPropertyAnnotation.infixes());
+ + String.join(",",testPropertyAnnotation.infixes()));
}
return value;
@@ -222,6 +225,15 @@ public ICredentials getCredentials(@NotNull String credentialsId) throws CoreMan
throw new CoreManagerException("Unable to retrieve credentials for id " + credentialsId, e);
}
}
+
+ @Override
+ public ICredentialsUsernamePassword getUsernamePassword(@NotNull String credentialsId) throws CoreManagerException {
+ ICredentials cred =getCredentials(credentialsId);
+ if(!(cred instanceof ICredentialsUsernamePassword)) {
+ throw new CoreManagerException("Unable to retrieve username/password credentials for id"+ credentialsId);
+ }
+ return (ICredentialsUsernamePassword) cred;
+ }
@Override
public void registerConfidentialText(String confidentialString, String comment) {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CorePropertiesSingleton.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CorePropertiesSingleton.java
index 02f77e466..af2d570ba 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CorePropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/CorePropertiesSingleton.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal;
import org.osgi.service.component.annotations.Activate;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringGenerator.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringGenerator.java
index 6d163e169..f47a48c1f 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringGenerator.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringGenerator.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal;
import java.lang.reflect.Field;
@@ -28,7 +30,7 @@
* Generate Resource Strings using random letters
*
*
- * @author Michael Baylis
+ *
*
*/
public class ResourceStringGenerator {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringImpl.java
index 3e46bca79..9691129c0 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/ResourceStringImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal;
import dev.galasa.core.manager.IResourceString;
@@ -9,7 +11,7 @@
* Basic holder of a Resource String.
* Not strictly necessary, but future proofing
*
- * @author Michael Baylis
+ *
*
*/
public class ResourceStringImpl implements IResourceString {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/gherkin/CoreStatementOwner.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/gherkin/CoreStatementOwner.java
index c401efac8..afd698ede 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/gherkin/CoreStatementOwner.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/gherkin/CoreStatementOwner.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal.gherkin;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/package-info.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/package-info.java
index 735995e3c..acf044e0c 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/package-info.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/package-info.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* Galasa Core Manager - Internal Implementation
*/
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/properties/ResourceStringPattern.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/properties/ResourceStringPattern.java
index 028c379d9..6a15c4c87 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/properties/ResourceStringPattern.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/properties/ResourceStringPattern.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.core.manager.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/CoreResourceManagement.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/CoreResourceManagement.java
index a89f37671..75a1f64d7 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/CoreResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/CoreResourceManagement.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.core.manager.internal.resourcemanagement;
@@ -21,7 +23,7 @@
* resources after a test has been terminated
*
*
- * @author Michael Baylis
+ *
*
*/
@Component(service = { IResourceManagementProvider.class })
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/ResourceStringResourceManagement.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/ResourceStringResourceManagement.java
index fa1263ec5..250182f94 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/ResourceStringResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/resourcemanagement/ResourceStringResourceManagement.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.core.manager.internal.resourcemanagement;
@@ -20,7 +22,7 @@
/**
* Core Resource String Resource Management
*
- * @author Michael Baylis
+ *
*
*/
public class ResourceStringResourceManagement implements Runnable {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/testcatalog/CoreTestCatalogBuilder.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/testcatalog/CoreTestCatalogBuilder.java
index ecb017d0f..bfe35fa3b 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/testcatalog/CoreTestCatalogBuilder.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/internal/testcatalog/CoreTestCatalogBuilder.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal.testcatalog;
import com.google.gson.JsonArray;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/package-info.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/package-info.java
index e0bc029d3..68256d835 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/package-info.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/main/java/dev/galasa/core/manager/package-info.java
@@ -1,7 +1,7 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
/**
* Galasa Core Manager
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/test/java/dev/galasa/core/manager/internal/CoreManagerTest.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/test/java/dev/galasa/core/manager/internal/CoreManagerTest.java
index 08441c8a3..761a0cc15 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/test/java/dev/galasa/core/manager/internal/CoreManagerTest.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.core.manager/src/test/java/dev/galasa/core/manager/internal/CoreManagerTest.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.core.manager.internal;
import static org.mockito.Mockito.when;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/build.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/build.gradle
index 42f5f3029..52e6c8ad5 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/build.gradle
@@ -4,8 +4,22 @@ plugins {
description = 'Galasa Text Scan Manager'
-version = '0.21.0'
+version = '0.34.0'
dependencies {
- implementation 'commons-io:commons-io:2.9.0'
+ implementation 'commons-io:commons-io:2.16.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/settings.gradle b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/settings.gradle
index f6a3dec00..9512b318b 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.textscan.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.textscan.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/CheckpointException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/CheckpointException.java
index 3d2cb9c89..19e30e0cb 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/CheckpointException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/CheckpointException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/FailTextFoundException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/FailTextFoundException.java
index 4a0af8455..051153bb5 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/FailTextFoundException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/FailTextFoundException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ILogScanner.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ILogScanner.java
index 67cc44793..a99c09e32 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ILogScanner.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ILogScanner.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
@@ -15,7 +15,7 @@
* You can obtain an implementation of this interface using the {@link LogScanner} annotation.
* You will need a separate object per log you will be scanning.
*
- * @author Michael Baylis
+ *
*
*/
public interface ILogScanner {
@@ -96,8 +96,8 @@ public interface ILogScanner {
/**
* Convenience method for scan(Pattern.Compile("\Q" + searchString + "\E"), Pattern.Compile("\Q" + failString + "\E"), count)
*
- * @param searchText The text to search for
- * @param failText Failure text to search for, can be null meaning no fail search
+ * @param searchString The text to search for
+ * @param failString Failure text to search for, can be null meaning no fail search
* @param count at least how many occurrences of the searchText must exist
* @return This log scanner for fluent calls
* @throws FailTextFoundException If the failText was found
@@ -144,7 +144,7 @@ public interface ILogScanner {
*
* @param searchPattern The regex to search for
* @param failPattern Failure regex to search for, can be null meaning no fail search
- * @param occurrence The occurrence to be returned
+ * @param occurrance The occurrence to be returned
* @return The text of the searchPattern found
* @throws MissingTextException The searchPattern was not found at all
* @throws IncorrectOccurrencesException If the specified occurrence was not found
@@ -155,9 +155,9 @@ public interface ILogScanner {
/**
* Convenience method for scanForMatch(Pattern.Compile("\Q" + searchString + "\E"), Pattern.Compile("\Q" + searchString + "\E"), occurrence)
*
- * @param searchText The text to search for
- * @param failText Failure text to search for, can be null meaning no fail search
- * @param occurrence The occurrence to be returned
+ * @param searchString The text to search for
+ * @param failString Failure text to search for, can be null meaning no fail search
+ * @param occurrance The occurrence to be returned
* @return The text of the searchPattern found
* @throws MissingTextException The searchPattern was not found at all
* @throws IncorrectOccurrencesException If the specified occurrence was not found
@@ -172,7 +172,7 @@ public interface ILogScanner {
*
* @param searchPattern The regex to search for
* @param failPattern Failure regex to search for, can be null meaning no fail search
- * @param occurrence The occurrence to be returned
+ * @param occurrance The occurrence to be returned
* @return The text of the searchPattern found
* @throws MissingTextException The searchPattern was not found at all
* @throws IncorrectOccurrencesException If the specified occurrence was not found
@@ -183,9 +183,9 @@ public interface ILogScanner {
/**
* Convenience method for scanForMatchSinceCheckpoint(Pattern.Compile("\Q" + searchString + "\E"), Pattern.Compile("\Q" + searchString + "\E"), occurrence)
*
- * @param searchText The text to search for
- * @param failText Failure text to search for, can be null meaning no fail search
- * @param occurrence The occurrence to be returned
+ * @param searchString The text to search for
+ * @param failString Failure text to search for, can be null meaning no fail search
+ * @param occurrance The occurrence to be returned
* @return The text of the searchPattern found
* @throws MissingTextException The searchString was not found at all
* @throws IncorrectOccurrencesException If the specified occurrence was not found
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScannable.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScannable.java
index 001041c88..788d81258 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScannable.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScannable.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
@@ -12,7 +12,7 @@
* Examples with be a running batch job, docker container log or a linux server log.
*
* It is the intention that other Managers will provide IScannable objects for use within the Text Scan Manager
- * @author Michael Baylis
+ *
*
*/
public interface ITextScannable {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScanner.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScanner.java
index daca811ee..3cda91c94 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScanner.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/ITextScanner.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
@@ -20,7 +20,7 @@
*
* You can obtain an implementation of this interface using the {@link TextScanner} annotation.
*
- * @author Michael Baylis
+ *
*
*/
public interface ITextScanner {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/IncorrectOccurrencesException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/IncorrectOccurrencesException.java
index 9e2418b10..6aea7aee8 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/IncorrectOccurrencesException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/IncorrectOccurrencesException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/LogScanner.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/LogScanner.java
index b456dd46d..5cd153380 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/LogScanner.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/LogScanner.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
@@ -14,17 +14,11 @@
import dev.galasa.framework.spi.ValidAnnotatedFields;
/**
- *
* Fill this field with a Log Scanner object.
- *
- *
- *
+ *
* Will only populate public {@link ILogScanner} fields.
- *
- *
- * @author Michael Baylis
- * @see {@link ILogScanner}
*
+ * @see ILogScanner
*/
@Retention(RUNTIME)
@Target(FIELD)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/MissingTextException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/MissingTextException.java
index 65acb653b..236c24ecb 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/MissingTextException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/MissingTextException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanException.java
index aebe1bdac..4386d6702 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerException.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerException.java
index 5eadb4cbc..6b474e178 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerException.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerField.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerField.java
index 5f8a0b2b7..90af2ce3e 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerField.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanner.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanner.java
index bfec48d4d..871438a82 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanner.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/TextScanner.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan;
@@ -14,17 +14,11 @@
import dev.galasa.framework.spi.ValidAnnotatedFields;
/**
- *
* Fill this field with a Text Scanner object.
- *
*
- *
* Will only populate public {@link ITextScanner} fields.
- *
- *
- * @author Michael Baylis
- * @see {@link ITextScanner}
*
+ * @see ITextScanner
*/
@Retention(RUNTIME)
@Target(FIELD)
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/AbstractTextScannable.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/AbstractTextScannable.java
index 121759b3b..ec6f2f779 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/AbstractTextScannable.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/AbstractTextScannable.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
@@ -13,7 +13,7 @@
/**
* Abstract Text Scannable
*
- * @author Michael Baylis
+ *
*
*/
public class AbstractTextScannable implements ITextScannable {
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/LogScannerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/LogScannerImpl.java
index 05f44fcc0..6af1dfdc6 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/LogScannerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/LogScannerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScanManagerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScanManagerImpl.java
index c14beb7d0..a952e88fe 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScanManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScanManagerImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.internal;
import java.lang.annotation.Annotation;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScannerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScannerImpl.java
index 14592d074..e49c31070 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScannerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/TextScannerImpl.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020-2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.internal;
import java.io.BufferedReader;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/package-info.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/package-info.java
index 576d6470b..9bc0bbeb1 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/package-info.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/internal/package-info.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* Galasa Text Scan Manager internal
*/
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/package-info.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/package-info.java
index eb977a81b..0d58e27c0 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/package-info.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/package-info.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* Galasa Text Scan Manager
*/
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/ITextScannerManagerSpi.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/ITextScannerManagerSpi.java
index f55028b4b..bdeabe3fc 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/ITextScannerManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/ITextScannerManagerSpi.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.spi;
import dev.galasa.textscan.ILogScanner;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/package-info.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/package-info.java
index 153091eea..c972a2cad 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/package-info.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/main/java/dev/galasa/textscan/spi/package-info.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* Galasa Text Scan Manager SPI
*/
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/TestExceptions.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/TestExceptions.java
index b80e81ade..c8fb1be06 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/TestExceptions.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/TestExceptions.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan;
import org.junit.Assert;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyInputStream.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyInputStream.java
index 8d6d0f104..34d41e5ef 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyInputStream.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyInputStream.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.internal;
import java.io.IOException;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableEmpty.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableEmpty.java
index 52b183270..c159cf3c4 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableEmpty.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableEmpty.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableInputStream.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableInputStream.java
index 0645dc375..c20d9731e 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableInputStream.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableInputStream.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
import java.io.ByteArrayInputStream;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableString.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableString.java
index 0d88265a8..00add7ab6 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableString.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/DummyScannableString.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestAbstractTextScannable.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestAbstractTextScannable.java
index 2a9604f03..48af1ddbd 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestAbstractTextScannable.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestAbstractTextScannable.java
@@ -1,8 +1,8 @@
-/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.internal;
import static org.junit.Assert.assertEquals;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestLogScannerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestLogScannerImpl.java
index 75214f808..dba62dd3a 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestLogScannerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestLogScannerImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.internal;
import static org.junit.Assert.assertEquals;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScanManagerImpl.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScanManagerImpl.java
index 187f372bf..555617c00 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScanManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScanManagerImpl.java
@@ -1,6 +1,8 @@
-/*
- * Copyright contributors to the Galasa project
- */
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.textscan.internal;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamLargeFile.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamLargeFile.java
index 36027e154..e38f068db 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamLargeFile.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamLargeFile.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScan.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScan.java
index 52ef7b6d4..8f99e8ca4 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScan.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScan.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScanForMatch.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScanForMatch.java
index 28bd4d026..6f6ce6a19 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScanForMatch.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplInputStreamScanForMatch.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplMultilineInterleavedScan.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplMultilineInterleavedScan.java
index 57283a7e0..13b66c334 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplMultilineInterleavedScan.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplMultilineInterleavedScan.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScan.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScan.java
index 205e409d3..d6a477c37 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScan.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScan.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScanForMatch.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScanForMatch.java
index c99c480e6..71c58cacb 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScanForMatch.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplScannableScanForMatch.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScan.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScan.java
index a62728d09..843559970 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScan.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScan.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScanForMach.java b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScanForMach.java
index 8b63f641e..ef87ae16d 100644
--- a/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScanForMach.java
+++ b/galasa-managers-parent/galasa-managers-core-parent/dev.galasa.textscan.manager/src/test/java/dev/galasa/textscan/internal/TestTextScannerImplStringScanForMach.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.textscan.internal;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/README.md b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/README.md
new file mode 100644
index 000000000..1076e9b07
--- /dev/null
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/README.md
@@ -0,0 +1,135 @@
+# Running the Db2 Manager IVT locally
+
+To run the Db2 manager IVT, it requires a Db2 instance to connect to. This can be achieved locally using [Db2 Community Edition for Docker](https://www.ibm.com/docs/en/db2/11.5?topic=deployments-db2-community-edition-docker).
+
+## Prerequisites
+
+You will need:
+
+- Docker engine (e.g. using [Rancher Desktop](https://rancherdesktop.io) or [colima](https://github.com/abiosoft/colima))
+- [galasactl](https://github.com/galasa-dev/cli/releases)
+- Gradle 6.8.2
+
+### Running on Apple Silicon
+
+**If you are not on an Apple Silicon machine (e.g. M1 MacBook), you can skip this section.**
+
+Since the Db2 Community Edition Docker image is only built for x86-based machines, if you are on an Apple Silicon machine, you can start an x86_64 Docker environment with Rosetta emulation, using [colima](https://github.com/abiosoft/colima).
+
+To do this:
+
+1. Install colima with `brew install colima`
+2. Start the x86_64 Docker environment by running:
+ ```bash
+ colima start --arch x86_64 --vm-type=vz --vz-rosetta
+ ```
+3. Verify that your Docker context is set to the new `colima` context using `docker context ls`. The output should look like this:
+ ```bash
+ NAME DESCRIPTION DOCKER ENDPOINT ERROR
+ colima * colima unix:///Users/em/.colima/default/docker.sock
+ default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
+ rancher-desktop Rancher Desktop moby context unix:///Users/em/.rd/docker.sock
+ ```
+
+## Steps
+
+### 1. Running Db2 in a Docker container
+
+More guidance around running Db2 on different operating systems can be found [here](https://www.ibm.com/docs/en/db2/11.5?topic=system-linux).
+
+To run Db2 locally, you can start a Docker container as follows:
+
+1. Create a `.env_list` file with the following contents:
+ ```
+ LICENSE=accept
+ DB2INSTANCE=db2inst1
+ DB2INST1_PASSWORD=password
+ DBNAME=testdb
+ BLU=false
+ ENABLE_ORACLE_COMPATIBILITY=false
+ UPDATEAVAIL=NO
+ TO_CREATE_SAMPLEDB=false
+ REPODB=false
+ IS_OSXFS=true
+ PERSISTENT_HOME=false
+ HADR_ENABLED=false
+ ```
+
+ Note: the `DB2INSTANCE` and `DB2INST1_PASSWORD` values will be used as the credentials to connect to the Db2 server in the IVT.
+
+2. Pull the Db2 Docker image from ICR:
+ ```bash
+ docker pull icr.io/db2_community/db2
+ ```
+3. Run a Db2 Docker container, making sure `/path/to/.env_list` is replaced with the actual absolute or relative path to the `.env_list` file you created earlier:
+ ```bash
+ docker run -h db2server --name db2server --restart=always --detach --privileged=true -p 50000:50000 --env-file /path/to/.env_list icr.io/db2_community/db2
+ ```
+4. It may take a while for Db2 to start, so you can view the logs of the created Docker container until a `(*) Setup has completed` message appears:
+ ```bash
+ docker logs db2server -f
+ ```
+
+5. Verify that the testdb database was created by logging into the Db2 Docker container:
+ ```bash
+ docker exec -ti db2server bash -c "su - db2inst1"
+ ```
+
+ Then, inside the Docker container, run:
+ ```bash
+ db2 list db directory
+ ```
+
+ The output should look like similar to the output below:
+ ```bash
+ [db2inst1@db2server ~]$ db2 list db directory
+
+ System Database Directory
+
+ Number of entries in the directory = 1
+
+ Database 1 entry:
+
+ Database alias = TESTDB
+ Database name = TESTDB
+ Local database directory = /database/data
+ Database release level = 15.00
+ Comment =
+ Directory entry type = Indirect
+ Catalog database partition number = 0
+ Alternate server hostname =
+ Alternate server port number =
+ ```
+
+### 2. Setting CPS properties and Credentials
+
+Once the Docker container running Db2 is working:
+
+1. Add the following properties to your `cps.properties` file:
+
+ ```properties
+ db2.dse.instance.PRIMARY.name=DB2INST1
+ db2.dse.schema.PRIMARY.name=testdb
+ db2.instance.DB2INST1.url=jdbc:db2://127.0.0.1:50000/testdb
+ db2.instance.DB2INST1.credentials=TESTDB
+ ```
+
+2. Add the following properties to your `credentials.properties` file:
+
+ ```properties
+ secure.credentials.TESTDB.username=db2inst1
+ secure.credentials.TESTDB.password=password
+ ```
+
+### 3. Running the Db2 manager IVT
+
+Having configured your `cps.properties` and `credentials.properties` files, you should now be able to run the Db2 manager IVT using `galasactl`:
+
+1. Build the `managers` project using the `build-locally.sh` script:
+ ```bash
+ ./build-locally -c
+ ```
+2. Run the Db2 manager IVT, replacing `0.34.0` with the relevant Galasa OBR version you wish to use:
+ ```bash
+ galasactl runs submit local --obr mvn:dev.galasa/dev.galasa.uber.obr/0.34.0/obr --class dev.galasa.db2.manager.ivt/dev.galasa.db2.manager.ivt.Db2ManagerIVT --log -
+ ```
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/build.gradle
index 0dd7a13b4..5a7ca8919 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/build.gradle
@@ -4,9 +4,23 @@ plugins {
description = 'Galasa Db2 Manager IVTs'
-version = '0.21.0'
+version = '0.34.0'
dependencies {
implementation project(':galasa-managers-database-parent:dev.galasa.db2.manager')
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/settings.gradle
index a096fe92f..8e2303842 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.db2.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.db2.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/java/dev/galasa/db2/manager/ivt/Db2ManagerIVT.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/java/dev/galasa/db2/manager/ivt/Db2ManagerIVT.java
index 9fd7a60c1..d2d304958 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/java/dev/galasa/db2/manager/ivt/Db2ManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/java/dev/galasa/db2/manager/ivt/Db2ManagerIVT.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/resources/resources/Batch.txt b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/resources/Batch.txt
similarity index 100%
rename from galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/resources/resources/Batch.txt
rename to galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager.ivt/src/main/resources/Batch.txt
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/bnd.bnd b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/bnd.bnd
index ab89ca8e6..9257d2961 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/bnd.bnd
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/bnd.bnd
@@ -2,10 +2,17 @@
Bundle-Name: Galasa Db2 Manager
Export-Package: dev.galasa.db2,\
dev.galasa.db2.spi
-Import-Package: !javax.validation.constraints, \
+Import-Package: jakarta.transaction, \
+ jakarta.transaction.xa, \
+ javax.transaction, \
+ javax.transaction.xa, \
+ !jakarta.enterprise.util, \
+ !jakarta.interceptor, \
+ !jakarta.enterprise.context, \
+ !javax.validation.constraints, \
!com.ibm.bidiTools.bdlayout, \
!com.ibm.cics.server, \
- !com.ibm.dataaccess, \
+ com.ibm.dataaccess, \
!COM.ibm.db2os390.sqlj.runtime, \
!com.ibm.jvm, \
!com.ibm.net, \
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/build.gradle b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/build.gradle
index 7e50268d0..d9a32487c 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/build.gradle
@@ -4,10 +4,25 @@ plugins {
description = 'Galasa Db2 Manager'
-version = '0.24.0'
+version = '0.35.0'
dependencies {
// implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation 'com.ibm.db2.jcc:db2jcc:db2jcc4'
- implementation 'dev.galasa:jta:1.1'
+ implementation 'dev.galasa:jta:2.0.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = true
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = true
+
+
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/settings.gradle b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/settings.gradle
index 5a5f81164..c1f00e938 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.db2.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.db2.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Instance.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Instance.java
index e444c6268..15a467e0d 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Instance.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Instance.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerException.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerException.java
index 82a30bf13..38bd5bb5b 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerException.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerException.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerField.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerField.java
index eeae48aee..265939cc4 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerField.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2ManagerField.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2;
@@ -11,7 +13,7 @@
/**
* Annotation to capture the other db2 realted annotations from the test class
*
- * @author James Davies
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Schema.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Schema.java
index 4508887d3..635715a8a 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Schema.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/Db2Schema.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Instance.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Instance.java
index c1103af87..40ee8cf4d 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Instance.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Instance.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2;
@@ -11,7 +13,7 @@
*
* This connection must be established to connected a IDb2Schema to this database.
*
- * @author jamesdavies
+ *
*
*/
public interface IDb2Instance {
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Schema.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Schema.java
index df190bba0..5607c85d6 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Schema.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IDb2Schema.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2;
@@ -12,7 +14,7 @@
*
* Allows users to submit statements as string, or as a batch of statements from a file.
*
- * @author jamesdavies
+ *
*
*/
public interface IDb2Schema {
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IResultMap.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IResultMap.java
index 82dbe6418..a36bc8442 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IResultMap.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/IResultMap.java
@@ -1,6 +1,8 @@
/*
* Copyright contributors to the Galasa project
- */
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.db2;
import java.math.BigDecimal;
@@ -12,7 +14,7 @@
/**
* A simple interface to provide easy access to multiple types of returns.
*
- * @author jamesdavies
+ *
*
*/
public interface IResultMap {
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2InstanceImpl.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2InstanceImpl.java
index 9ae739c0e..9462d789a 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2InstanceImpl.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2InstanceImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal;
@@ -38,7 +40,7 @@
* This instance also provides the connection itself back to the tester for any complex usecases not
* covered by the methods inside this manager.
*
- * @author jamesdavies
+ *
*
*/
public class Db2InstanceImpl implements IDb2Instance{
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2ManagerImpl.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2ManagerImpl.java
index 017dbf9e4..ed1550f96 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2ManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2ManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal;
@@ -42,7 +44,7 @@
* Provides two annotations, one for a Db2 Instance connections and one for
* a Schema impl
*
- * @author jamesdavies
+ *
*
*/
@Component(service = { IManager.class })
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2SchemaImpl.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2SchemaImpl.java
index 323b9c116..98fb58927 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2SchemaImpl.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/Db2SchemaImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal;
@@ -56,7 +58,7 @@
* For any unsupported object types please gain a standard
* sql connection from the IDb2Instance
*
- * @author jamesdavies
+ *
*
*/
public class Db2SchemaImpl implements IDb2Schema{
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/ResultMap.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/ResultMap.java
index 752c4b611..83b9ed5a0 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/ResultMap.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/ResultMap.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal;
@@ -17,7 +19,7 @@
* Result Map is a basic object for simple SQL statements returns.
*
*
- * @author jamesdavies
+ *
*
*/
public class ResultMap implements IResultMap{
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2Credentials.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2Credentials.java
index fe59495b8..3627ca2ed 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2Credentials.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2Credentials.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSEInstanceName.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSEInstanceName.java
index da5a4acbe..62b1a340c 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSEInstanceName.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSEInstanceName.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSESchemaName.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSESchemaName.java
index 8a6b2c4ee..3ceff9244 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSESchemaName.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2DSESchemaName.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2InstanceUrl.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2InstanceUrl.java
index 7c09c7f64..4fb342763 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2InstanceUrl.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2InstanceUrl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2PropertiesSingleton.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2PropertiesSingleton.java
index 1c9d3096b..df3440133 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2PropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/internal/properties/Db2PropertiesSingleton.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/spi/IDb2ManagerSpi.java b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/spi/IDb2ManagerSpi.java
index d3d563ba7..44cb345ca 100644
--- a/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/spi/IDb2ManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-database-parent/dev.galasa.db2.manager/src/main/java/dev/galasa/db2/spi/IDb2ManagerSpi.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.db2.spi;
@@ -14,7 +16,7 @@
* too before requesting a schema from that database, the connection will be initialised.
*
*
- * @author jamesdavies
+ *
*
*/
public interface IDb2ManagerSpi {
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/build.gradle b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/build.gradle
index d620bb6d6..11a6018c5 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/build.gradle
@@ -10,3 +10,15 @@ dependencies {
implementation project(':galasa-managers-languages-parent:dev.galasa.java.manager')
}
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = false
+ext.includeInMVP = false
+ext.includeInBOM = false
+ext.includeInIsolated = false
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseManagerField.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseManagerField.java
index 94da9bf61..4aa1a8989 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseManagerField.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseManagerField.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime;
import java.lang.annotation.ElementType;
@@ -12,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Reece Williams
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseType.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseType.java
index b7756e014..dc7a5047c 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseType.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseType.java
@@ -1,7 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
-
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime;
public enum EclipseType {
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseVersion.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseVersion.java
index f195f4aae..581f8f3bc 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseVersion.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/EclipseVersion.java
@@ -1,7 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
-
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime;
public enum EclipseVersion {
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/IEclipseInstall.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/IEclipseInstall.java
index ebbeabec4..07c0bbbf3 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/IEclipseInstall.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.manager/src/main/java/dev/galasa/eclipseruntime/IEclipseInstall.java
@@ -1,14 +1,15 @@
/*
-* Copyright contributors to the Galasa project
-*/
-
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime;
import dev.galasa.java.IJavaInstallation;
/**
*
- * @author Reece Williams
+ *
*
*/
public interface IEclipseInstall {
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/build.gradle b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/build.gradle
index 818189838..46ef10945 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/build.gradle
@@ -11,3 +11,15 @@ dependencies {
implementation project(':galasa-managers-languages-parent:dev.galasa.java.manager')
}
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = false
+ext.includeInMVP = false
+ext.includeInBOM = false
+ext.includeInIsolated = false
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseInstallUbuntu.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseInstallUbuntu.java
index dd617f54d..578bc4e07 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseInstallUbuntu.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseInstallUbuntu.java
@@ -1,7 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
-
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime.ubuntu;
import java.lang.annotation.Retention;
@@ -22,7 +23,7 @@
* Used to populate a {@link IEclipseInstallUbuntu} field
*
*
- * @author Reece Williams
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseUbuntuManagerField.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseUbuntuManagerField.java
index 30a8eaf00..766f573a2 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseUbuntuManagerField.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/EclipseUbuntuManagerField.java
@@ -1,7 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
-
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime.ubuntu;
import java.lang.annotation.ElementType;
@@ -13,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Reece Williams
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/IEclipseInstallUbuntu.java b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/IEclipseInstallUbuntu.java
index 45225f41f..c80f7b2b5 100644
--- a/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/IEclipseInstallUbuntu.java
+++ b/galasa-managers-parent/galasa-managers-ides-parent/dev.galasa.eclipseruntime.ubuntu.manager/src/main/java/dev/galasa/eclipseruntime/ubuntu/IEclipseInstallUbuntu.java
@@ -1,7 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
-
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.eclipseruntime.ubuntu;
import dev.galasa.eclipseruntime.IEclipseInstall;
@@ -15,7 +16,7 @@
* Use a {@link EclipseInstallUbuntu} annotation to populate this field with
*
*
- * @author Reece Williams
+ *
*
*/
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/build.gradle b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/build.gradle
index 8f50024ca..d0794c91f 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/build.gradle
@@ -4,7 +4,7 @@ plugins {
description = 'Galasa Internal SEM Manager'
-version = '0.25.0'
+version = '0.36.0'
dependencies {
implementation files('jars/sem.jar')
@@ -17,6 +17,19 @@ dependencies {
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
- implementation 'org.apache.velocity:velocity:1.7'
+ implementation 'org.apache.velocity:velocity-engine-core:2.3'
implementation 'org.apache.logging.log4j:log4j-1.2-api:2.17.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = false
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInput.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInput.java
index a5ae67eef..1086e16d6 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInput.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInput.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInputs.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInputs.java
index f3bc3e0e8..d4fcff80c 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInputs.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/CSDInputs.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotBuild.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotBuild.java
index aadc61f5a..aa80fe201 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotBuild.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotBuild.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
@@ -12,7 +14,7 @@
* Requests that SEM does not build the Complex, used if the test wants to
* build the CICS Regions itself
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotStartCICS.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotStartCICS.java
index d9714fae2..457809f7c 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotStartCICS.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/DoNotStartCICS.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
@@ -12,7 +14,7 @@
* This annotation will inform the provisioning system (SEM)
* not to start any CICS regions.
*
- * @author Ross Henderson
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerException.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerException.java
index fee9c0ce0..202f8ea66 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerException.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerException.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import dev.galasa.cicsts.CicstsManagerException;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerField.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerField.java
index f2443effa..f1290f7b5 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerField.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemManagerField.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
@@ -12,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemTopology.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemTopology.java
index 1f6b7eee0..eb60d7492 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemTopology.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/SemTopology.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
@@ -11,7 +13,7 @@
/**
* Represents a SEM topology to build a set of CICS regions from
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sit.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sit.java
index c1126dd48..8f33ce024 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sit.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sit.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
@@ -22,7 +24,7 @@
* {@link @Sit}(parameter="SITPARM2",value="TWO")
*
*
- * @author Michael Baylis
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sits.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sits.java
index 3ce63e7df..5c3c74b4c 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sits.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/Sits.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem;
import java.lang.annotation.ElementType;
@@ -20,7 +22,7 @@
* })
*
*
- * @author Michael Baylis
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/CsdInputGenerator.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/CsdInputGenerator.java
index 702900cd1..99f3aa25e 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/CsdInputGenerator.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/CsdInputGenerator.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.io.BufferedReader;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemCicsImpl.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemCicsImpl.java
index 54cb94ab3..b02b026d6 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemCicsImpl.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemCicsImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.time.Instant;
@@ -593,4 +595,5 @@ private void rebuildRuntimeJob(CICSRegion region) throws CicstsManagerException
// Perform a rebuild of the JCL
buildCicsJcl(jobs.get(0));
}
+
}
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemManagerImpl.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemManagerImpl.java
index 05381af05..a217cdc87 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemManagerImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.io.ByteArrayInputStream;
@@ -667,10 +669,10 @@ public void cicsProvisionBuild() throws ManagerException, ResourceUnavailableExc
- private void retrieveOutput(String string, List jobs) {
+ private void retrieveOutput(String path, List jobs) {
for(IZosBatchJob job : jobs) {
try {
- job.saveOutputToResultsArchive("sem/provision");
+ job.saveOutputToResultsArchive(path);
} catch (ZosBatchException e) {
logger.error("Failed to archive output from " + job);
}
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolApplids.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolApplids.java
index e0bcab928..4c745866f 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolApplids.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolApplids.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.util.ArrayList;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolPorts.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolPorts.java
index 76b4fceae..930a8b60e 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolPorts.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolPorts.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.util.ArrayList;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolResolver.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolResolver.java
index 09b274235..2deadb7b9 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolResolver.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemPoolResolver.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import com.ibm.hursley.cicsts.test.sem.interfaces.complex.IPool;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemZosHandler.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemZosHandler.java
index 86dd377cb..f0b10b0f6 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemZosHandler.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SemZosHandler.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.io.BufferedReader;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SitGenerator.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SitGenerator.java
index 446700628..0c87bd067 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SitGenerator.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/SitGenerator.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal;
import java.util.HashMap;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/BaseModel.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/BaseModel.java
index 2a6509a40..c57805819 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/BaseModel.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/BaseModel.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.properties;
import dev.galasa.framework.spi.cps.CpsProperties;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/CicsBuild.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/CicsBuild.java
index 35273f995..6ace76e27 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/CicsBuild.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/CicsBuild.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.properties;
import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ExternalVersion.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ExternalVersion.java
index 7b253aad1..7eeb102d5 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ExternalVersion.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ExternalVersion.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.sem.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/InteralVersion.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/InteralVersion.java
index 659437392..7b07aa100 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/InteralVersion.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/InteralVersion.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.sem.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelApplids.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelApplids.java
index 382f55123..c034ff684 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelApplids.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelApplids.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.properties;
import java.util.List;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelPorts.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelPorts.java
index 1b95e8885..17e671529 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelPorts.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelPorts.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.properties;
import java.util.List;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelUrl.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelUrl.java
index 85e4f3497..4127133a4 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelUrl.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/ModelUrl.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.sem.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/SemPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/SemPropertiesSingleton.java
index dc5fd64e1..8587a9f29 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/SemPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/properties/SemPropertiesSingleton.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.properties;
import org.osgi.service.component.annotations.Activate;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/ApplidResourceMonitor.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/ApplidResourceMonitor.java
index 2c587ba9e..574aa2ee6 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/ApplidResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/ApplidResourceMonitor.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.resourcemanagement;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/PortResourceMonitor.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/PortResourceMonitor.java
index d4112d42a..940090bfb 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/PortResourceMonitor.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/PortResourceMonitor.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.resourcemanagement;
import java.util.Map;
diff --git a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/SemResourceManagement.java b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/SemResourceManagement.java
index 0b5dc5020..b91696799 100644
--- a/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/SemResourceManagement.java
+++ b/galasa-managers-parent/galasa-managers-internal-parent/dev.galasa.sem.manager/src/main/java/dev/galasa/sem/internal/resourcemanagement/SemResourceManagement.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.sem.internal.resourcemanagement;
import java.util.concurrent.TimeUnit;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/build.gradle b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/build.gradle
index ccb97ac9e..a37af53f8 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/build.gradle
@@ -9,3 +9,17 @@ version = '0.21.0'
dependencies {
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/settings.gradle b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/settings.gradle
index a7cc24960..e963cdaea 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.java.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.java.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/IJavaInstallation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/IJavaInstallation.java
index cc5b7702d..8797295de 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/IJavaInstallation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/IJavaInstallation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerException.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerException.java
index 3ccd3c9f8..69e73e855 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerException.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerField.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerField.java
index e89107ac3..a0cd5eda1 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerField.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaType.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaType.java
index e28c4cf6c..a38543b1b 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaType.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaType.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaVersion.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaVersion.java
index 852966683..6e08c757d 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaVersion.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/JavaVersion.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/JavaManagerImpl.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/JavaManagerImpl.java
index 5510d9ae0..1e6a89343 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/JavaManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/JavaManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveCredentials.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveCredentials.java
index 2b8942dea..ec1cb06c3 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveCredentials.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveCredentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveLocation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveLocation.java
index 229610c2a..3eaac00b4 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveLocation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/CodeCoverageSaveLocation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DefaultVersion.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DefaultVersion.java
index 30c04ee30..c206ce609 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DefaultVersion.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DefaultVersion.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DownloadLocation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DownloadLocation.java
index 5e042140f..75a7c1c59 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DownloadLocation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/DownloadLocation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JacocoAgentLocation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JacocoAgentLocation.java
index ccc179b32..9d3b304b0 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JacocoAgentLocation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JacocoAgentLocation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JavaPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JavaPropertiesSingleton.java
index ab369d89f..5f633ec44 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JavaPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/JavaPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/UseCodeCoverage.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/UseCodeCoverage.java
index 767273cbf..a34a1ab63 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/UseCodeCoverage.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/internal/properties/UseCodeCoverage.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/IJavaManagerSpi.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/IJavaManagerSpi.java
index f8f814e35..19352f970 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/IJavaManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/IJavaManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.spi;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/JavaInstallationImpl.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/JavaInstallationImpl.java
index bc35061d8..5184ddae8 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/JavaInstallationImpl.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.manager/src/main/java/dev/galasa/java/spi/JavaInstallationImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.spi;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/build.gradle b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/build.gradle
index bb0b4f2ea..90fe25808 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/build.gradle
@@ -10,3 +10,17 @@ dependencies {
api project(':galasa-managers-unix-parent:dev.galasa.linux.manager')
api project(':galasa-managers-languages-parent:dev.galasa.java.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/settings.gradle b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/settings.gradle
index 6807cded2..c2c5351cd 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/settings.gradle
@@ -1 +1,3 @@
-rootProject.name = 'dev.galasa.java.ubuntu.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.java.ubuntu.manager'
+
+
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/IJavaUbuntuInstallation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/IJavaUbuntuInstallation.java
index dd4042408..f1e85ff5b 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/IJavaUbuntuInstallation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/IJavaUbuntuInstallation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu;
@@ -16,7 +16,7 @@
* Use a {@link JavaUbuntuInstallation} annotation to populate this field with
*
*
- * @author Michael Baylis
+ *
*
*/
public interface IJavaUbuntuInstallation extends IJavaInstallation {
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuInstallation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuInstallation.java
index b729bc5de..e341b0db0 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuInstallation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuInstallation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu;
@@ -21,7 +21,7 @@
* Used to populate a {@link IJavaUbuntuInstallation} field
*
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerException.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerException.java
index 0bedcd56e..21ae11c66 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerException.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerField.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerField.java
index b006d71c3..bc21446f2 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerField.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/JavaUbuntuManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/internal/JavaUbuntuManagerImpl.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/internal/JavaUbuntuManagerImpl.java
index 946853567..7476f2cf2 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/internal/JavaUbuntuManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/internal/JavaUbuntuManagerImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu.internal;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/IJavaUbuntuManagerSpi.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/IJavaUbuntuManagerSpi.java
index ec26bb9c3..a0bdbbd7e 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/IJavaUbuntuManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/IJavaUbuntuManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu.spi;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/JavaUbuntuInstallationImpl.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/JavaUbuntuInstallationImpl.java
index 31bd32e07..d0abc8630 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/JavaUbuntuInstallationImpl.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.ubuntu.manager/src/main/java/dev/galasa/java/ubuntu/spi/JavaUbuntuInstallationImpl.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.ubuntu.spi;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/build.gradle b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/build.gradle
index 4548b2ee3..7d25efd38 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/build.gradle
@@ -8,4 +8,19 @@ version = '0.21.0'
dependencies {
api project(':galasa-managers-windows-parent:dev.galasa.windows.manager')
- api project(':galasa-managers-languages-parent:dev.galasa.java.manager')}
+ api project(':galasa-managers-languages-parent:dev.galasa.java.manager')
+}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = true
+
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/settings.gradle b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/settings.gradle
index b05d2e45e..19979fd15 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.java.windows.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.java.windows.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/IJavaWindowsInstallation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/IJavaWindowsInstallation.java
index ef2a9ba8a..2cb327601 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/IJavaWindowsInstallation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/IJavaWindowsInstallation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows;
@@ -16,7 +16,7 @@
* Use a {@link JavaWindowsInstallation} annotation to populate this field with
*
*
- * @author Michael Baylis
+ *
*
*/
public interface IJavaWindowsInstallation extends IJavaInstallation {
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsInstallation.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsInstallation.java
index 20bf558be..49a4417db 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsInstallation.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsInstallation.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows;
@@ -21,7 +21,7 @@
* Used to populate a {@link IJavaWindowsInstallation} field
*
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerException.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerException.java
index 29a49d846..b54c673cc 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerException.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerField.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerField.java
index a6a75145e..76b03b77f 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerField.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/JavaWindowsManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows;
@@ -14,7 +14,7 @@
* Used to annotate annotations that are to be used for Test Class fields. To be
* populated by the Manager.
*
- * @author Michael Baylis
+ *
*
*/
@Retention(RetentionPolicy.RUNTIME)
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/internal/JavaWindowsManagerImpl.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/internal/JavaWindowsManagerImpl.java
index 3484c768d..29a7ec80d 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/internal/JavaWindowsManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/internal/JavaWindowsManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows.internal;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/IJavaWindowsManagerSpi.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/IJavaWindowsManagerSpi.java
index 465a3a185..8efd37261 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/IJavaWindowsManagerSpi.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/IJavaWindowsManagerSpi.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows.spi;
diff --git a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/JavaWindowsInstallationImpl.java b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/JavaWindowsInstallationImpl.java
index e30b98819..6f64d3f94 100644
--- a/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/JavaWindowsInstallationImpl.java
+++ b/galasa-managers-parent/galasa-managers-languages-parent/dev.galasa.java.windows.manager/src/main/java/dev/galasa/java/windows/spi/JavaWindowsInstallationImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.java.windows.spi;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/build.gradle
index bbdb83909..9efe5d568 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/build.gradle
@@ -10,3 +10,17 @@ dependencies {
implementation project(':galasa-managers-logging-parent:dev.galasa.elasticlog.manager')
implementation project(':galasa-managers-core-parent:dev.galasa.core.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/settings.gradle
index c907026e1..450365e70 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.elasticlog.manager.ivt'
\ No newline at end of file
+rootProject.name = 'dev.galasa.elasticlog.manager.ivt'
+
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/src/main/java/dev/galasa/elasticlog/manager/ivt/ElasticLogManagerIVT.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/src/main/java/dev/galasa/elasticlog/manager/ivt/ElasticLogManagerIVT.java
index 3d43a98e1..d7e788e47 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/src/main/java/dev/galasa/elasticlog/manager/ivt/ElasticLogManagerIVT.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager.ivt/src/main/java/dev/galasa/elasticlog/manager/ivt/ElasticLogManagerIVT.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/build.gradle b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/build.gradle
index ded9d1604..0f6055e34 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/build.gradle
@@ -4,9 +4,22 @@ plugins {
description = 'Galasa ElasticLog Manager'
-version = '0.21.0'
+version = '0.32.0'
dependencies {
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'com.google.code.gson:gson:2.10.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/settings.gradle b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/settings.gradle
index e993ecdc8..bb02e8675 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/settings.gradle
@@ -1 +1,3 @@
-rootProject.name = 'dev.galasa.elasticlog.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.elasticlog.manager'
+
+
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerException.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerException.java
index 3083930ef..18f794326 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerException.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.internal;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerImpl.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerImpl.java
index b2457f858..5999a96d7 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/ElasticLogManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.internal;
@@ -20,7 +20,6 @@
import org.osgi.service.component.annotations.Component;
import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import dev.galasa.ICredentials;
@@ -40,6 +39,7 @@
import dev.galasa.framework.spi.creds.CredentialsException;
import dev.galasa.framework.spi.creds.ICredentialsService;
import dev.galasa.framework.spi.language.GalasaTest;
+import dev.galasa.framework.spi.utils.GalasaGsonBuilder;
import dev.galasa.http.HttpClientException;
import dev.galasa.http.HttpClientResponse;
import dev.galasa.http.IHttpClient;
@@ -48,7 +48,7 @@
/**
* ElasticLog Manager implementation
*
- * @author Richard Somers
+ *
*/
@Component(service = { IManager.class })
public class ElasticLogManagerImpl extends AbstractManager {
@@ -71,10 +71,9 @@ public class ElasticLogManagerImpl extends AbstractManager {
/**
* Initialise the ElasticLogManager, adding a pointer to the other active managers
*
- * @param IFramework - the galasa framework
- * @param List - list of all the managers
- * @param List - list of all the active managers
- * @param Class> - the test class
+ * @param framework - the galasa framework
+ * @param allManagers - list of all the managers
+ * @param activeManagers - list of all the active managers
* @throws ManagerException
*/
@Override
@@ -101,8 +100,8 @@ public void initialise(@NotNull IFramework framework, @NotNull List al
/**
* Makes sure that the elastic log manager is added to the list of active managers, and adds the dependency on http manager.
*
- * @param List - list of all the managers
- * @param List - list of the active managers
+ * @param allManagers - list of all the managers
+ * @param activeManagers - list of the active managers
* @throws ManagerException
*/
@Override
@@ -204,7 +203,7 @@ public void testClassResult(@NotNull String finalResult, Throwable finalExceptio
this.runProperties.put("tags", tags.toArray(new String[tags.size()]));
//Convert HashMap of run properties to a Json String
- Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").create();
+ Gson gson = new GalasaGsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").getGson();
JsonObject json = gson.toJsonTree(this.runProperties).getAsJsonObject();
logger.info("Sending Run Request to ElasticLog Endpoint");
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/package-info.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/package-info.java
index b8f98b480..d8ebd653f 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/package-info.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/package-info.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
/**
* ElasticLog Manager
*
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogCredentials.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogCredentials.java
index 4d3bec19b..64f4fcd77 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogCredentials.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogCredentials.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.elasticlog.internal.properties;
import dev.galasa.elasticlog.internal.ElasticLogManagerException;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogEndpoint.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogEndpoint.java
index 526602abb..1ac9affc5 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogEndpoint.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogEndpoint.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogIndex.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogIndex.java
index 16a4d6e4a..dec4ba53d 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogIndex.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogIndex.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogLocalRun.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogLocalRun.java
index 91b19871c..718191d9f 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogLocalRun.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogLocalRun.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogPropertiesSingleton.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogPropertiesSingleton.java
index 19b8a4fa8..ddee2ec7c 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogPropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.elasticlog.manager/src/main/java/dev/galasa/elasticlog/internal/properties/ElasticLogPropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2019.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.elasticlog.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/build.gradle b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/build.gradle
index d24100c5d..2f37b77fd 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/build.gradle
@@ -4,9 +4,23 @@ plugins {
description = 'Galasa Phoenix 2 PME Manager'
-version = '0.21.0'
+version = '0.31.0'
dependencies {
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'com.google.code.gson:gson:2.10.1'
}
+
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/settings.gradle b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/settings.gradle
index eff66c84b..47ff92e80 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.phoenix2.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.phoenix2.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerException.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerException.java
index 6303c841a..04ea0afd7 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerException.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerImpl.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerImpl.java
index 815b0ca97..726aa4427 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/Phoenix2ManagerImpl.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal;
@@ -46,7 +46,7 @@
/**
* ElasticLog Manager implementation
*
- * @author Michael Baylis
+ *
*/
@Component(service = { IManager.class })
public class Phoenix2ManagerImpl extends AbstractManager {
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Credentials.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Credentials.java
index b43984262..2394ccf47 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Credentials.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Credentials.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultBuildLevel.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultBuildLevel.java
index f6e6d4105..ab4f16582 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultBuildLevel.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultBuildLevel.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultCustomBuild.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultCustomBuild.java
index 07ba3155f..49bd61447 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultCustomBuild.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultCustomBuild.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultProductRelease.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultProductRelease.java
index f66c2beaf..2afe0a3e3 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultProductRelease.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultProductRelease.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultTestingEnvironment.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultTestingEnvironment.java
index ce9533235..9bef412a4 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultTestingEnvironment.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2DefaultTestingEnvironment.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Enabled.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Enabled.java
index 07e1fbe0b..45c2b2d91 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Enabled.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Enabled.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Endpoint.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Endpoint.java
index 026940429..eed5c9395 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Endpoint.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2Endpoint.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2LocalRun.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2LocalRun.java
index 939f89a99..f0b5db01d 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2LocalRun.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2LocalRun.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2PropertiesSingleton.java b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2PropertiesSingleton.java
index fca670396..86d736418 100644
--- a/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2PropertiesSingleton.java
+++ b/galasa-managers-parent/galasa-managers-logging-parent/dev.galasa.phoenix2.manager/src/main/java/dev/galasa/phoenix2/internal/properties/Phoenix2PropertiesSingleton.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.phoenix2.internal.properties;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/build.gradle b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/build.gradle
index 530aa40b8..3181fdf98 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/build.gradle
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/build.gradle
@@ -13,3 +13,17 @@ dependencies {
implementation project(':galasa-managers-cloud-parent:dev.galasa.kubernetes.manager')
implementation project(':galasa-managers-other-parent:dev.galasa.galasaecosystem.manager')
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = false
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = false
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/settings.gradle b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/settings.gradle
index bd3a326f5..020347ce1 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/settings.gradle
@@ -1 +1,4 @@
-rootProject.name = 'dev.galasa.galasaecosystem.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.galasaecosystem.manager.ivt'
+
+
+
\ No newline at end of file
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/src/main/java/dev/galasa/galasaecosystem/manager/ivt/EcosystemTest.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/src/main/java/dev/galasa/galasaecosystem/manager/ivt/EcosystemTest.java
index ad472474f..827489fb7 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/src/main/java/dev/galasa/galasaecosystem/manager/ivt/EcosystemTest.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager.ivt/src/main/java/dev/galasa/galasaecosystem/manager/ivt/EcosystemTest.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem.manager.ivt;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/build.gradle b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/build.gradle
index 13f9f7f55..456fcc664 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/build.gradle
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/build.gradle
@@ -4,10 +4,10 @@ plugins {
description = 'Galasa Ecosystem Manager'
-version = '0.21.0'
+version = '0.36.0'
dependencies {
- implementation 'commons-io:commons-io:2.9.0'
+ implementation 'commons-io:commons-io:2.16.1'
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager')
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager')
implementation project(':galasa-managers-cloud-parent:dev.galasa.kubernetes.manager')
@@ -17,6 +17,20 @@ dependencies {
api project(':galasa-managers-unix-parent:dev.galasa.linux.manager')
api project(':galasa-managers-windows-parent:dev.galasa.windows.manager')
api project(':galasa-managers-zos-parent:dev.galasa.zos.manager')
- implementation 'org.yaml:snakeyaml:1.30'
- implementation 'com.google.code.gson:gson:2.8.5'
+ implementation 'org.yaml:snakeyaml:2.0'
+ implementation 'com.google.code.gson:gson:2.10.1'
}
+
+// Note: These values are consumed by the parent build process
+// They indicate which packages of functionality this OSGi bundle should be delivered inside,
+// or referenced from.
+// The settings here are gathered together by the build process to create a release.yaml file
+// which gathers-up all the packaging metadata about all the OSGi bundles in this component.
+ext.projectName=project.name
+ext.includeInOBR = true
+ext.includeInMVP = false
+ext.includeInBOM = true
+ext.includeInIsolated = true
+ext.includeInCodeCoverage = true
+ext.includeInJavadoc = false
+
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/settings.gradle b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/settings.gradle
index bd3a326f5..aa26c7b19 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/settings.gradle
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/settings.gradle
@@ -1 +1,2 @@
-rootProject.name = 'dev.galasa.galasaecosystem.manager'
\ No newline at end of file
+rootProject.name = 'dev.galasa.galasaecosystem.manager'
+
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/EcosystemEndpoint.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/EcosystemEndpoint.java
index 1138669a6..d23232f9b 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/EcosystemEndpoint.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/EcosystemEndpoint.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
@@ -11,7 +11,7 @@
/**
* Types of Endpoints for the Galasa Ecosystem
*
- * @author Michael Baylis
+ *
*
*/
public enum EcosystemEndpoint {
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerException.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerException.java
index 2565d71dd..6e4aeaf00 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerException.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerException.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerField.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerField.java
index 078e610d2..00ce335e2 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerField.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/GalasaEcosystemManagerField.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
@@ -13,7 +13,7 @@
/**
* Annotation to identify manager controlled annotated fields
*
- * @author Michael Baylis
+ *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IGenericEcosystem.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IGenericEcosystem.java
index dc5394c38..88a9e21d9 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IGenericEcosystem.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IGenericEcosystem.java
@@ -1,5 +1,7 @@
/*
* Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
@@ -16,7 +18,7 @@
*
* Provides a means to manipulate the ecosystem
*
- * @author Michael Baylis
+ *
*
*/
public interface IGenericEcosystem {
@@ -32,7 +34,6 @@ public interface IGenericEcosystem {
* Retrieve a CPS property from the host ecosystem
*
* @param namespace The namespace of the CPS
- * @param property The property to retrieve
* @return the value of the property or null if not found
* @throws GalasaEcosystemManagerException if there is a problem accessing the CPS
*/
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IKubernetesEcosystem.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IKubernetesEcosystem.java
index ede8908cd..43c07a27e 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IKubernetesEcosystem.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IKubernetesEcosystem.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
@@ -12,7 +12,7 @@
*
* Provides access to the ecosystem endpoints and provides the mean to manipulate the ecosystem
*
- * @author Michael Baylis
+ *
*
*/
public interface IKubernetesEcosystem extends IGenericEcosystem {
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/ILocalEcosystem.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/ILocalEcosystem.java
index fcf6936d1..c64db4036 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/ILocalEcosystem.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/ILocalEcosystem.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
@@ -10,7 +12,7 @@
*
* Provides access to the ecosystem endpoints and provides the mean to manipulate the ecosystem
*
- * @author Michael Baylis
+ *
*
*/
public interface ILocalEcosystem extends IGenericEcosystem {
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IsolationInstallation.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IsolationInstallation.java
index 8a6f17a8a..f81f0437c 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IsolationInstallation.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/IsolationInstallation.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.galasaecosystem;
public enum IsolationInstallation {
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/KubernetesEcosystem.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/KubernetesEcosystem.java
index a65e81a5f..38b1c541b 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/KubernetesEcosystem.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/KubernetesEcosystem.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2020,2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/LocalEcosystem.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/LocalEcosystem.java
index 33c935d8f..d3abb2ed0 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/LocalEcosystem.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/LocalEcosystem.java
@@ -1,7 +1,7 @@
/*
- * Licensed Materials - Property of IBM
- *
- * (c) Copyright IBM Corp. 2021.
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/AbstractEcosystemImpl.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/AbstractEcosystemImpl.java
index 016556909..74200b02f 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/AbstractEcosystemImpl.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/AbstractEcosystemImpl.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem.internal;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/GalasaEcosystemManagerImpl.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/GalasaEcosystemManagerImpl.java
index 287e4906c..3f2fa10db 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/GalasaEcosystemManagerImpl.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/GalasaEcosystemManagerImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.galasaecosystem.internal;
import java.lang.annotation.Annotation;
@@ -35,6 +37,7 @@
import dev.galasa.framework.spi.ResourceUnavailableException;
import dev.galasa.framework.spi.SharedEnvironmentRunType;
import dev.galasa.framework.spi.language.GalasaTest;
+import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.galasaecosystem.GalasaEcosystemManagerException;
import dev.galasa.galasaecosystem.GalasaEcosystemManagerField;
import dev.galasa.galasaecosystem.IKubernetesEcosystem;
@@ -66,7 +69,7 @@
/**
* The Galasa Ecosystem Manager
*
- * @author Michael Baylis
+ *
*
*/
@Component(service = { IManager.class })
@@ -75,7 +78,7 @@ public class GalasaEcosystemManagerImpl extends AbstractManager implements ILogg
public final static String NAMESPACE = "galasaecosystem";
private final Log logger = LogFactory.getLog(getClass());
private IDynamicStatusStoreService dss;
- private final Gson gson = new Gson();
+ private final GalasaGson gson = new GalasaGson();
private IArtifactManager artifactManager;
private IHttpManagerSpi httpManager;
@@ -549,7 +552,7 @@ protected IWindowsManagerSpi getWindowsManager() {
}
public Gson getGson() {
- return this.gson;
+ return this.gson.getGson();
}
public IDynamicStatusStoreService getDss() {
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/IInternalEcosystem.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/IInternalEcosystem.java
index ced239b4c..af49db919 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/IInternalEcosystem.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/IInternalEcosystem.java
@@ -1,3 +1,8 @@
+/*
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.galasaecosystem.internal;
import dev.galasa.galasaecosystem.GalasaEcosystemManagerException;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/KubernetesEcosystemImpl.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/KubernetesEcosystemImpl.java
index 821a019a0..398c2fbf9 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/KubernetesEcosystemImpl.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/KubernetesEcosystemImpl.java
@@ -1,5 +1,7 @@
/*
- * Copyright contributors to the Galasa project
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.galasaecosystem.internal;
@@ -33,7 +35,6 @@
import org.apache.commons.logging.LogFactory;
import org.yaml.snakeyaml.Yaml;
-import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
@@ -47,7 +48,7 @@
import dev.galasa.framework.spi.IFramework;
import dev.galasa.framework.spi.IRun;
import dev.galasa.framework.spi.InsufficientResourcesAvailableException;
-import dev.galasa.framework.spi.utils.GalasaGsonBuilder;
+import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.galasaecosystem.EcosystemEndpoint;
import dev.galasa.galasaecosystem.GalasaEcosystemManagerException;
import dev.galasa.galasaecosystem.IKubernetesEcosystem;
@@ -76,7 +77,7 @@
/**
* Deploy the Ecsosystem into a Kubernetes Namespace
*
- * @author Michael Baylis
+ *
*
*/
public class KubernetesEcosystemImpl extends AbstractEcosystemImpl implements IKubernetesEcosystem {
@@ -89,7 +90,7 @@ public class KubernetesEcosystemImpl extends AbstractEcosystemImpl implements IK
private final Yaml yaml = new Yaml();
- private final Gson gson = GalasaGsonBuilder.build();
+ private final GalasaGson gson = new GalasaGson();
private String dockerVersion;
private String dockerRegistry;
diff --git a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/LocalEcosystemImpl.java b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/LocalEcosystemImpl.java
index 146376c1a..1e182d0bd 100644
--- a/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/LocalEcosystemImpl.java
+++ b/galasa-managers-parent/galasa-managers-other-parent/dev.galasa.galasaecosystem.manager/src/main/java/dev/galasa/galasaecosystem/internal/LocalEcosystemImpl.java
@@ -1,6 +1,8 @@
/*
-* Copyright contributors to the Galasa project
-*/
+ * Copyright contributors to the Galasa project
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
package dev.galasa.galasaecosystem.internal;
import java.io.IOException;
@@ -13,11 +15,13 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
+import java.text.MessageFormat;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.List;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.stream.Stream;
@@ -30,7 +34,6 @@
import org.apache.commons.logging.LogFactory;
import org.apache.http.client.methods.CloseableHttpResponse;
-import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
@@ -43,7 +46,7 @@
import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.IFramework;
import dev.galasa.framework.spi.InsufficientResourcesAvailableException;
-import dev.galasa.framework.spi.utils.GalasaGsonBuilder;
+import dev.galasa.framework.spi.utils.GalasaGson;
import dev.galasa.galasaecosystem.EcosystemEndpoint;
import dev.galasa.galasaecosystem.GalasaEcosystemManagerException;
import dev.galasa.galasaecosystem.ILocalEcosystem;
@@ -53,6 +56,7 @@
import dev.galasa.galasaecosystem.internal.properties.IsolatedFullZip;
import dev.galasa.galasaecosystem.internal.properties.IsolatedMvpZip;
import dev.galasa.galasaecosystem.internal.properties.MavenUseDefaultLocalRepository;
+import dev.galasa.galasaecosystem.internal.properties.RunsTimeout;
import dev.galasa.galasaecosystem.internal.properties.RuntimeRepo;
import dev.galasa.galasaecosystem.internal.properties.RuntimeVersion;
import dev.galasa.galasaecosystem.internal.properties.SimBankTestsVersion;
@@ -91,7 +95,7 @@ public abstract class LocalEcosystemImpl extends AbstractEcosystemImpl implement
private SimPlatformInstance simPlatformInstance;
- private final Gson gson = GalasaGsonBuilder.build();
+ private final GalasaGson gson = new GalasaGson();
private final ArrayList localRuns = new ArrayList<>();
@@ -99,6 +103,8 @@ public abstract class LocalEcosystemImpl extends AbstractEcosystemImpl implement
private IFramework framework;
+ private int runsTimeout;
+
public LocalEcosystemImpl(@NotNull GalasaEcosystemManagerImpl manager,
@NotNull String tag,
@NotNull IJavaInstallation javaInstallation,
@@ -168,6 +174,7 @@ protected void build(Path runHomeDirectory, Path homeDirectory) throws GalasaEco
this.galasaBootVersion = GalasaBootVersion.get();
this.simplatformVersion = SimplatformVersion.get();
+ this.runsTimeout = RunsTimeout.get();
switch(this.isolationInstallation) {
case Full:
@@ -379,7 +386,7 @@ private void downloadArtifactsViaMaven(Path homeDirectory) throws GalasaEcosyste
@Override
public JsonObject waitForRun(String runName) throws GalasaEcosystemManagerException {
- return waitForRun(runName, 3);
+ return waitForRun(runName, runsTimeout);
}
@Override
@@ -462,117 +469,227 @@ protected void addLocalRun(@NotNull LocalRun localRun) {
this.localRuns.add(localRun);
}
- public void discard() {
-
+
+ private void discardRunIdPrefix() {
// Release runid prefix
-
try {
this.runIdPrefix.discard();
} catch (GalasaEcosystemManagerException e) {
logger.warn("Failed to discard runid prefix from dss", e);
}
+ }
- // save all data in the stored artifacts
-
- Path saRoot = getEcosystemManager().getFramework().getResultArchiveStore().getStoredArtifactsRoot();
- Path saEcosystem = saRoot.resolve("ecosystem");
-
- // CPS
+ private void saveArtifactFile(Path ecosystemRootFolderPath , Path sourceFilePath , String artifactName ) {
try {
- Files.copy(this.cpsFile, saEcosystem.resolve(cpsFile.getFileName().toString()));
+ Files.copy(cpsFile, ecosystemRootFolderPath.resolve(sourceFilePath.getFileName().toString()));
} catch(Exception e) {
- logger.warn("Failed to save the local ecosystem CPS",e);
+ logger.warn("Failed to save the local ecosystem "+artifactName,e);
}
+ }
- // DSS
- try {
- Files.copy(this.dssFile, saEcosystem.resolve(dssFile.getFileName().toString()));
- } catch(Exception e) {
- logger.warn("Failed to save the local ecosystem DSS",e);
- }
+ private void saveArtifactFile(
+ Path targetRunFolderPath ,
+ String runName,
+ Path sourceRasRunFolderPath ,
+ String artifactName ) {
- // overrides
try {
- Files.copy(this.overridesFile, saEcosystem.resolve(overridesFile.getFileName().toString()));
+ Path sourceFile = sourceRasRunFolderPath.resolve(artifactName);
+ if (Files.exists(sourceFile)) {
+ Files.copy(sourceFile, targetRunFolderPath.resolve(sourceFile.getFileName().toString()));
+ }
} catch(Exception e) {
- logger.warn("Failed to save the local ecosystem overrides",e);
+ logger.warn("Failed to copy run:" + runName + " artifact: "+artifactName,e);
}
+ }
- // bootstrap
+ private void saveBootstrap(Path bootstrapFile, Path ecosystemRootFolderPath) {
try {
- Files.copy(this.bootstrapFile, saEcosystem.resolve(bootstrapFile.getFileName().toString()));
+ if (bootstrapFile == null) {
+ throw new Exception("Programming logic error: Bootstrap file is null.");
+ }
+
+ Path bootstrapFilePath = bootstrapFile.getFileName();
+ if (bootstrapFilePath==null) {
+ throw new Exception("Programming logic error: Bootstrap file path is null.");
+ }
+
+ String pathString = bootstrapFilePath.toString();
+ logger.debug("Bootstrap file path : "+pathString);
+
+ if (ecosystemRootFolderPath == null) {
+ throw new Exception("Programming logic error: ecosystemRootFolderPath is null.");
+ }
+
+ Path ecosystemPath = ecosystemRootFolderPath.resolve(pathString);
+ if (ecosystemPath == null) {
+ throw new Exception("Programming logic error: ecosystemPath is null.");
+ }
+ logger.debug("ecosystemPath : "+pathString.toString());
+
+ Files.copy(bootstrapFile, ecosystemPath);
+
} catch(Exception e) {
logger.warn("Failed to save the local ecosystem bootstrap",e);
}
+ }
- logger.info("Not saving credentials into stored artifacts for security reasons");
+ public void discard() {
+
+ discardRunIdPrefix();
- // copy all the run data
- for(LocalRun run : this.localRuns) {
- String runName = run.getRunName();
+ // save all data in the stored artifacts
- Path rasRun = this.rasDirectory.resolve(runName);
- Path saRun = saEcosystem.resolve("runs").resolve(runName);
+ Path saRoot = getEcosystemManager().getFramework().getResultArchiveStore().getStoredArtifactsRoot();
+ Path ecosystemRootFolder = saRoot.resolve("ecosystem");
- try {
- Path runLog = rasRun.resolve("run.log");
- if (Files.exists(runLog)) {
- Files.copy(runLog, saRun.resolve(runLog.getFileName().toString()));
- }
- } catch(Exception e) {
- logger.warn("Failed to copy run " + runName + " run log",e);
- }
+ if (ecosystemRootFolder == null) {
+ logger.warn("Failed to save the local ecosystem CPS,DSS,overrides: Programming logic error: ecosystemRootFolder is null.");
+ } else {
+ saveArtifactFile(cpsFile , ecosystemRootFolder, "CPS");
+ saveArtifactFile(this.dssFile , ecosystemRootFolder, "DSS");
+ saveArtifactFile(this.overridesFile , ecosystemRootFolder, "Overrides");
+
+ saveBootstrap(bootstrapFile, ecosystemRootFolder);
- try {
- Path structure = rasRun.resolve("structure.json");
- if (Files.exists(structure)) {
- Files.copy(structure, saRun.resolve(structure.getFileName().toString()));
- }
- } catch(Exception e) {
- logger.warn("Failed to copy run " + runName + " structure json",e);
+ logger.info("Not saving credentials into stored artifacts for security reasons");
+
+ saveRunsData( this.localRuns , this.rasDirectory, ecosystemRootFolder);
+ }
+ }
+
+ /**
+ * A data bean class which represents an artifact.
+ *
+ * You can get these by reading an artifact metadata file.
+ */
+ public static class ArtifactDescriptor {
+ private String path ;
+ private String contentType ;
+
+ public ArtifactDescriptor(String path, String contentType) {
+ this.path = path ;
+ this.contentType = contentType;
+ }
+
+ public String getPath() {
+ return this.path;
+ }
+
+ public String getContentType() {
+ return this.contentType;
+ }
+
+ @Override
+ public String toString() {
+ String template = "path: ''{0}'' contentType: ''{1}''";
+ return MessageFormat.format(template,path,contentType);
+ }
+ }
+
+ /**
+ * The artifacts are described by a metadata file.
+ *
+ * This is a properties file which has the form
+ * key=value
+ *
+ * Where key is the path into the RAS folder of the artifact.
+ * And value is the content type used to create the folder
+ * in the target RAS folder.
+ *
+ * Using this function to encapsulate the gathering of the artifact
+ * descriptor information from that file, in case the file format changes.
+ * eg: To a json file which has more information inside.
+ *
+ * Ideally, we would have an ArtifactMetadata object which housed the code which
+ * does saving, and loading of the data...
+ *
+ * @param sourceRasRunFolder
+ * @return A list of ArtifactDescriptor objects.
+ */
+ private List getArtifacts(Path sourceRasRunFolder) throws IOException {
+ Path artifactsMetadataFile = sourceRasRunFolder.resolve("artifacts.properties");
+ List artifacts = new ArrayList();
+ Properties artifactProperties = new Properties();
+ if (Files.exists(artifactsMetadataFile)) {
+ artifactProperties.load(Files.newInputStream(artifactsMetadataFile));
+
+ for(Entry