Skip to content

Commit

Permalink
Fix live test because service changed response which it was sending, …
Browse files Browse the repository at this point in the history
…instead of sending false for a value it is now sending empty (#501)
  • Loading branch information
gauravsaralMs committed Mar 26, 2019
1 parent 5dd0085 commit 4a95bdb
Show file tree
Hide file tree
Showing 2 changed files with 464 additions and 490 deletions.
950 changes: 462 additions & 488 deletions tests/recordings/test_repos_policies_createUpdateShowListDelete.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/test_reposPoliciesTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from azure_devtools.scenario_tests import AllowLargeResponse
from .utilities.helper import disable_telemetry, set_authentication, get_test_org_from_env_variable

DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/azuredevopsclitest'
DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/gsaralprivate'

class DevopsReposPoliciesTests(ScenarioTest):
@AllowLargeResponse(size_kb=3072)
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_repos_policies_createUpdateShowListDelete(self):
show_policy_output = self.cmd(show_policy_command).get_output_in_json()
assert show_policy_output["id"] == policy_id
assert show_policy_output["type"]["id"] == 'fa4e907d-c16b-4a4c-9dfa-4916e5d171ab' #id of merge strategy policy
assert show_policy_output["settings"]["useSquashMerge"] == False
self.failUnlessRaises(KeyError, lambda: show_policy_output["settings"]["useSquashMerge"])

update_policy_command = 'az repos policy merge-strategy update --id ' + str(policy_id) + ' --use-squash-merge True --output json --detect off'
update_policy_output = self.cmd(update_policy_command).get_output_in_json()
Expand Down

0 comments on commit 4a95bdb

Please sign in to comment.