Skip to content

Commit 78a2d0c

Browse files
added test for default job with latest tag
1 parent fd738ec commit 78a2d0c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

worker_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ func TestScanAndProcess(t *testing.T) {
9898
data: []byte(`{"ts":1638576647406523064,"labels":{"filename":"wow1.txt"}}`),
9999
},
100100
},
101+
"DefaultLatest": {
102+
{
103+
path: "node-000048b02d15bc7c/uploads/imagesampler-top/latest/1638576647406523064-9801739daae44ec5293d4e1f53d3f4d2d426d91c/data",
104+
upload: "node-data/sage/sage-imagesampler-top-latest/000048b02d15bc7c/1638576647406523064-wow1.txt",
105+
data: []byte(`some more data`),
106+
},
107+
{
108+
path: "node-000048b02d15bc7c/uploads/imagesampler-top/latest/1638576647406523064-9801739daae44ec5293d4e1f53d3f4d2d426d91c/meta",
109+
upload: "node-data/sage/sage-imagesampler-top-latest/000048b02d15bc7c/1638576647406523064-wow1.txt.meta",
110+
data: []byte(`{"ts":1638576647406523064,"labels":{"filename":"wow1.txt"}}`),
111+
},
112+
},
101113
"Latest": {
102114
{
103115
path: "node-000048b02d15bc7c/uploads/Pluginctl/imagesampler-top/latest/1638576647406523064-9801739daae44ec5293d4e1f53d3f4d2d426d91c/data",

0 commit comments

Comments
 (0)