This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests
Andrea Luzzardi 692bd72095 support registry auth
HACK: the way buildkit works, we can only supply an Auth Provider for the entirety of the build session (`dagger up`). Therefore, we start by scanning all auth in the entire Cue tree and supply an auth provider for all of them.

Drawbacks:
- As soon as you add `auth` in a Pipeline for a registry, all other Pipelines have access to the same registry
- You can't use different credentials for the same registry

Fixes #301

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-20 15:28:33 -07:00
..
cli input: support file/stdin source for text/json/yaml 2021-04-15 13:04:52 -07:00
compute added comment about always flag + cue fmt 2021-04-15 12:34:15 -07:00
examples/react tests: fix react example test 2021-04-08 18:48:23 -07:00
ops support registry auth 2021-04-20 15:28:33 -07:00
stdlib tests(stdlib/k8s/helm): test basic helm chart 2021-04-15 14:24:42 +02:00
cli.bats input: support file/stdin source for text/json/yaml 2021-04-15 13:04:52 -07:00
compute.bats tests: migrate compute tests to bats 2021-04-15 15:55:51 -07:00
examples.bats test: react example: use dagger up instead of compute 2021-04-15 15:09:39 -07:00
helpers.bash fix(tests): Improve the verification of local kubernetes cluster to ignore "kind: Config" field of kubeconfig 2021-04-16 16:10:58 +02:00
ops.bats support registry auth 2021-04-20 15:28:33 -07:00
package.json tests: improve bats/gh integration 2021-04-15 00:48:49 -07:00
README.md misc(README): update README.md to use bats tests 2021-04-16 22:27:26 +02:00
stdlib.bats fix(tests): Improve the verification of local kubernetes cluster to ignore "kind: Config" field of kubeconfig 2021-04-16 16:10:58 +02:00
yarn.lock tests: use bats for integration tests 2021-04-14 15:18:34 -07:00

Testing

TL;DR

# Install dependancies
yarn --cwd install

# Run all tests
yarn --cwd test

By default, the dagger binary is expected to be found in ../cmd/dagger/dagger relative to the tests directory.

If you need to change this, pass along DAGGER_BINARY=somewhere/dagger