Skip to content

Commit c9a738a

Browse files
Unit test adjustments (Post v0.4.2 merge) (#75)
* Initial v0.4.2 update - Cleanup and normalization * Updated endpoint list. Deprecated invalid method names. * Added local unit testing initialization script * Linting helper script * FalconGroupingTags via SDK (#72) * added endpoint information for host tags. added tests * missed comma and param name * missed param, not caught in previous commit * removed an unused test, no changes to uber test * merging and removing left over conflicts * Update _endpoint.py * Update hosts.py Moving FalconGroupingTags -> UpdateDeviceTags * Update test_hosts.py Moving FalconGroupignTags -> UpdateDeviceTags Co-authored-by: Caleb Schwartz <[email protected]> Co-authored-by: jshcodes <[email protected]> * Linting script update, UpdateDeviceTags merge * Minor fixes to UpdateDeviceTags * Added unit tests to cover new code paths * Unit test updates - Reducing AWS queries for Python <= 3.8 * Unit test adjustment - removing redundant service class check * Removing uber class redundant test Co-authored-by: rewgord <[email protected]> Co-authored-by: Caleb Schwartz <[email protected]>
1 parent 302c5c8 commit c9a738a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

tests/test_cloud_connect_aws.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ def test_GetAWSAccounts(self):
196196
def test_GetAWSAccountsUsingList(self):
197197
assert self.serviceCCAWS_GetAWSAccountsUsingList() == True
198198

199-
@pytest.mark.skipif(falcon.QueryAWSAccounts(parameters={"limit": 1})["status_code"] == 429, reason="API rate limit reached")
200-
def test_VerifyAWSAccountAccess(self):
201-
assert self.serviceCCAWS_VerifyAWSAccountAccess() == True
199+
# @pytest.mark.skipif(falcon.QueryAWSAccounts(parameters={"limit": 1})["status_code"] == 429, reason="API rate limit reached")
200+
# @pytest.mark.skipif(sys.version_info.minor < 9, reason="Frequency reduced due to potential race condition")
201+
# def test_VerifyAWSAccountAccess(self):
202+
# assert self.serviceCCAWS_VerifyAWSAccountAccess() == True
202203

203204
@pytest.mark.skipif(falcon.QueryAWSAccounts(parameters={"limit": 1})["status_code"] == 429, reason="API rate limit reached")
204205
@pytest.mark.skipif(sys.version_info.minor < 9, reason="Frequency reduced due to potential race condition")

tests/test_uber_api_complete.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ def test_QueryAWSAccounts(self):
216216
def test_GetAWSAccounts(self):
217217
assert self.uberCCAWS_GetAWSAccounts() == True
218218

219-
@pytest.mark.skipif(falcon.command("QueryAWSAccounts",
220-
parameters={"limit": 1})["status_code"] == 429, reason="API rate limit reached")
221-
def test_VerifyAWSAccountAccess(self):
222-
assert self.uberCCAWS_VerifyAWSAccountAccess() == True
219+
# @pytest.mark.skipif(falcon.command("QueryAWSAccounts",
220+
# parameters={"limit": 1})["status_code"] == 429, reason="API rate limit reached")
221+
# @pytest.mark.skipif(sys.version_info.minor < 9, reason="Frequency reduced due to potential race condition")
222+
# def test_VerifyAWSAccountAccess(self):
223+
# assert self.uberCCAWS_VerifyAWSAccountAccess() == True
223224

224225
def test_QueryAWSAccountsForIDs(self):
225226
assert self.uberCCAWS_QueryAWSAccountsForIDs() == True

0 commit comments

Comments
 (0)