Skip to content

Commit

Permalink
oblt-cli/cluster-create-custom: Add multiline JSON parameters input t…
Browse files Browse the repository at this point in the history
…est (#46)

* Add test to verify you can pass multiline JSON string to parameters input

* cleanup
  • Loading branch information
reakaleek authored Jun 6, 2024
1 parent 686e94d commit bb9e724
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/test-oblt-cli-cluster-create-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
needs:
- no-gitops
- gitops
- multiline
runs-on: ubuntu-latest
steps:
- id: check
Expand Down Expand Up @@ -57,3 +58,22 @@ jobs:
gitops: true
dry-run: ${{ github.event.inputs.dry-run != '' && github.event.inputs.dry-run || true }}
parameters: '{"RemoteClusterName":"release-oblt","StackVersion":"8.7.0","KibanaDockerImage":"docker.elastic.co/observability-ci/kibana-cloud:8.7.0-SNAPSHOT"}'

multiline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elastic/oblt-actions/git/setup@v1
- uses: ./oblt-cli/cluster-create-custom
with:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
template: 'deploy-kibana'
cluster-name-prefix: 'testgithubaction'
gitops: true
dry-run: true
parameters: |
{
"RemoteClusterName": "release-oblt",
"StackVersion": "8.7.0",
"KibanaDockerImage": "docker.elastic.co/observability-ci/kibana-cloud:8.7.0-SNAPSHOT"
}
1 change: 0 additions & 1 deletion oblt-cli/cluster-create-custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ runs:
core.setOutput('SKIP_RANDOM_NAME', '--skip-random-name')
}
- uses: elastic/oblt-actions/oblt-cli/setup@v1.8.1
with:
github-token: ${{ inputs.github-token }}
Expand Down

0 comments on commit bb9e724

Please sign in to comment.