microcks
Installation
dagger install github.com/fluent-ci-templates/microcks-pipeline@v0.1.4
Entrypoint
Return Type
Microcks
Example
dagger -m github.com/fluent-ci-templates/microcks-pipeline@b037023796b4a0b689b4fda76ef46892d8a8f433 call \
func (m *myModule) example() *Microcks {
return dag.
Microcks()
}
@function
def example() -> dag.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@b037023796b4a0b689b4fda76ef46892d8a8f433 call \
import-api-specs --src DIR_PATH --specification-files string --microcks-url string --keycloak-client-id string --keycloak-client-secret env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, specificationFiles string, microcksUrl string, keycloakClientId string, keycloakClientSecret *Secret) string {
return dag.
Microcks().
ImportApiSpecs(ctx, src, specificationFiles, microcksUrl, keycloakClientId, keycloakClientSecret)
}
@function
async def example(src: dagger.Directory, specification_files: str, microcks_url: str, keycloak_client_id: str, keycloak_client_secret: dagger.Secret) -> str:
return await (
dag.microcks()
.import_api_specs(src, specification_files, microcks_url, keycloak_client_id, keycloak_client_secret)
)
@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@b037023796b4a0b689b4fda76ef46892d8a8f433 call \
run-tests --api-name-and-version string --test-endpoint string --microcks-url string --keycloak-client-id string --keycloak-client-secret env:MYSECRET
func (m *myModule) example(ctx context.Context, apiNameAndVersion string, testEndpoint string, microcksUrl string, keycloakClientId string, keycloakClientSecret *Secret) string {
return dag.
Microcks().
RunTests(ctx, apiNameAndVersion, testEndpoint, microcksUrl, keycloakClientId, keycloakClientSecret)
}
@function
async def example(api_name_and_version: str, test_endpoint: str, microcks_url: str, keycloak_client_id: str, keycloak_client_secret: dagger.Secret) -> str:
return await (
dag.microcks()
.run_tests(api_name_and_version, test_endpoint, microcks_url, keycloak_client_id, keycloak_client_secret)
)
@func()
async example(apiNameAndVersion: string, testEndpoint: string, microcksUrl: string, keycloakClientId: string, keycloakClientSecret: Secret): Promise<string> {
return dag
.microcks()
.runTests(apiNameAndVersion, testEndpoint, microcksUrl, keycloakClientId, keycloakClientSecret)
}