removed dagger up in favor of dagger do

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2022-03-09 11:45:46 -07:00
parent 945b7293af
commit 6b81dc439d
34 changed files with 286 additions and 536 deletions

View File

@@ -4,5 +4,5 @@ setup() {
common_setup
}
@test "alpine" {
dagger up
dagger "do" -p ./test.cue test
}

View File

@@ -8,7 +8,7 @@ import (
)
dagger.#Plan & {
actions: tests: {
actions: test: {
// Test: customize alpine version
alpineVersion: {
build: alpine.#Build & {

View File

@@ -5,5 +5,5 @@ setup() {
}
@test "aws/cli" {
dagger up ./sts_get_caller_identity.cue
dagger "do" -p ./sts_get_caller_identity.cue verify
}

View File

@@ -5,7 +5,7 @@ setup() {
}
@test "aws" {
dagger up ./default_version.cue
dagger up ./credentials.cue
dagger up ./config_file.cue
dagger "do" -p ./default_version.cue getVersion
dagger "do" -p ./credentials.cue verify
dagger "do" -p ./config_file.cue verify
}

View File

@@ -5,6 +5,6 @@ setup() {
}
@test "bash" {
dagger up
dagger "do" -p ./test.cue test
}

View File

@@ -8,7 +8,7 @@ import (
)
dagger.#Plan & {
actions: tests: {
actions: test: {
_pull: docker.#Pull & {
source: "index.docker.io/debian"

View File

@@ -8,7 +8,7 @@ import (
)
dagger.#Plan & {
actions: tests: build: {
actions: test: build: {
// Test: simple docker.#Build
simple: {
#testValue: "hello world"

View File

@@ -7,7 +7,7 @@ import (
dagger.#Plan & {
actions: tests: image: {
actions: test: image: {
// Test: change image config with docker.#Set
set: {

View File

@@ -8,7 +8,7 @@ import (
)
dagger.#Plan & {
actions: tests: run: {
actions: test: run: {
_build: alpine.#Build
_image: _build.output

View File

@@ -5,5 +5,5 @@ setup() {
}
@test "docker" {
dagger up
dagger "do" -p ./ test
}

View File

@@ -10,7 +10,7 @@ import (
dagger.#Plan & {
client: filesystem: "./data/hello": read: contents: dagger.#FS
actions: tests: build: {
actions: test: {
_baseImage: alpine.#Build
simple: {

View File

@@ -7,7 +7,7 @@ import (
)
dagger.#Plan & {
actions: tests: container: {
actions: test: {
_source: dagger.#Scratch & {}
simple: go.#Container & {

View File

@@ -7,7 +7,7 @@ import (
)
dagger.#Plan & {
actions: tests: image: {
actions: test: {
_source: dagger.#Scratch & {}
simple: {

View File

@@ -5,8 +5,8 @@ setup() {
}
@test "bash" {
dagger up ./build.cue
dagger up ./container.cue
dagger up ./image.cue
dagger up ./test.cue
dagger "do" -p ./build.cue test
dagger "do" -p ./container.cue test
dagger "do" -p ./image.cue test
dagger "do" -p ./test.cue test
}

View File

@@ -8,7 +8,7 @@ import (
dagger.#Plan & {
client: filesystem: "./data/hello": read: contents: dagger.#FS
actions: tests: test: simple: go.#Test & {
actions: test: go.#Test & {
source: client.filesystem."./data/hello".read.contents
package: "./greeting"
}

View File

@@ -5,5 +5,5 @@ setup() {
}
@test "netlify" {
dagger up
dagger "do" test
}

View File

@@ -16,7 +16,7 @@ dagger.#Plan & {
stdout: dagger.#Secret
}
actions: tests: {
actions: test: {
// Configuration common to all tests
common: {

View File

@@ -5,5 +5,5 @@ setup() {
}
@test "yarn" {
dagger up
dagger "do" test
}

View File

@@ -13,7 +13,7 @@ dagger.#Plan & {
"./data/bar": read: contents: dagger.#FS
}
actions: tests: {
actions: test: {
// Configuration for all tests
common: {