summaryrefslogtreecommitdiff
path: root/tests/plugins/jobs/jobs_amqp_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-22 19:41:11 +0300
committerValery Piashchynski <[email protected]>2021-07-22 19:41:11 +0300
commit584e9ad1f50223f873661babae3b365a2b0662ec (patch)
tree16c0b10b57f6703e56f6c84d7d81ae43f554bbf4 /tests/plugins/jobs/jobs_amqp_test.go
parent2ceebd687fd17b6029ef3df0e979c39bb39abc7f (diff)
Initial tests for all drivers
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/jobs/jobs_amqp_test.go')
-rw-r--r--tests/plugins/jobs/jobs_amqp_test.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/plugins/jobs/jobs_amqp_test.go b/tests/plugins/jobs/jobs_amqp_test.go
index 52bb6c7c..a95ac98b 100644
--- a/tests/plugins/jobs/jobs_amqp_test.go
+++ b/tests/plugins/jobs/jobs_amqp_test.go
@@ -205,7 +205,7 @@ func TestAMQPDeclare(t *testing.T) {
time.Sleep(time.Second * 3)
t.Run("DeclareAMQPPipeline", declareAMQPPipe)
- t.Run("ConsumeAMQPPipeline", consumeAMQPPipe)
+ t.Run("ConsumeAMQPPipeline", resumePipes("test-3"))
t.Run("PushAMQPPipeline", pushToPipe("test-3"))
t.Run("PauseAMQPPipeline", pausePipelines("test-3"))
t.Run("DestroyAMQPPipeline", destroyPipelines("test-3"))
@@ -238,16 +238,3 @@ func declareAMQPPipe(t *testing.T) {
err = client.Call("jobs.Declare", pipe, er)
assert.NoError(t, err)
}
-
-func consumeAMQPPipe(t *testing.T) {
- conn, err := net.Dial("tcp", "127.0.0.1:6001")
- assert.NoError(t, err)
- client := rpc.NewClientWithCodec(goridgeRpc.NewClientCodec(conn))
-
- pipe := &jobsv1beta.Pipelines{Pipelines: make([]string, 1)}
- pipe.GetPipelines()[0] = "test-3"
-
- er := &jobsv1beta.Empty{}
- err = client.Call("jobs.Resume", pipe, er)
- assert.NoError(t, err)
-}