Skip to content

Commit e48c25b

Browse files
committed
added queue tests
1 parent ba1ac5e commit e48c25b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/api/actors.robot

Whitespace-only changes.

tests/api/queue.robot

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*** Settings ***
2+
Resource keywords.robot
3+
Library RequestsLibrary
4+
5+
*** Variables ***
6+
${QUEUE_ENDPOINT} ${BASE_URL}/queue
7+
${QUEUE_INFO_ENDPOINT} ${QUEUE_ENDPOINT}/info
8+
${QUEUE_TASKS_ENDPOINT} ${QUEUE_ENDPOINT}/tasks
9+
10+
11+
*** Test Cases ***
12+
13+
Queue Info Endpoint
14+
${response}= GET ${QUEUE_INFO_ENDPOINT} headers=${HEADERS} expected_status=200
15+
${json}= Set Variable ${response.json()}
16+
Dictionary Should Contain Key ${json} workers
17+
Dictionary Should Contain Key ${json} tasks
18+
19+
Queue Tasks Endpoint
20+
${response}= GET ${QUEUE_TASKS_ENDPOINT} headers=${HEADERS} expected_status=200
21+
${json}= Set Variable ${response.json()}
22+
Dictionary Should Contain Key ${json} tasks

0 commit comments

Comments
 (0)