aboutsummaryrefslogtreecommitdiffstats
path: root/tests/so/etsi/etsi_tests.robot
blob: e3d0a950ff72542e1057804925cfb1b7ff5d8395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
*** Settings ***
Library     Collections
Library     RequestsLibrary
Library     OperatingSystem
Library     json

*** Variables ***
${MESSAGE}    Hello, world!

*** Test Cases ***

Distribute Service Template
    Create Session   refrepo  http://${REPO_IP}:8085
    ${data}=    Get Binary File     ${CURDIR}${/}data${/}distributeServiceTemplate.json
    &{headers}=  Create Dictionary    Authorization=Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ=    resource-location=/distribution-test-zip/unzipped     Content-Type=application/json    Accept=application/json
    log to console  \nAbout to POST ${REPO_IP}
    ${resp}=    Post Request    refrepo    /test/treatNotification/v1    data=${data}    headers=${headers}
    log to console  \nAFRTE POST
    Run Keyword If  '${resp.status_code}' == '200'  log to console  \nexecuted with expected result