Skip to content

Commit

Permalink
Added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Rowson committed May 3, 2024
1 parent 62e5596 commit 6d1249d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/common/test_platform_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ def test_is_valid_policy_filter(self):
valid_filters=mock_prisma_policy_filter_response()))
self.assertFalse(instance.is_valid_policy_filter(policy_filter={'policy.label': ['A', 'B']}, valid_filters={}))

def test_proxy_without_scheme(self):
current_proxy = os.environ['https_proxy']
try:
os.environ['https_proxy'] = "127.0.0.1"
instance = BcPlatformIntegration()
instance.api_url = 'https://www.bridgecrew.cloud/v1'
instance.setup_http_manager()
finally:
os.environ['https_proxy'] = current_proxy

def test_setup_on_prem(self):
instance = BcPlatformIntegration()

Expand Down

0 comments on commit 6d1249d

Please sign in to comment.