-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
None
-
Affects Version/s: 4.8.16
-
Component/s: Code reviews
-
None
-
Severity 3 - Minor
Issue Summary
When running crucible.py script "out of the box" the interactive mode doesn't work and an error is thrown
Steps to Reproduce
- Download crucible.py script and follow installation steps in guide
- Run crucible.py with no arguments
Expected Results
- Crucible base url that is already configured in the script is used
- User is prompted with next steps
Actual Results
Error is thrown and script fails
Crucible server: http://test-server.com Crucible username: test-user Error executing request http://test-server.com/rest-service-fecru/server-v1?FEAUTH=123 - ''
Workaround
Open script and comment out this line:
configuration = Configuration().fill_from_args(args).fill_from_config_file(config_file).fill_from_defaults()
Then add this line beneath it:
configuration = Configuration().fill_from_defaults()
It should look like this when you are done:
#configuration = Configuration().fill_from_args(args).fill_from_config_file(config_file).fill_from_defaults()
configuration = Configuration().fill_from_defaults()
Running the script (on Mac) in interactive mode should now show the following:
Crucible server: <actual Crucible base_url> Crucible username: <username of the user that downloaded the script> Saved the default server URL <actual Crucible base_url> to /Users/<username>/.atlassian/crucible.conf Saved an authentication token for <actual Crucible base_url> to /Users/<username>/.atlassian/crucible.conf
From here these items are cached somewhere and the script can be reverted.