splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Test files does not handle authentication arguments

Open mraxus opened this issue 15 years ago • 2 comments

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: ...

mraxus avatar Nov 09 '11 01:11 mraxus

Fix checked into develop.

blovering avatar Feb 28 '12 00:02 blovering

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.

blovering avatar Apr 20 '12 02:04 blovering