summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-07-12 16:47:09 +0100
committerNick White <git@njw.name>2021-07-12 16:47:09 +0100
commitb8533faf24f2bf5247f28848459f9b7af77e61b3 (patch)
treeddfc1e1382f3baf3b8f84a61281056746fec48a5 /cmd
parent72e7949b8ce84bb0742b977c3827fda6ca0a752e (diff)
Add test for upAndQueue function
This involved adding a test queue, so it can be run safely without intefering with the pipeline.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/getandpurgequeue/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/getandpurgequeue/main.go b/cmd/getandpurgequeue/main.go
index 33aef60..e5466d3 100644
--- a/cmd/getandpurgequeue/main.go
+++ b/cmd/getandpurgequeue/main.go
@@ -25,6 +25,7 @@ Valid queue names:
- wipeonly
- ocrpage
- analyse
+- test
`
type QueuePipeliner interface {
@@ -34,6 +35,7 @@ type QueuePipeliner interface {
WipeQueueId() string
OCRPageQueueId() string
AnalyseQueueId() string
+ TestQueueId() string
}
func main() {
@@ -63,6 +65,7 @@ func main() {
{conn.WipeQueueId(), "wipeonly"},
{conn.OCRPageQueueId(), "ocrpage"},
{conn.AnalyseQueueId(), "analyse"},
+ {conn.TestQueueId(), "test"},
}
qname := flag.Arg(0)