Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 6e280551 authored by Francois M's avatar Francois M
Browse files

up

parent 26252ced
Branches
Tags
1 merge request!74Draft: Update DNS Plugin to set allow_underscores_in_hostnames +...
Pipeline #264982 passed
Pipeline: Netbox Plugins

#264984

    ......@@ -73,12 +73,17 @@ Test create 2nd Record to test unique key
    ${payload} Create Dictionary value 1.2.3.4 name test_unique_robot prio 0 ttl 3600 type A zone ${ZN_ID} view default
    ${response}= POST ${BASE_URL}${RECORDS_ENDPOINT} json=${payload} headers=${HEADERS} expected_status=400
    Test create 3rd Record to test unique key with different Type (CNAME) that should fail
    Test create 3rd Record to test unique key with different value
    ${HEADERS} Create Dictionary Content-Type ${CONTENT_TYPE} Authorization ${TOKEN}
    ${payload} Create Dictionary value 1.2.3.5 name test_unique_robot prio 0 ttl 3600 type A zone ${ZN_ID} view default
    ${response}= POST ${BASE_URL}${RECORDS_ENDPOINT} json=${payload} headers=${HEADERS} expected_status=201
    Test create 4th Record to test unique key with different Type (CNAME) that should fail
    ${HEADERS} Create Dictionary Content-Type ${CONTENT_TYPE} Authorization ${TOKEN}
    ${payload} Create Dictionary value myrobot.domain name test_unique_robot prio 0 ttl 3600 type CNAME zone ${ZN_ID} view default
    ${response}= POST ${BASE_URL}${RECORDS_ENDPOINT} json=${payload} headers=${HEADERS} expected_status=400
    Test create 4rd Record to test unique key with different Type (TXT) that should pass
    Test create 5th Record to test unique key with different Type (TXT) that should pass
    ${HEADERS} Create Dictionary Content-Type ${CONTENT_TYPE} Authorization ${TOKEN}
    ${payload} Create Dictionary value thisisatest name test_unique_robot prio 0 ttl 3600 type TXT zone ${ZN_ID} view default
    ${response}= POST ${BASE_URL}${RECORDS_ENDPOINT} json=${payload} headers=${HEADERS} expected_status=201
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment