Skip to content

Commit 21044c6

Browse files
committed
added actors tests
1 parent e48c25b commit 21044c6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/api/actors.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+
${ACTORS_ENDPOINT} ${BASE_URL}/actors
7+
${RESTART_ACTOR_ENDPOINT} ${ACTORS_ENDPOINT}/Vectordb/restart
8+
9+
10+
*** Test Cases ***
11+
12+
List Ray Actors
13+
${response}= GET ${ACTORS_ENDPOINT} headers=${HEADERS} expected_status=200
14+
${json}= Set Variable ${response.json()}
15+
Dictionary Should Contain Key ${json} actors
16+
17+
Restart Vectordb Actor
18+
${response}= POST ${RESTART_ACTOR_ENDPOINT} headers=${HEADERS} expected_status=200
19+
${json}= Set Variable ${response.json()}
20+
Dictionary Should Contain Key ${json} message
21+
Should Contain ${json}[message] restarted successfully
22+
Dictionary Should Contain Key ${json} actor_id

0 commit comments

Comments
 (0)