-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
53 lines (53 loc) · 1.99 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'Microcks Test GitHub action'
author: 'Microcks.io'
description: 'Launch a Microcks test on an API endpoint'
inputs:
apiNameAndVersion:
description: "<apiName:apiVersion>: Service to test reference. Example: 'Beer Catalog API:0.9'"
required: true
testEndpoint:
description: 'URL where is deployed implementation to test'
required: true
runner:
description: 'Test strategy (one of: HTTP, SOAP, SOAP_UI, POSTMAN, OPEN_API_SCHEMA, ASYNC_API_SCHEMA, GRPC_PROTOBUF, GRAPHQL_SCHEMA)'
required: true
default: 'HTTP'
microcksURL:
description: 'Microcks instance API endpoint'
required: true
keycloakClientId:
description: 'Keycloak Realm Service Account ClientId'
required: true
keycloakClientSecret:
description: 'Keycloak Realm Service Account ClientSecret'
required: true
waitFor:
description: 'Time to wait for test to finish (int + one of: milli, sec, min)'
required: false
default: '5sec'
secretName:
description: 'The name of a Secret to use for connecting test endpoint'
required: false
default: ''
filteredOperations:
description: 'JSON that allows to filter a list of operations to launch a test for'
required: false
default: ''
operationsHeaders:
description: 'JSON that override some operations headers for the tests to launch'
required: false
default: ''
runs:
using: 'docker'
image: 'docker://quay.io/microcks/microcks-cli:0.5.6'
entrypoint: '/usr/bin/bash'
args:
- '-c'
- >-
microcks-cli test '${{ inputs.apiNameAndVersion }}' ${{ inputs.testEndpoint }} ${{ inputs.runner }} \
--microcksURL=${{ inputs.microcksURL }} --waitFor=${{ inputs.waitFor }} --secretName='${{ inputs.secretName }}' \
--keycloakClientId=${{ inputs.keycloakClientId }} --keycloakClientSecret=${{ inputs.keycloakClientSecret }} \
--insecure --filteredOperations='${{ inputs.filterOperations }}' --operationsHeaders='${{ inputs.operationsHeaders }}'
branding:
icon: 'upload-cloud'
color: 'blue'