You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47-8Lines changed: 47 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# microcks-cli
2
+
2
3
Simple CLI for interacting with Microcks server APIs.
3
-
It allows to launch tests with minimal dependencies.
4
+
It allows to launch tests or import API artifacts with minimal dependencies.
4
5
5
-
[](https://gitter.im/microcks/microcks-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
+
[](https://microcksio.zulipchat.com/)
6
7
7
8
## Build Status
8
9
@@ -16,26 +17,29 @@ where `[command]` can be one of the following:
16
17
*`version` to check this CLI version,
17
18
*`help` to display usage informations,
18
19
*`test` to launch new test on Microcks server.
20
+
*`import` to import API artifacts on Microcks server.
21
+
22
+
### Test command
19
23
20
-
The main `test` command has a bunch of arguments and flags so that you can use it that way:
24
+
The `test` command has a bunch of arguments and flags so that you can use it that way:
21
25
```
22
26
microcks-cli test <apiName:apiVersion> <testEndpoint> <runner>
23
27
--microcksURL=<> --waitFor=5sec
24
28
--keycloakClientId=<> --keycloakClientSecret=<>
25
29
```
26
30
27
31
The arguments:
28
-
*`<apiName:apiVersion>` : Service to test reference. Exemple: `'Beer Catalog API:0.9'`
32
+
*`<apiName:apiVersion>` : Service to test reference. Example: `'Beer Catalog API:0.9'`
29
33
*`<testEndpoint>` : URL where is deployed implementation to test
*`<specificationFile1[:primary],specificationFile2[:primary]>` : Comma separated list of API specs to import with flag telling if it's a primary artifact. Example: `'specs/my-openapi.yaml:true,specs/my-postmancollection.json:false'`
88
+
89
+
The flags:
90
+
*`--microcksURL` for the Microcks API endpoint,
91
+
*`--keycloakClientId` for the Keycloak Realm Service Account ClientId,
92
+
*`--keycloakClientSecret` for the Keycloak Realm Service Account ClientSecret.
Microcks has discovered 'WeatherForecast API:1.1.0'
101
+
Microcks has discovered 'WeatherForecast API:1.1.0'
102
+
```
103
+
104
+
#### Advanced options
105
+
106
+
The `import` command provides additional flags for advanced usages and options:
107
+
*`--verbose` allows to dump on standard output all the HTTP requests and responses,
108
+
*`--insecure` allows to interact with Microcks and Keycloak instances through HTTPS without checking certificates issuer CA,
109
+
*`--caCerts=<path1,path2>` allows to specify additional certificates CRT files to add to trusted roots ones,
110
+
111
+
73
112
## Installation
74
113
75
114
### Binary
@@ -91,4 +130,4 @@ $ docker run -it quay.io/microcks/microcks-cli:latest microcks-cli test 'Beer Ca
91
130
92
131
## Tekton tasks
93
132
94
-
This repository also contains different [Tekton](https://tekton.dev/) tasks definition and sample pipelines. You'll find under the `/tekton` folder the resource for current `v1beta1` Tekton API version and the older `v1alpha1` under `tekton/v1alpha1`.
133
+
This repository also contains different [Tekton](https://tekton.dev/) tasks definition and sample pipelines. You'll find under the `/tekton` folder the resource for current `v1beta1` Tekton API version and the older `v1alpha1` under `tekton/v1alpha1`.
0 commit comments