We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test case schema
#TestCase: { name: string description: string transformer: #Transformer input: #Component result: input & transformer expect: result assert: [string]: true }
Example test case
package main import ( "guku.io/devx/v1" "guku.io/devx/v1/traits" "guku.io/devx/v1/transformers/compose" ) _t1: v1.#TestCase & { name: "exposable" description: "" transformer: compose.#ExposeComposeService input: { traits.#Exposable $metadata: id: "obi" endpoints: default: ports: [ { port: 8080 target: 80 }, ] } result: _ expect: { endpoints: default: host: "obi" $resources: compose: services: obi: ports: ["8080:80"] } assert: { "host is concrete": (result.endpoints.default.host & "123") == _|_ } }
Run test
cue eval
The text was updated successfully, but these errors were encountered:
added simple test case schema for transformers in 326f0fe
Sorry, something went wrong.
No branches or pull requests
Proposal
Test case schema
Example test case
Run test
cue eval
The text was updated successfully, but these errors were encountered: