Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions wanda/forge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func TestForge_withHints(t *testing.T) {
t.Fatalf("build: %v", err)
}

const tag = "cr.ray.io/rayproject/hello"
const tag = "cr.ray.io/rayproject/hello-hint"

ref, err := name.ParseReference(tag)
if err != nil {
Expand Down Expand Up @@ -214,11 +214,11 @@ func TestForge(t *testing.T) {
NamePrefix: "cr.ray.io/rayproject/",
}

if err := Build("testdata/hello.wanda.yaml", config); err != nil {
if err := Build("testdata/hello-test.wanda.yaml", config); err != nil {
t.Fatalf("build: %v", err)
}

const tag = "cr.ray.io/rayproject/hello"
const tag = "cr.ray.io/rayproject/hello-test"

ref, err := name.ParseReference(tag)
if err != nil {
Expand Down Expand Up @@ -283,7 +283,7 @@ func TestForge_noCache(t *testing.T) {
t.Fatalf("build: %v", err)
}

const tag = "cr.ray.io/rayproject/hello"
const tag = "cr.ray.io/rayproject/hello-nocache"

ref, err := name.ParseReference(tag)
if err != nil {
Expand Down Expand Up @@ -362,7 +362,7 @@ func TestForgeWithRemoteWorkRepo(t *testing.T) {
Epoch: "1",
}

if err := Build("testdata/hello.wanda.yaml", config); err != nil {
if err := Build("testdata/hello-test.wanda.yaml", config); err != nil {
t.Fatalf("build hello: %v", err)
}

Expand Down Expand Up @@ -405,7 +405,7 @@ func TestForgeWithRemoteWorkRepo(t *testing.T) {
t.Fatalf("make new forge: %v", err)
}

helloSpec, err := parseSpecFile("testdata/hello.wanda.yaml")
helloSpec, err := parseSpecFile("testdata/hello-test.wanda.yaml")
if err != nil {
t.Fatalf("parse hello spec: %v", err)
}
Expand All @@ -420,7 +420,7 @@ func TestForgeWithRemoteWorkRepo(t *testing.T) {
t.Errorf("got %d cache hits, want 1", hit)
}

hello := fmt.Sprintf("%s/work:def456-hello", crAddr)
hello := fmt.Sprintf("%s/work:def456-hello-test", crAddr)
helloRef, err := name.ParseReference(hello)
if err != nil {
t.Fatalf("parse hello reference: %v", err)
Expand Down Expand Up @@ -475,7 +475,7 @@ func TestForgeLocal_withNamePrefix(t *testing.T) {
Epoch: randomEpoch(),
}

if err := Build("testdata/hello.wanda.yaml", config); err != nil {
if err := Build("testdata/hello-test.wanda.yaml", config); err != nil {
t.Fatalf("build hello: %v", err)
}

Expand Down Expand Up @@ -518,7 +518,7 @@ func TestForgeLocal_withNamePrefix(t *testing.T) {
t.Fatalf("make new forge: %v", err)
}

helloSpec, err := parseSpecFile("testdata/hello.wanda.yaml")
helloSpec, err := parseSpecFile("testdata/hello-test.wanda.yaml")
if err != nil {
t.Fatalf("parse hello spec: %v", err)
}
Expand All @@ -531,7 +531,7 @@ func TestForgeLocal_withNamePrefix(t *testing.T) {
t.Errorf("got %d cache hits, want 1", hit)
}

hello := "localhost:5000/rayci-work:abc123-hello"
hello := "localhost:5000/rayci-work:abc123-hello-test"
helloRef, err := name.ParseReference(hello)
if err != nil {
t.Fatalf("parse hello reference: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion wanda/testdata/Dockerfile.world
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM cr.ray.io/rayproject/hello
FROM cr.ray.io/rayproject/hello-test

COPY world.txt /opt/app/world.txt
2 changes: 1 addition & 1 deletion wanda/testdata/hello-hint.wanda.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: hello
name: hello-hint
dockerfile: Dockerfile.hello
build_hint_args:
- MESSAGE=hint message
2 changes: 1 addition & 1 deletion wanda/testdata/hello-nocache.wanda.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: hello
name: hello-nocache
dockerfile: Dockerfile.hello
disable_caching: true
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: hello
name: hello-test
dockerfile: Dockerfile.hello
2 changes: 1 addition & 1 deletion wanda/testdata/world.wanda.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: world
dockerfile: Dockerfile.world
froms: [ "cr.ray.io/rayproject/hello" ]
froms: [ "cr.ray.io/rayproject/hello-test" ]
srcs:
- world.txt