Test files does not handle authentication arguments
Tested on Windows 7 x64.
When running the test cases:
- test_binding.py
- test_client.py
- test_data.py
- test_examples.py
Only test_binding.py can handle the --username and --password arguments. The rest of the files does not recognize the arguments.
Example:
python test_binding.py --username=admin --password=changeme
..........
Ran 10 tests in 2.247s
OK
python test_examples.py --username=admin --password=changeme option --username not recognized Usage: test_examples.py [options] [test] [...]
Options: ...
Fix checked into develop.
I reverted this change because I could not find a way to allow the cmdline args to unittest to coexist harmoniously with the splunk cmdline args .. so for now the splunk args must be retrieved from .splunkrc. If anyone has suggestions, please let me know.