Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_boards_iterations fixed #1203

Merged
merged 8 commits into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,788 changes: 949 additions & 839 deletions tests/recordings/test_boards_iterations.yaml

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions tests/test_boardsIterationTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from azure_devtools.scenario_tests import AllowLargeResponse
from .utilities.helper import DevopsScenarioTest, 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/devops-cli-test-org'

class BoardsIterationsTest(DevopsScenarioTest):
@AllowLargeResponse(size_kb=3072)
Expand Down Expand Up @@ -130,6 +130,8 @@ def test_boards_iterations(self):
assert default_team_iteration_set['defaultIteration']['id'] == root_project_iteration_identifier
assert default_team_iteration_set['defaultIteration']['name'] == root_iteration_name

self.sleep_in_live_run(30)

default_team_iteration_show_cmd = 'az boards iteration team show-default-iteration --team ' + team_name + ' --project ' + random_project_name + ' --output json --detect false'
default_team_iteration_show = self.cmd(default_team_iteration_show_cmd).get_output_in_json()
assert default_team_iteration_show['defaultIteration']['id'] == root_project_iteration_identifier
Expand Down Expand Up @@ -161,4 +163,4 @@ def test_boards_iterations(self):
finally:
if created_project_id is not None:
delete_project_command = 'az devops project delete --id ' + created_project_id + ' --output json --detect false -y'
self.cmd(delete_project_command)
self.cmd(delete_project_command)