From 939f747aca5ac6348cfa071256bfe683533d3452 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Tue, 27 Feb 2024 07:33:23 +0000 Subject: [PATCH] update README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 3555a15..a1846fa 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,25 @@ Use as a [Dagger](https://dagger.io) module: dagger install github.com/fluent-ci-templates/microcks-pipeline@main ``` +Call a function from the module: + +```bash +# Import API specifications into Microcks +dagger call import-api-specs --src . \ + --specification-files $SPECIFICATION_FILES \ + --microcks-url $MICROCKS_URL \ + --keycloak-client-id $KEYCLOAK_CLIENT_ID \ + --keycloak-client-secret KEYCLOAK_CLIENT_SECRET + +# Run Microcks tests +dagger call run-tests --api-name-and-version "$API_NAME_AND_VERSION" \ +--test-endpoint $TEST_ENDPOINT \ +--runner $RUNNER \ +--microcks-url $MICROCKS_URL \ +--keycloak-client-id $KEYCLOAK_CLIENT_ID \ +--keycloak-client-secret KEYCLOAK_CLIENT_SECRET +``` + ## Environment variables | Variable | Description | Default |