Commit Graph

13 Commits

Author SHA1 Message Date
Tom Chauveau
ebe26a90ca Move random string generation to his own file to avoid replication in tests.
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-22 16:49:57 +02:00
Sam Alba
2d2c5a8fed tests: added tests for keepgitdir
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-13 10:39:32 -07:00
Andrea Luzzardi
d8a1f35f68 fix pipeline caching when using cache mounts
Force the Pipeline to resolve the canonical Cue value before computing.
This ensures that `.Path()` gives a constant result even on references.

Fixes #399

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-07 11:54:45 -07:00
Sam Alba
520030d4ee fixed tests creds + added authprovider to client solver
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-26 18:00:31 -07:00
Sam Alba
df4f4b293c cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-26 17:45:14 -07:00
Sam Alba
aa74b8fb7b added tests for push-container with login
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-26 17:42:48 -07:00
Tom Chauveau
7995594a12 Add more tests on Subdir operation
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-24 22:34:14 +02:00
Tom Chauveau
e366773dc0 Rename tests with new naming convention and update tests lists
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-24 22:33:52 +02:00
Tom Chauveau
57256eb8c4 Add tests for Subdir operation
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-24 19:32:02 +02:00
Andrea Luzzardi
2b7dfcae29 Revert "support registry auth"
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-23 16:59:22 -07:00
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
Andrea Luzzardi
1f640d3e25 tests: ops: use proper imports
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-14 16:44:34 -07:00
Andrea Luzzardi
381db37ca3 tests: migrate ops test to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-14 16:15:04 -07:00