Commit Graph

71 Commits

Author SHA1 Message Date
Solomon Hykes
f933278d43 Fix spec validation & merge so that default values are correctly applied
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-26 16:52:14 -08:00
Andrea Luzzardi
04526b5b78 output: merge base/input/output into a single state.cue
Exporting base/input/output separately causes merge errors.
For instance, `foo: string | *"default foo"` gets serialized as
`{"foo":"default foo"}`, which will fail to merge if output contains
a different definition of `foo`.

This change temporarily merges the 3 streams together before
serializing.

Fixes #51

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-26 12:12:42 -08:00
dubo-dubon-duponey
707dbd0256
Work on integration tests
- add new entries for #70 and #74
- cleaned-up / enriched a little bit compute and exec tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-26 11:40:38 -08:00
Andrea Luzzardi
75fbddf6be op: exec: fix dir
Fixes #30

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-25 16:19:20 -08:00
Solomon Hykes
e10025d688 Refactor op/script/component loading and spec validation
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-25 11:36:18 -08:00
Solomon Hykes
91654ba786 Unit tests to reproduce issue #19 and narrow down root cause.
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-21 15:24:00 -08:00
Andrea Luzzardi
6ab7f88007 lint all cue files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:59:21 -08:00
Andrea Luzzardi
69cd9dd323 test: re-enable undefined prop test
Rather than checking for failure, we verify that the computable part of
the configuration gets outputted.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:54:44 -08:00
dubo-dubon-duponey
d09b1b52bb
Support additional arguments for dagger binary
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-20 16:00:34 -08:00
Andrea Luzzardi
425bbace9e test: fix fetch container test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 14:24:06 -08:00
dubo-dubon-duponey
c67e02eeda
MOAR TESTS
- tests for load
- fixed a few typos in “copy” tests
- provisional tests for mount
- adding a “concurrency” test

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-15 16:38:06 -08:00
dubo-dubon-duponey
3be2865a56
Tests tests tests
- tests for #Copy
- added a “disable” helper to disable specific tests instead of just commenting them out
- “disable” will print out warnings about disabled tests (hopefully with links to corresponding issues)
- cleanup bug repro that has been subsumed into tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-15 15:10:28 -08:00
dubo-dubon-duponey
e6c482cb83
Export tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 20:01:01 -08:00
dubo-dubon-duponey
6010178131
Adding simple overlay test
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 18:59:44 -08:00
Andrea Luzzardi
0a91de3146 test: enable noop
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-14 18:01:45 -08:00
dubo-dubon-duponey
e301dfa7b1
Adding tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 17:29:12 -08:00
Solomon Hykes
8b105003bb Component.Compute: force "real" solve. Fixes #14.
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-12 10:31:50 -08:00
Solomon Hykes
0e484be9bd examples/simple: require an input directory
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-12 10:06:27 -08:00
dubo-dubon-duponey
8d104c9e10
Fix examples
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-11 16:40:13 -08:00
Solomon Hykes
c5842f894a clean up & bugfix
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-07 16:54:52 -08:00
Solomon Hykes
30f75da114 Move prototype 69-dagger-archon to top-level
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2020-12-29 18:45:16 -08:00