removed dagger up in favor of dagger do
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
@@ -4,5 +4,5 @@ setup() {
|
||||
common_setup
|
||||
}
|
||||
@test "alpine" {
|
||||
dagger up
|
||||
dagger "do" -p ./test.cue test
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: tests: {
|
||||
actions: test: {
|
||||
// Test: customize alpine version
|
||||
alpineVersion: {
|
||||
build: alpine.#Build & {
|
||||
|
@@ -5,5 +5,5 @@ setup() {
|
||||
}
|
||||
|
||||
@test "aws/cli" {
|
||||
dagger up ./sts_get_caller_identity.cue
|
||||
dagger "do" -p ./sts_get_caller_identity.cue verify
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -5,6 +5,6 @@ setup() {
|
||||
}
|
||||
|
||||
@test "bash" {
|
||||
dagger up
|
||||
dagger "do" -p ./test.cue test
|
||||
}
|
||||
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: tests: {
|
||||
actions: test: {
|
||||
|
||||
_pull: docker.#Pull & {
|
||||
source: "index.docker.io/debian"
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: tests: build: {
|
||||
actions: test: build: {
|
||||
// Test: simple docker.#Build
|
||||
simple: {
|
||||
#testValue: "hello world"
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
dagger.#Plan & {
|
||||
|
||||
actions: tests: image: {
|
||||
actions: test: image: {
|
||||
|
||||
// Test: change image config with docker.#Set
|
||||
set: {
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: tests: run: {
|
||||
actions: test: run: {
|
||||
_build: alpine.#Build
|
||||
_image: _build.output
|
||||
|
||||
|
@@ -5,5 +5,5 @@ setup() {
|
||||
}
|
||||
|
||||
@test "docker" {
|
||||
dagger up
|
||||
dagger "do" -p ./ test
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ import (
|
||||
dagger.#Plan & {
|
||||
client: filesystem: "./data/hello": read: contents: dagger.#FS
|
||||
|
||||
actions: tests: build: {
|
||||
actions: test: {
|
||||
_baseImage: alpine.#Build
|
||||
|
||||
simple: {
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: tests: container: {
|
||||
actions: test: {
|
||||
_source: dagger.#Scratch & {}
|
||||
|
||||
simple: go.#Container & {
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: tests: image: {
|
||||
actions: test: {
|
||||
_source: dagger.#Scratch & {}
|
||||
|
||||
simple: {
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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"
|
||||
}
|
||||
|
@@ -5,5 +5,5 @@ setup() {
|
||||
}
|
||||
|
||||
@test "netlify" {
|
||||
dagger up
|
||||
dagger "do" test
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ dagger.#Plan & {
|
||||
stdout: dagger.#Secret
|
||||
}
|
||||
|
||||
actions: tests: {
|
||||
actions: test: {
|
||||
|
||||
// Configuration common to all tests
|
||||
common: {
|
||||
|
@@ -5,5 +5,5 @@ setup() {
|
||||
}
|
||||
|
||||
@test "yarn" {
|
||||
dagger up
|
||||
dagger "do" test
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@ dagger.#Plan & {
|
||||
"./data/bar": read: contents: dagger.#FS
|
||||
}
|
||||
|
||||
actions: tests: {
|
||||
actions: test: {
|
||||
|
||||
// Configuration for all tests
|
||||
common: {
|
||||
|
Reference in New Issue
Block a user