2 Library OperatingSystem
3 Library RequestsLibrary
6 Resource ../../resources/common-keywords.robot
9 ${DFC_CONFIG_FILE} ${SIMGROUP_ROOT}/dfc_configs/c12_feed2_PM_HTTPS.yaml
13 ######## Single file, HTTP
15 Verify single event with single 1MB HTTP file. From event poll to published file
16 [TAGS] DFC_FUNCTIONAL_20
17 [Documentation] Verify single event with single HTTP 1MB file from event poll to published file.
18 ${cli_cmd_output}= Run Process ${DFC_ROOT}/../dfc-containers-clean.sh stderr=STDOUT
19 Verify Single Event From Event Poll To Published File 1 --tc300 HTTP
22 Verify single event with single 5MB HTTP file. From event poll to published file
23 [TAGS] DFC_FUNCTIONAL_21
24 [Documentation] Verify single event with single HTTP 5MB file from event poll to published file.
25 Verify Single Event From Event Poll To Published File 5 --tc301 HTTP
28 Verify single event with single 50MB HTTP file. From event poll to published file
29 [TAGS] DFC_FUNCTIONAL_22
30 [Documentation] Verify single event with single HTTP 50MB file from event poll to published file.
31 Verify Single Event From Event Poll To Published File 50 --tc302 HTTP
33 ######## Single file, HTTP
34 Verify single event with single 1MB HTTPS (basic authentication) file. From event poll to published file
35 [TAGS] DFC_FUNCTIONAL_30
36 [Documentation] Verify single event with single HTTPS (basic authentication) 1MB file from event poll to published file.
37 ${cli_cmd_output}= Run Process ${DFC_ROOT}/../dfc-containers-clean.sh stderr=STDOUT
38 Verify Single Event From Event Poll To Published File 1 --tc400 HTTPS
41 Verify single event with single 5MB HTTPS (basic authentication) file. From event poll to published file
42 [TAGS] DFC_FUNCTIONAL_31
43 [Documentation] Verify single event with single HTTPS (basic authentication) 5MB file from event poll to published file.
44 Verify Single Event From Event Poll To Published File 5 --tc401 HTTPS
47 Verify single event with single 50MB HTTPS (basic authentication) file. From event poll to published file
48 [TAGS] DFC_FUNCTIONAL_32
49 [Documentation] Verify single event with single HTTPS (basic authentication) 50MB file from event poll to published file.
50 Verify Single Event From Event Poll To Published File 50 --tc402 HTTPS
54 Verify Single Event From Event Poll To Published File
55 [Documentation] Keyword to verify single event with file with given parameters.
56 [Arguments] ${file_size_in_mb} ${mr_tc} ${http_type}
57 Set Environment Variable MR_TC ${mr_tc}
58 Set Environment Variable FILE_SIZE ${file_size_in_mb}MB
59 Set Environment Variable HTTP_TYPE ${http_type}
60 Set Default Environment Variables
62 ${cli_cmd_output}= Run Process ./simulators-start.sh cwd=${SIMGROUP_ROOT}
63 Log To Console Simulator-start:
64 Log To Console ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
65 MR Sim Emitted Files Equal 0 #Verify 0 file emitted from MR sim
66 DR Sim Published Files Equal 0 #Verify 0 file published to DR sim
68 Set DFC config ${DFC_CONFIG_FILE}
72 Wait Until Keyword Succeeds 1 minute 10 sec MR Sim Emitted Files Equal 1 #Verify 1 file emitted from MR sim
73 Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Query Not Published Equal 1 #Verify 1 query response for not published files
74 Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
75 DR Redir Sim Downloaded Volume Equal ${file_size_in_mb} 000 000 #Verify correct number of bytes published file data in DR redir sim
77 [Teardown] Test Teardown
79 Set Default Environment Variables
80 [Documentation] Set default environment variables for simulators setup
81 Set Environment Variable DR_TC --tc normal
82 Set Environment Variable DR_REDIR_TC --tc normal
83 Set Environment Variable MR_GROUPS OpenDcae-c12:PM_MEAS_FILES
84 Set Environment Variable MR_FILE_PREFIX_MAPPING PM_MEAS_FILES:A
85 Set Environment Variable DR_REDIR_FEEDS 2:A
86 Set Environment Variable FTP_FILE_PREFIXES A
87 Set Environment Variable FTP_TYPE SFTP
88 Set Environment Variable HTTP_FILE_PREFIXES A
89 Set Environment Variable NUM_FTPFILES 1
90 Set Environment Variable NUM_HTTPFILES 1
91 Set Environment Variable NUM_PNFS 1
92 Set Environment Variable NUM_FTP_SERVERS 1
93 Set Environment Variable NUM_HTTP_SERVERS 1
94 Set Environment Variable DR_FEEDS 2:A
95 Set Environment Variable DR_REDIR_SIM drsim_redir
96 Set Environment Variable SFTP_SIMS sftp-server0:22
97 Set Environment Variable FTPES_SIMS ftpes-server-vsftpd0:21
98 Set Environment Variable HTTP_SIMS http-https-server0:80
99 Set Environment Variable HTTPS_SIMS http-https-server0:443
100 Set Environment Variable HTTPS_SIMS_NO_AUTH http-https-server0:8080
101 Set Environment Variable HTTP_JWT_SIMS http-https-server0:32000
102 Set Environment Variable HTTPS_JWT_SIMS http-https-server0:32100