Get the basic shell command to start the shell, given the provided test vector. Returns the command as a list of string arguments.
(vector)
| 185 | |
| 186 | |
| 187 | def get_shell_cmd(vector): |
| 188 | """Get the basic shell command to start the shell, given the provided test vector. |
| 189 | Returns the command as a list of string arguments.""" |
| 190 | impala_shell_executable = get_impala_shell_executable(vector) |
| 191 | if vector.get_value_with_default("strict_hs2_protocol", False): |
| 192 | protocol = vector.get_value(PROTOCOL) |
| 193 | return impala_shell_executable + [ |
| 194 | "--protocol={0}".format(protocol), |
| 195 | "--strict_hs2_protocol", |
| 196 | "--use_ldap_test_password", |
| 197 | "-i{0}".format(get_impalad_host_port(vector))] |
| 198 | else: |
| 199 | return impala_shell_executable + [ |
| 200 | "--protocol={0}".format(vector.get_value("protocol")), |
| 201 | "-i{0}".format(get_impalad_host_port(vector))] |
| 202 | |
| 203 | |
| 204 | def spawn_shell(shell_cmd): |