CBD3-DU-MA-UC-01-01.robot 1.51 KB
Newer Older
1
2
3
4
*** Settings ***
Documentation  1. Формування посилань на модуль аукціону
    ...  Відсутність поданих заяв на участь протягом tenderPeriod
    ...  https://confluence-sale.prozorro.org/pages/viewpage.action?pageId=63276306#id-ТестуванняМАDutch-CBD3-DU-MA-UC-01-01
Vladyslav Koval's avatar
Vladyslav Koval committed
5
Default Tags  module_1
6
7
8

Resource  ../fixtures/Resources/auction_conditions.robot
Test Setup  Check For Pass Before
Vladyslav Koval's avatar
Vladyslav Koval committed
9
10
11
Suite Setup  Create Session  api_procedures  %{PROCEDURE_URL}  verify=True
Suite Teardown  Run Keywords  Delete All Sessions  Close All Browsers 

12
13
14
15
16
17
18
19
20
21
22
23
24

*** Variables ***
${AUCTION_NAME}  subsoil-dutch-fast

*** Test Cases ***

Відсутність поданих заяв на участь протягом tenderPeriod

    ${ACTION_START_TIME}=  Get Time  format=timestamp  time_=UTC +5m

    Import Variables  ../fixtures/${AUCTION_NAME}.py  init_auction
    
    Set To Dictionary   ${init_auction["auctionPeriod"]}  startDate  ${ACTION_START_TIME}
Vladyslav Koval's avatar
Vladyslav Koval committed
25
    ${RESP} =  POST On Session  api_procedures  /api/procedures  json=${init_auction}  headers=${DEFAULT_HEADERS}  expected_status=201
26
27
28
29
30
31
32
33
34
    ${ID} =  Get From Dictionary  ${resp.json()}  id
    Sleep  5m 30s
    ${RESP} =  Get Request and return resp By  ${ID}  ${WATCHER}
    Status Should Be  200  ${RESP}
    ${STATUS} =  Get From Dictionary  ${resp.json()}  status
    Should Be Equal  active_auction  ${STATUS}
    ${AUCTION_URL} =  Get From Dictionary  ${resp.json()}  auctionUrl
    Should Contain  ${AUCTION_URL}  %{AUCTION_URL}