Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: npm run serve &

- name: Check for broken links
run: npx broken-link-checker -ro --exclude /docs/managers/ --filter-level 3 --host-requests 8 --user-agent Chrome/90 --exclude https://fonts.gstatic.com/ --exclude https://github.com/galasa-dev/extensions/ http://localhost:9000
run: npx broken-link-checker -ro --exclude /docs/managers/ --filter-level 3 --host-requests 8 --user-agent Chrome/90 --exclude https://fonts.gstatic.com/ --exclude https://github.com/galasa-dev/extensions/ --exclude https://*.algolia.net/ --exclude https://github.com/ http://localhost:9000

- name: Upload raw site
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
run: npm run serve &

- name: Check for broken links
run: npx broken-link-checker -ro --exclude /docs/managers/ --filter-level 3 --host-requests 8 --user-agent Chrome/90 --exclude https://fonts.gstatic.com/ --exclude https://github.com/galasa-dev/extensions/ http://localhost:9000
run: npx broken-link-checker -ro --exclude /docs/managers/ --filter-level 3 --host-requests 8 --user-agent Chrome/90 --exclude https://fonts.gstatic.com/ --exclude https://github.com/galasa-dev/extensions/ --exclude https://*.algolia.net/ --exclude https://github.com/ http://localhost:9000

- name: Upload raw site
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
Expand Down
2 changes: 2 additions & 0 deletions src/data/nav.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
path: /docs/writing-own-tests/binding-tests
- title: Key principles for writing tests
path: /docs/writing-own-tests/key-principles
- title: Controlling code execution after test failure
path: /docs/writing-own-tests/test-result-provider
- title: The Galasa Ecosystem
path: /docs/ecosystem
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ On Mac:
3. Then you have a choice. Either install the latest version fo the `galasactl` tool, or install a specific version.
1. To install the latest version of `galasactl`:
`brew install --no-quarantine galasactl`
2. To install a specific version of `galasactl` (version 0.40.0 for example):
`brew install --no-quarantine galasactl@0.40.0`
2. To install a specific version of `galasactl` (version 0.41.0 for example):
`brew install --no-quarantine galasactl@0.41.0`
Note: You can check to see what versions are available using this:
`brew tap-info galasa-dev/tap --json` and look in the `"cask_tokens"` part of the json file.

Expand Down
6 changes: 3 additions & 3 deletions src/markdown-pages/docs/ecosystem/ecosystem-installing-k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,22 +237,22 @@ Once you have successfully installed the Ecosystem, you can then deploy your Gal
## Upgrading the Galasa Ecosystem


Get the latest version of the Ecosystem chart and upgrade the Galasa Ecosystem to use the newer version of Galasa - for example version 0.40.0 - by running the following command:
Get the latest version of the Ecosystem chart and upgrade the Galasa Ecosystem to use the newer version of Galasa - for example version 0.41.0 - by running the following command:

On Mac or Unix:

```console
helm repo update \
helm upgrade <release-name> galasa/ecosystem --reuse-values \
--set galasaVersion=0.40.0 --wait
--set galasaVersion=0.41.0 --wait
```

On Windows (Powershell):

```console
helm repo update `
helm upgrade <release-name> galasa/ecosystem --reuse-values `
--set galasaVersion=0.40.0 --wait
--set galasaVersion=0.41.0 --wait
```

where:<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ The system also has some constraints on how these resources can be set up and us
- The `owner` role can only be assigned using the Helm property, not via the command-line or REST interface.

## <a name="upgrading-to-a-version-of-galasa-which-supports-rbac"></a>Upgrading to a version of Galasa which supports RBAC
When upgrading your Galasa service to a version 0.40.0 or later, any existing users will be assigned the role of `admin` without any extra action being required.
When upgrading your Galasa service to a version 0.41.0 or later, any existing users will be assigned the role of `admin` without any extra action being required.

Under such circumstances you may wish to assign the role of `tester` to anyone who now should not have administration rights.

Expand Down
1 change: 1 addition & 0 deletions src/markdown-pages/docs/manage-ecosystem/runs-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Use the tables provided to view the options for filtering test results, and for
| `--result` | Use the [`--result` option](#result) to return test runs based on test run results. You can select more than one result by using a comma-separated list. The `--result` flag cannot be used in conjunction with the `--active` flag. The two flags are mutually exclusive. |
| `--active` | Use the `--active` option to query tests that have not finished, so that you can quickly see which tests are currently running. The `--active` flag cannot be used in conjunction with the `--result` flag. The two flags are mutually exclusive.|
| `--group` | Use the `--group` flag to get all the test runs associated with the given group name. A custom group name can be assigned to a set of test runs when submitting tests using the [galasactl runs submit](./ecosystem-cli-runs-submit) command, otherwise a random group name will be assigned. `--group` can be used with other flags, like `--age`, `--requestor`, and `--result`, to filter test runs as desired, but it cannot be used alongside the `--name` flag. |
| `--tags` | Use the `--tags` flag to get all the test runs that have the given test tags assigned to them. A custom set of tags can be assigned to a set of test runs when submitting tests using the [galasactl runs submit](./ecosystem-cli-runs-submit) command. `--tags` can be used with other flags, like `--age`, `--requestor`, and `--result`, to filter test runs as desired. Multiple tags can be supplied by either providing `--tags` with a comma-separated list of tags (e.g. `--tags tag1,tag2,tag3`) or by providing multiple `--tags` flags separately (e.g. `--tags tag1 --tags tag2 --tags tag3`). |

<b>Table 2:</b> The following table shows the options that you can set on the `galasactl runs get` command to display test run results in different formats:

Expand Down
11 changes: 11 additions & 0 deletions src/markdown-pages/docs/managers.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ Each Manager is tagged with one of the follow readiness indicators:



<details>
<summary><b>IMS TM Managers</b></summary>

Name | Description |
| :-------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **[IMS TM Manager](/docs/managers/ims-tm-manager)**<br> ![alpha](../../images/alpha.svg) | Provides configuration information for pre-existing IMS TM systems. Drives provisioning services from other managers, e.g. z/OS 3270 Manager. |

</details>



<details>
<summary><b>Cloud Managers</b></summary>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ The following are properties used to configure the Galasa Ecosystem Manager.
| Required: | No |
| Default value: | None |
| Valid values: | Valid URL |
| Examples: | <code>galasaecosystem.isolated.mvp.zip=https://github.com/galasa-dev/isolated/releases/download/v0.40.0/galasa-isolated-mvp-0.40.0.zip</code> |
| Examples: | <code>galasaecosystem.isolated.mvp.zip=https://github.com/galasa-dev/isolated/releases/download/v0.41.0/galasa-isolated-mvp-0.41.0.zip</code> |

</details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ In order to run the Galasa SimBanks tests you need to add some configuration inf

## Running the SimBank IVT test class by using the CLI

The SimBank tests are located in the `maven` directory of the `isolated.zip` downloadable file. Complete the following steps to run the SimBankIVT test that is provided with Galasa. The following example uses SimBank OBR version `0.40.0`.
The SimBank tests are located in the `maven` directory of the `isolated.zip` downloadable file. Complete the following steps to run the SimBankIVT test that is provided with Galasa. The following example uses SimBank OBR version `0.41.0`.

Remember to initialise your local environment by running the `galasactl local init` command and to start the SimPlatform server by running the `run-simplatform.sh` script, as described in the [Running Galasa SimBank using the CLI offline](simbank-cli-offline) documentation.

Expand All @@ -59,14 +59,14 @@ You are now ready to run a local Galasa test offline with just the contents of t
On Mac or Unix:
```
galasactl runs submit local --log - \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr \
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.SimBankIVT \
--localMaven file:////Users/youruserid/Downloads/isolated/maven
```
On Windows (Powershell):
```
galasactl runs submit local --log - `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr `
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.SimBankIVT `
--localMaven file:////Users/youruserid/Downloads/isolated/maven
```
Expand All @@ -80,7 +80,7 @@ On Mac or Unix:

```
galasactl runs submit local --log - \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr \
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.BasicAccountCreditTest \
--localMaven file:////Users/youruserid/Downloads/isolated/maven
```
Expand All @@ -89,7 +89,7 @@ On Windows (Powershell):

```
galasactl runs submit local --log - `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr `
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.BasicAccountCreditTest `
--localMaven file:////Users/youruserid/Downloads/isolated/maven
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ In order to run the Galasa SimBanks tests you need to add some configuration inf

The SimBank tests are held in the <a href="https://github.com/galasa-dev/simplatform" target="_blank"> Galasa simplatform repository</a> in GitHub. To start running the tests you need to clone the repository, if you have not already done so. To find out how to clone the cli repository, follow the instruction in the [Running Galasa SimBank online](../running-simbank-tests/simbank-cli) documentation.

After cloning the repository, complete the following steps to run the SimBankIVT test that is provided with Galasa. The following example uses SimBank OBR version `0.40.0` and Galasa uber OBR version `0.40.0`.
After cloning the repository, complete the following steps to run the SimBankIVT test that is provided with Galasa. The following example uses SimBank OBR version `0.41.0` and Galasa uber OBR version `0.41.0`.

You can find the version of the `dev.galasa.simbank.obr` that you are using by looking in the `pom.xml` file in the `dev.galasa.simbank.obr` folder. The `dev.galasa.uber.obr` is the OBR that contains all the bundles that are needed for Galasa to work including Managers, any required dependencies, the framework, etc. The version of the `dev.galasa.uber.obr` depends on which version of Galasa you have installed.

Expand Down Expand Up @@ -84,13 +84,13 @@ If you are a Mac or Linux user, the messages will be almost identical.
On Mac or Unix:
```
galasactl runs submit local --log - \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr \
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.SimBankIVT
```
On Windows (Powershell):
```
galasactl runs submit local --log - `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr `
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.SimBankIVT
```
where:
Expand All @@ -107,15 +107,15 @@ On Mac or Unix:

```
galasactl runs submit local --log - \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr \
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr \
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.BasicAccountCreditTest
```

On Windows (Powershell):

```
galasactl runs submit local --log - `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.40.0/obr `
--obr mvn:dev.galasa/dev.galasa.simbank.obr/0.41.0/obr `
--class dev.galasa.simbank.tests/dev.galasa.simbank.tests.BasicAccountCreditTest
```

Expand Down
37 changes: 37 additions & 0 deletions src/markdown-pages/docs/writing-own-tests/test-result-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
path: "/docs/writing-own-tests/test-result-provider"
title: "Controlling code execution after test failure"
---

As a tester, you may want the ability to access the result so far of a Galasa test at different points during the test lifecycle, to control the execution of code based on that result.

The `ITestResultProvider` can be used to get the test result so far after the first method invokation in a test. It can give you access to if the test is in Passed or Failed state. You can then check the result so far in your test code and choose to call or not call non-test methods based on this.

The annotation `@TestResultProvider` injects a `ITestResultProvider` object into your test class. The Core Manager updates the provider with the test result so far after each `@BeforeClass`, `@Before`, `@Test`, `@After` and `@AfterClass` method.

To use this capability, simply include the lines of code below in your test:

```java
@TestResultProvider
public ITestResultProvider testResultProvider;
```

In the example below, the `@AfterClass` method retrieves the result from the `ITestResultProvider` and checks if it is Failed. If the result is Failed, the method `myCustomCleanupMethod` is called which could contain some diagnostic collection or clean up of resources, which the tester only wants to be run if the test Failed.

```java
@AfterClass
public void afterClassMethod() throws FrameworkException {
if (testResultProvider.getResult().isFailed()) {
myCustomCleanupMethod();
}
}

private void myCustomCleanupMethod() {
try {
// Some custom cleanup logic that only happens on failures.
} catch(Exception ex) {
logger.error("Failing while cleaning up in myCustomCleanupMethod()");
// Ignore the problem.
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Once loaded by the Galasa test runner, there are a few further annotations that

**`@Test`**
<br>
This annotation identifies a method as one that contains test code. Such methods are executed by Galasa by the order in which they appear in the test class - from top to bottom. If a test method fails, the following test methods are bypassed to encourage short, sharp parallel testing. This behaviour can be overridden using the `@StopOnError` annotation on the `class` statement.
This annotation identifies a method as one that contains test code. Such methods are executed by Galasa by the order in which they appear in the test class - from top to bottom. If a test method fails, the following test methods are bypassed to encourage short, sharp parallel testing. This behaviour can be overridden using the `@ContinueOnTestFailure` annotation on the `class` statement.

When a test method succeeds it is marked as PASSED, and if there is an exception it is marked FAILED. Managers can override this marking - for example, if a test throws a specific exception, a Manager could set the result to DISASTER.

Expand Down
Loading