Skip to content

Commit

Permalink
Reproduce subprocess error when credential_process set to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
rdctmeconomou committed Jan 23, 2024
1 parent e6a4856 commit c9b639a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -3225,6 +3225,13 @@ def test_process_not_invoked_if_not_configured_for_empty_config(self):
provider = self.create_process_provider()
self.assertIsNone(provider.load())

def test_process_not_invoked_if_set_to_empty_string(self):
self.loaded_config['profiles'] = {
'default': {'credential_process': ''}
}
provider = self.create_process_provider()
self.assertIsNone(provider.load())

def test_can_retrieve_via_process(self):
self.loaded_config['profiles'] = {
'default': {'credential_process': 'my-process'}
Expand Down

0 comments on commit c9b639a

Please sign in to comment.