-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobusurlcpTests.robot
44 lines (34 loc) · 1.31 KB
/
GlobusurlcpTests.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
*** Settings ***
Variables UserDefinedVariables.py
Resource UserKeywords.robot
Library String
Library OperatingSystem
Library DoorTesterLib.py ${HOST}
Library ProtocolTesterLib.py
Library FileTesterLib.py
Suite Setup TEST PROTOCOL DOOR ${PROTOCOL} ${PORT}
Suite Teardown REMOVE LOCAL AND REMOTE FILES WITH NAMES CONTAINING localfile remotefile
*** Variables ***
${PROTOCOL} gsiftp
${PORT} ${PROTOCOL_PORTS}[${PROTOCOL}]
${CLIENT} gfal-copy
*** Test Cases ***
NO DCAU
[Documentation] Tries copying a file without data channel authentication using gsiftp.
SET CLIENT ${CLIENT}
SET PROTOCOL ${PROTOCOL} ${PORT}
SET HOST ${HOST}
${FILE_NAME}= REPLACE STRING ${TEST NAME} ${SPACE} ${EMPTY}
CREATE FILE ${LOCAL_FILE}${FILE_NAME} This is a testfile for ${TEST NAME}
COPY LOCAL FILE ${LOCAL_FILE}${FILE_NAME} ${REMOTE_FILE}${FILE_NAME}
COMMAND SHOULD EXECUTE SUCCESSFULLY
MULTIPLE PARALLEL STREAMS
[Documentation] Tries to copy a file using 10 parallel data streams using gsiftp
SET CLIENT ${CLIENT}
SET PROTOCOL ${PROTOCOL} ${PORT}
SET HOST ${HOST}
SET EXTRA ARGUMENTS -n 10
${FILE_NAME}= REPLACE STRING ${TEST NAME} ${SPACE} ${EMPTY}
CREATE FILE ${LOCAL_FILE}${FILE_NAME} This is a testfile for ${TEST NAME}
COPY LOCAL FILE ${LOCAL_FILE}${FILE_NAME} ${REMOTE_FILE}${FILE_NAME}
COMMAND SHOULD EXECUTE SUCCESSFULLY