Write_Bare_Ctrl_C
[Documentation] Construct ctrl+c character and SSH-write it (without endline) to the current SSH connection.
... Do not read anything yet.
+ BuiltIn.Comment Use RemoteBash.Write_Bare_Ctrl_C instead.
${ctrl_c}= BuiltIn.Evaluate chr(int(3))
SSHLibrary.Write_Bare ${ctrl_c}
Write Bare Ctrl D
[Documentation] Construct ctrl+d character and SSH-write it (without endline) to the current SSH connection.
... Do not read anything yet.
+ BuiltIn.Comment Use RemoteBash.Write_Bare_Ctrl_D instead.
${ctrl_d}= BuiltIn.Evaluate chr(int(4))
SSHLibrary.Write Bare ${ctrl_d}
${resp} RequestsLibrary.Get Request ${session} ${dest_uri}
Should Not Be Equal ${resp.status_code} 404
+Add Elements To URI From File And Check Validation Error
+ [Arguments] ${dest_uri} ${data_file} ${headers}=${headers} ${session}=session
+ ${body} OperatingSystem.Get File ${data_file}
+ ${resp} RequestsLibrary.Put Request ${session} ${dest_uri} data=${body} headers=${headers}
+ Should Contain ${DATA_VALIDATION_ERROR} ${resp.status_code}
+
Post Elements To URI From File
[Arguments] ${dest_uri} ${data_file} ${headers}=${headers} ${session}=session
${body} OperatingSystem.Get File ${data_file}
[Arguments] ${cmd} ${prompt} ${timeout}=30s
[Documentation] quick wrapper for Write and Read Until Prompt Keywords to make test cases more readable
SSHLibrary.Set Client Configuration timeout=${timeout}
+ SSHLibrary.Read
SSHLibrary.Write ${cmd}
${output}= SSHLibrary.Read Until ${prompt}
[Return] ${output}