microcks
Import API specifications into Microcks and run Microcks tests
Installation
dagger install github.com/fluent-ci-templates/microcks-pipeline@v0.1.2Entrypoint
Return Type
Microcks Example
dagger -m github.com/fluent-ci-templates/microcks-pipeline@645fe89a0d2a46afbfb778a938cddc06d26b4c4c call \
func (m *MyModule) Example() *dagger.Microcks {
return dag.
Microcks()
}@function
def example() -> dagger.Microcks:
return (
dag.microcks()
)@func()
example(): Microcks {
return dag
.microcks()
}Types
Microcks 🔗
importApiSpecs() 🔗
Import API specifications into Microcks
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| specificationFiles | String ! | - | No description provided |
| microcksUrl | String ! | - | No description provided |
| keycloakClientId | String ! | - | No description provided |
| keycloakClientSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/microcks-pipeline@645fe89a0d2a46afbfb778a938cddc06d26b4c4c call \
import-api-specs --src DIR_PATH --specification-files string --microcks-url string --keycloak-client-id string --keycloak-client-secret env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, specificationFiles string, microcksUrl string, keycloakClientId string, keycloakClientSecret *dagger.Secret) string {
return dag.
Microcks().
Importapispecs(ctx, src, specificationFiles, microcksUrl, keycloakClientId, keycloakClientSecret)
}@function
async def example(src: dagger.Directory, specificationfiles: str, microcksurl: str, keycloakclientid: str, keycloakclientsecret: dagger.Secret) -> str:
return await (
dag.microcks()
.importapispecs(src, specificationfiles, microcksurl, keycloakclientid, keycloakclientsecret)
)@func()
async example(src: Directory, specificationFiles: string, microcksUrl: string, keycloakClientId: string, keycloakClientSecret: Secret): Promise<string> {
return dag
.microcks()
.importApiSpecs(src, specificationFiles, microcksUrl, keycloakClientId, keycloakClientSecret)
}runTests() 🔗
Launch a Microcks test on an API endpoint
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| apiNameAndVersion | String ! | - | No description provided |
| testEndpoint | String ! | - | No description provided |
| microcksUrl | String ! | - | No description provided |
| keycloakClientId | String ! | - | No description provided |
| keycloakClientSecret | Secret ! | - | No description provided |
| runner | String | "HTTP" | No description provided |
| waitFor | String | "5sec" | No description provided |
| secretName | String | - | No description provided |
| filteredOperations | String | - | No description provided |
| operationsHeaders | String | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/microcks-pipeline@645fe89a0d2a46afbfb778a938cddc06d26b4c4c call \
run-tests --api-name-and-version string --test-endpoint string --microcks-url string --keycloak-client-id string --keycloak-client-secret env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, apiNameAndVersion string, testEndpoint string, microcksUrl string, keycloakClientId string, keycloakClientSecret *dagger.Secret) string {
return dag.
Microcks().
Runtests(ctx, apiNameAndVersion, testEndpoint, microcksUrl, keycloakClientId, keycloakClientSecret)
}@function
async def example(apinameandversion: str, testendpoint: str, microcksurl: str, keycloakclientid: str, keycloakclientsecret: dagger.Secret) -> str:
return await (
dag.microcks()
.runtests(apinameandversion, testendpoint, microcksurl, keycloakclientid, keycloakclientsecret)
)@func()
async example(apiNameAndVersion: string, testEndpoint: string, microcksUrl: string, keycloakClientId: string, keycloakClientSecret: Secret): Promise<string> {
return dag
.microcks()
.runTests(apiNameAndVersion, testEndpoint, microcksUrl, keycloakClientId, keycloakClientSecret)
}