diff --git a/azure-devops/azext_devops/dev/repos/ref.py b/azure-devops/azext_devops/dev/repos/ref.py index f6bc9247..672003c2 100644 --- a/azure-devops/azext_devops/dev/repos/ref.py +++ b/azure-devops/azext_devops/dev/repos/ref.py @@ -4,6 +4,7 @@ # -------------------------------------------------------------------------------------------- from knack.log import get_logger +from knack.util import CLIError from azext_devops.devops_sdk.v5_0.git.models import GitRefUpdate from azext_devops.dev.common.git import resolve_git_refs from azext_devops.dev.common.services import (get_git_client, @@ -56,7 +57,7 @@ def create_ref(name, object_id, repository=None, organization=None, project=None project=project)[0] -def delete_ref(name, object_id, repository=None, organization=None, project=None, detect=None): +def delete_ref(name, object_id=None, repository=None, organization=None, project=None, detect=None): """Delete a reference. :param str name: Name of the reference to delete (example: heads/my_branch). :param str object_id: Id of the reference to delete. @@ -70,6 +71,15 @@ def delete_ref(name, object_id, repository=None, organization=None, project=None project=project, repo=repository) client = get_git_client(organization) + + if object_id is None: + ref = client.get_refs(repository_id=repository, project=project, filter=name) + if not ref or len(ref) != 1: + logger.error('ref not found') + raise CLIError("Failed to find object_id for ref " + name + ". Please provide object_id.") + + object_id = ref[0].object_id + ref_update = GitRefUpdate(name=resolve_git_refs(name), new_object_id='0000000000000000000000000000000000000000', old_object_id=object_id) diff --git a/azure-devops/azext_devops/test/repos/test_ref.py b/azure-devops/azext_devops/test/repos/test_ref.py index 83c099f6..bfa767ad 100644 --- a/azure-devops/azext_devops/test/repos/test_ref.py +++ b/azure-devops/azext_devops/test/repos/test_ref.py @@ -12,12 +12,17 @@ # Attempt to load mock (works on Python version below 3.3) from mock import patch, ANY +from knack.util import CLIError + from azext_devops.devops_sdk.v5_0.git.git_client import GitClient from azext_devops.dev.common.services import clear_connection_cache from azext_devops.dev.repos.ref import (list_refs, create_ref, delete_ref, lock_ref, unlock_ref) from azext_devops.test.utils.authentication import AuthenticatedTests from azext_devops.test.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL +class MockRef(object): + def __init__(self, object_id): + self.object_id = object_id class TestRefMethods(AuthenticatedTests): @@ -95,6 +100,31 @@ def test_delete_ref(self): ref_updates=ANY, repository_id=None) + def test_delete_ref_without_obj_id(self): + + refs = [] + refs.append(MockRef("0")) + + self.mock_get_refs.return_value = refs; + + response = delete_ref(name='sample_ref', + organization=TEST_DEVOPS_ORG_URL, + project='sample_project') + # assert + self.mock_update_refs.assert_called_once_with(project='sample_project', + ref_updates=ANY, + repository_id=None) + + def test_delete_ref_without_obj_id_invalid_ref_name(self): + sample_invalid_ref = "sample_invalid_ref" + try: + response = delete_ref(name=sample_invalid_ref, + organization=TEST_DEVOPS_ORG_URL, + project='sample_project') + self.fail('we should have received an error') + except CLIError as ex: + self.assertEqual(str(ex), f'Failed to find object_id for ref {sample_invalid_ref}. Please provide object_id.') + if __name__ == '__main__': unittest.main() diff --git a/tests/recordings/test_ref_createDeleteFlow.yaml b/tests/recordings/test_ref_createDeleteFlow.yaml new file mode 100644 index 00000000..0e16b519 --- /dev/null +++ b/tests/recordings/test_ref_createDeleteFlow.yaml @@ -0,0 +1,2006 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/_apis/projects?stateFilter=all&$top=1&$skip=0 + response: + body: + string: '{"$id":"1","innerException":null,"message":"TF400813: The user ''c7ac8f34-d29e-4f96-b9c9-c50d7c861f3b\\roshan.s@syrencloud.com'' + is not authorized to access this resource.","typeName":"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, + Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 985fff10-72ba-4aec-8d46-b2e3a4fe1982 + cache-control: + - no-cache + content-length: + - '368' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 04 Aug 2021 05:27:52 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + www-authenticate: + - Bearer authorization_uri=https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47 + - TFS-Federated + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 418B1141DE75473586D4784D51552A28 Ref B: BOM02EDGE0615 Ref C: 2021-08-04T05:27:52Z' + x-tfs-fedauthissuer: + - https://dev.azure.com/AzureDevOpsCliTest/ + x-tfs-fedauthrealm: + - https://tfsprodcus3.visualstudio.com/ + x-tfs-fedauthredirect: + - https://spsprodeus27.vssps.visualstudio.com/_signin?realm=dev.azure.com&reply_to=https%3A%2F%2Fdev.azure.com%2FAzureDevOpsCliTest%2F_apis%2Fprojects%3FstateFilter%3Dall%26%2524top%3D1%26%2524skip%3D0&redirect=1&hid=c7dbc2ae-8e6f-4d56-a594-8298af308cc0&context=eyJodCI6MiwiaGlkIjoiN2M5OWVlN2EtMmY2Ni00MDJkLThmNDMtYTBhMDBhNzU1NTliIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2 + x-tfs-processid: + - 59609ebd-9075-4936-87a6-e55d217acad8 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-authenticateerror: + - Unauthorized + x-vss-authorizationendpoint: + - https://vssps.dev.azure.com/AzureDevOpsCliTest/ + x-vss-e2eid: + - 985fff10-72ba-4aec-8d46-b2e3a4fe1982 + x-vss-resourcetenant: + - 72f988bf-86f1-41af-91ab-2d7cd011db47 + x-vss-s2stargetservice: + - 00000002-0000-8888-8000-000000000000/visualstudio.com + x-vss-userdata: + - 54329c46-e8c8-6561-af35-67e5d1ddd573:roshan.s@syrencloud.com + status: + code: 401 + message: Unauthorized +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/_apis/projects?stateFilter=all&$top=1&$skip=0 + response: + body: + string: '{"count":1,"value":[{"id":"858f9756-0002-4ecb-8261-41a8cd945118","name":"refsTestsjjstg4","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/858f9756-0002-4ecb-8261-41a8cd945118","state":"wellFormed","revision":33341,"visibility":"private","lastUpdateTime":"2019-10-18T08:28:59.593Z"}]}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - b99daed6-c7eb-4dba-bce1-b5074f50d4ad + cache-control: + - no-cache + content-length: + - '298' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:53 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-continuationtoken: + - '1' + x-msedge-ref: + - 'Ref A: 2077051D1CE043D6927CC1DE3B50BEE9 Ref B: BOM02EDGE0616 Ref C: 2021-08-04T05:27:53Z' + x-tfs-processid: + - 8cbde339-638b-4143-a014-23526101f435 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - b99daed6-c7eb-4dba-bce1-b5074f50d4ad + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/_apis/process/processes + response: + body: + string: '{"count":4,"value":[{"id":"6b724908-ef14-45cf-84f8-768b5384da45","description":"This + template is for teams who follow the Scrum framework.","isDefault":false,"type":"system","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/process/processes/6b724908-ef14-45cf-84f8-768b5384da45","name":"Scrum"},{"id":"adcc42ab-9882-485e-a3ed-7678f01f66bc","description":"This + template is flexible and will work great for most teams using Agile planning + methods, including those practicing Scrum.","isDefault":true,"type":"system","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/process/processes/adcc42ab-9882-485e-a3ed-7678f01f66bc","name":"Agile"},{"id":"b8a3a935-7e91-48b8-a94c-606d37c3e9f2","description":"This + template is flexible for any process and great for teams getting started with + Azure DevOps.","isDefault":false,"type":"system","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/process/processes/b8a3a935-7e91-48b8-a94c-606d37c3e9f2","name":"Basic"},{"id":"27450541-8e31-4150-9947-dc59f998fc01","description":"This + template is for more formal projects requiring a framework for process improvement + and an auditable record of decisions.","isDefault":false,"type":"system","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/process/processes/27450541-8e31-4150-9947-dc59f998fc01","name":"CMMI"}]}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - f2ee71cf-f7fd-4523-851e-7b029403796c + cache-control: + - no-cache + content-length: + - '1310' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:54 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: FF12AABA4A6D4D0F942C304D8979882E Ref B: BOM02EDGE0606 Ref C: 2021-08-04T05:27:54Z' + x-tfs-processid: + - aa4027d1-f846-4933-8e43-46c17d7946db + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - f2ee71cf-f7fd-4523-851e-7b029403796c + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: '{"name": "refsTests000001", "visibility": "private", "capabilities": {"versioncontrol": + {"sourceControlType": "git"}, "processTemplate": {"templateTypeId": "adcc42ab-9882-485e-a3ed-7678f01f66bc"}}}' + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '197' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: POST + uri: https://dev.azure.com/AzureDevOpsCliTest/_apis/projects + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"notSet","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 25ddb00a-cf0d-4b22-94c2-1591a33a08b4 + cache-control: + - no-cache + content-length: + - '166' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:54 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 41EF04692ED146A1842704091DBBE9E4 Ref B: BOM02EDGE0606 Ref C: 2021-08-04T05:27:54Z' + x-tfs-processid: + - dac77ab5-e569-4e16-a90a-14a95514ca22 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 25ddb00a-cf0d-4b22-94c2-1591a33a08b4 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e887162c-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:54 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 64821FD77B8245429635AF2F1DB7A6C8 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:27:55Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e887162c-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - b68bbd60-894d-4d7c-8cf6-33e394ac23e7 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:56 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 419DBB1163D94180A53648AA116E6C6C Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:27:56Z' + x-tfs-processid: + - 4a4f93c8-8f39-4fb6-94f6-80f6045c69fb + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - b68bbd60-894d-4d7c-8cf6-33e394ac23e7 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e8871048-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:57 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 0A7880F55C394F4C8CF4A714E9A393C9 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:27:58Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e8871048-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e887115a-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:27:58 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 858B96E148CB4CF1B7DC2413E39BB6A3 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:27:59Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e887115a-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e88713a9-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:00 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 4E8ADB14C74D41F68397245D4E2CE379 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:00Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e88713a9-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e8871cf6-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:01 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 3A92A0BE5FE241DD87AF4C1B384A041D Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:02Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e8871cf6-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e8871d6f-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:02 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: E217B8D01C9743CAA8D86E6B4DC510F9 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:03Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e8871d6f-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - b99db165-c7eb-4dba-bce1-b5074f50d4ad + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:04 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: EDC4DD0DFFC84823B07E402A19FF2413 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:04Z' + x-tfs-processid: + - 8cbde339-638b-4143-a014-23526101f435 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - b99db165-c7eb-4dba-bce1-b5074f50d4ad + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 8cfac854-601d-44ad-8857-05b5ca74f221 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:05 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 50DF6A6958AA4D5C9B31506323587EBD Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:06Z' + x-tfs-processid: + - b49a5b0d-fb6a-4a76-837a-287fafe17a02 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 8cfac854-601d-44ad-8857-05b5ca74f221 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - f2ee0540-f7fd-4523-851e-7b029403796c + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:07 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 4A5713FBA2334C9AA3D87784F8CE85B9 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:07Z' + x-tfs-processid: + - aa4027d1-f846-4933-8e43-46c17d7946db + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - f2ee0540-f7fd-4523-851e-7b029403796c + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878 + response: + body: + string: '{"id":"3d5faed9-f269-45c9-8133-62ae2e3f7878","status":"succeeded","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/3d5faed9-f269-45c9-8133-62ae2e3f7878"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 25ddc4ce-cf0d-4b22-94c2-1591a33a08b4 + cache-control: + - no-cache + content-length: + - '293' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:08 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 777CEA59F66541C4A6DEE32E9409436C Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:09Z' + x-tfs-processid: + - dac77ab5-e569-4e16-a90a-14a95514ca22 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 25ddc4ce-cf0d-4b22-94c2-1591a33a08b4 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/refsTests000001?includeCapabilities=true + response: + body: + string: '{"id":"f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","name":"refsTests000001","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","state":"wellFormed","capabilities":{"processTemplate":{"templateName":"Agile","templateTypeId":"adcc42ab-9882-485e-a3ed-7678f01f66bc"},"versioncontrol":{"sourceControlType":"Git","gitEnabled":"True","tfvcEnabled":"False"}},"revision":55272,"_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6"},"collection":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projectCollections/c7dbc2ae-8e6f-4d56-a594-8298af308cc0"},"web":{"href":"https://dev.azure.com/AzureDevOpsCliTest/refsTests000001"}},"visibility":"private","defaultTeam":{"id":"d41b2e72-3ca0-4c93-9713-c56617aed8ac","name":"refsTests000001 + Team","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/teams/d41b2e72-3ca0-4c93-9713-c56617aed8ac"},"lastUpdateTime":"2021-08-04T05:28:09.337Z"}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 7f8b6f4a-366d-4d51-9591-891dc7dbfae6 + cache-control: + - no-cache + content-length: + - '1036' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:10 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 1E67401DEB884C468B70E97301FC8F96 Ref B: BOM02EDGE0606 Ref C: 2021-08-04T05:28:09Z' + x-tfs-processid: + - 400c876a-8b4d-46f3-a2f1-3e0f32d5775b + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 7f8b6f4a-366d-4d51-9591-891dc7dbfae6 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: '{"name": "refsTests000002"}' + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: POST + uri: https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories + response: + body: + string: '{"id":"966ee66e-e643-4b61-bb0b-a0055d1798ba","name":"refsTests000002","url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba","project":{"id":"f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","name":"refsTests000001","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","state":"wellFormed","revision":55272,"visibility":"private","lastUpdateTime":"2021-08-04T05:28:09.337Z"},"size":0,"remoteUrl":"https://AzureDevOpsCliTest@dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","sshUrl":"git@ssh.dev.azure.com:v3/AzureDevOpsCliTest/refsTests000001/refsTests000002","webUrl":"https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","isDisabled":false}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 51be7747-0583-4910-b1eb-6a7e2f7a7a46 + cache-control: + - no-cache + content-length: + - '818' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:11 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: D4080C8360524B26A0DB0E3D200179AC Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:10Z' + x-tfs-processid: + - fc3a0fb0-9ef0-45be-847c-a03ee648255f + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 51be7747-0583-4910-b1eb-6a7e2f7a7a46 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 201 + message: Created +- request: + body: '{"parameters": {"deleteServiceEndpointAfterImportIsDone": false, "gitSource": + {"overwrite": false, "url": "https://github.com/hkasera/snakes-and-ladders.git"}}}' + headers: + Accept: + - application/json;api-version=5.0-preview.1 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '160' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: POST + uri: https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests + response: + body: + string: '{"importRequestId":2349,"repository":{"id":"966ee66e-e643-4b61-bb0b-a0055d1798ba","name":"refsTests000002","url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba","project":{"id":"f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","name":"refsTests000001","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","state":"wellFormed","revision":55272,"visibility":"private","lastUpdateTime":"2021-08-04T05:28:09.337Z"},"size":0,"remoteUrl":"https://AzureDevOpsCliTest@dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","sshUrl":"git@ssh.dev.azure.com:v3/AzureDevOpsCliTest/refsTests000001/refsTests000002","webUrl":"https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","isDisabled":false},"parameters":{"tfvcSource":null,"gitSource":{"url":"https://github.com/hkasera/snakes-and-ladders.git","overwrite":false}},"status":"queued","detailedStatus":{"currentStep":1,"allSteps":["Processing + request","Analyzing repository objects","Storing objects","Storing index file","Updating + references","Import completed successfully"]},"_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349"},"repository":{"href":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba"}},"url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349"}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e8876556-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '1705' + content-type: + - application/json; charset=utf-8; api-version=5.0-preview.1 + date: + - Wed, 04 Aug 2021 05:28:12 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: F19F32625BD14C9D83299E267C3CF072 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:12Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e8876556-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0-preview.1 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349 + response: + body: + string: '{"importRequestId":2349,"repository":{"id":"966ee66e-e643-4b61-bb0b-a0055d1798ba","name":"refsTests000002","url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba","project":{"id":"f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","name":"refsTests000001","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","state":"wellFormed","revision":55272,"visibility":"private","lastUpdateTime":"2021-08-04T05:28:09.337Z"},"size":0,"remoteUrl":"https://AzureDevOpsCliTest@dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","sshUrl":"git@ssh.dev.azure.com:v3/AzureDevOpsCliTest/refsTests000001/refsTests000002","webUrl":"https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","isDisabled":false},"parameters":{"tfvcSource":null,"gitSource":{"url":"https://github.com/hkasera/snakes-and-ladders.git","overwrite":false}},"status":"inProgress","detailedStatus":{"currentStep":1,"allSteps":["Processing + request","Analyzing repository objects","Storing objects","Storing index file","Updating + references","Import completed successfully"]},"_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349"},"repository":{"href":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba"}},"url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349"}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 8cfac266-601d-44ad-8857-05b5ca74f221 + cache-control: + - no-cache + content-length: + - '1709' + content-type: + - application/json; charset=utf-8; api-version=5.0-preview.1 + date: + - Wed, 04 Aug 2021 05:28:13 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 7FE8F75A1BEE46FD951767D425926669 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:13Z' + x-tfs-processid: + - b49a5b0d-fb6a-4a76-837a-287fafe17a02 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 8cfac266-601d-44ad-8857-05b5ca74f221 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0-preview.1 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349 + response: + body: + string: '{"importRequestId":2349,"repository":{"id":"966ee66e-e643-4b61-bb0b-a0055d1798ba","name":"refsTests000002","url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba","project":{"id":"f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","name":"refsTests000001","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6","state":"wellFormed","revision":55272,"visibility":"private","lastUpdateTime":"2021-08-04T05:28:09.337Z"},"size":365172,"remoteUrl":"https://AzureDevOpsCliTest@dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","sshUrl":"git@ssh.dev.azure.com:v3/AzureDevOpsCliTest/refsTests000001/refsTests000002","webUrl":"https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_git/refsTests000002","isDisabled":false},"parameters":{"tfvcSource":null,"gitSource":{"url":"https://github.com/hkasera/snakes-and-ladders.git","overwrite":false}},"status":"completed","detailedStatus":{"currentStep":6,"allSteps":["Processing + request","Analyzing repository objects","Storing objects","Storing index file","Updating + references","Import completed successfully"]},"_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349"},"repository":{"href":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba"}},"url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/importRequests/2349"}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 8cfade06-601d-44ad-8857-05b5ca74f221 + cache-control: + - no-cache + content-length: + - '1713' + content-type: + - application/json; charset=utf-8; api-version=5.0-preview.1 + date: + - Wed, 04 Aug 2021 05:28:18 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 5CB2BA4150FC45EA9603C7C79D157266 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:18Z' + x-tfs-processid: + - b49a5b0d-fb6a-4a76-837a-287fafe17a02 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 8cfade06-601d-44ad-8857-05b5ca74f221 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_apis/git/repositories/refsTests000002/refs + response: + body: + string: '{"value":[{"name":"refs/heads/gh-pages","objectId":"e0d501db4f5a08fe212e8ed7a8e8035fbef62416","creator":{"displayName":"Roshan + Soni (SyrenCloud LLC)","url":"https://spsprodeus27.vssps.visualstudio.com/A7c99ee7a-2f66-402d-8f43-a0a00a75559b/_apis/Identities/f092bbfb-bf89-6735-bb3f-18306b9dc073","_links":{"avatar":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/GraphProfile/MemberAvatars/aad.ZjA5MmJiZmItYmY4OS03NzM1LWJiM2YtMTgzMDZiOWRjMDcz"}},"id":"f092bbfb-bf89-6735-bb3f-18306b9dc073","uniqueName":"v-roshansoni@microsoft.com","imageUrl":"https://dev.azure.com/AzureDevOpsCliTest/_api/_common/identityImage?id=f092bbfb-bf89-6735-bb3f-18306b9dc073","descriptor":"aad.ZjA5MmJiZmItYmY4OS03NzM1LWJiM2YtMTgzMDZiOWRjMDcz"},"url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/refs?filter=heads%2Fgh-pages"},{"name":"refs/heads/master","objectId":"c06ae011e801fea6e915d5a779f3322e6f5301a1","creator":{"displayName":"Roshan + Soni (SyrenCloud LLC)","url":"https://spsprodeus27.vssps.visualstudio.com/A7c99ee7a-2f66-402d-8f43-a0a00a75559b/_apis/Identities/f092bbfb-bf89-6735-bb3f-18306b9dc073","_links":{"avatar":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/GraphProfile/MemberAvatars/aad.ZjA5MmJiZmItYmY4OS03NzM1LWJiM2YtMTgzMDZiOWRjMDcz"}},"id":"f092bbfb-bf89-6735-bb3f-18306b9dc073","uniqueName":"v-roshansoni@microsoft.com","imageUrl":"https://dev.azure.com/AzureDevOpsCliTest/_api/_common/identityImage?id=f092bbfb-bf89-6735-bb3f-18306b9dc073","descriptor":"aad.ZjA5MmJiZmItYmY4OS03NzM1LWJiM2YtMTgzMDZiOWRjMDcz"},"url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/refs?filter=heads%2Fmaster"}],"count":2}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - b99d84b1-c7eb-4dba-bce1-b5074f50d4ad + cache-control: + - no-cache + content-length: + - '1805' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:19 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 7C21C28D61CC4A4E85F83FB0577BE430 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:19Z' + x-tfs-processid: + - 8cbde339-638b-4143-a014-23526101f435 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - b99d84b1-c7eb-4dba-bce1-b5074f50d4ad + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: '[{"isLocked": false, "name": "refs/heads/branchnametocreate", "newObjectId": + "e0d501db4f5a08fe212e8ed7a8e8035fbef62416", "oldObjectId": "0000000000000000000000000000000000000000"}]' + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: POST + uri: https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_apis/git/repositories/refsTests000002/refs + response: + body: + string: '{"value":[{"repositoryId":"966ee66e-e643-4b61-bb0b-a0055d1798ba","name":"refs/heads/branchnametocreate","oldObjectId":"0000000000000000000000000000000000000000","newObjectId":"e0d501db4f5a08fe212e8ed7a8e8035fbef62416","isLocked":false,"updateStatus":"succeeded","success":true}],"count":1}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 2a0ae979-6810-49ff-b577-28b929bbaf21 + cache-control: + - no-cache + content-length: + - '289' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:20 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 711250A45E484EC4BFDBEC8DF788CC7F Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:19Z' + x-tfs-processid: + - f2f71458-f47a-4039-9e5f-7d9676c5436b + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 2a0ae979-6810-49ff-b577-28b929bbaf21 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_apis/git/repositories/refsTests000002/refs?filter=heads%2Fbranchnametocreate + response: + body: + string: '{"value":[{"name":"refs/heads/branchnametocreate","objectId":"e0d501db4f5a08fe212e8ed7a8e8035fbef62416","creator":{"displayName":"Roshan + Soni (SyrenCloud LLC)","url":"https://spsprodeus27.vssps.visualstudio.com/A7c99ee7a-2f66-402d-8f43-a0a00a75559b/_apis/Identities/f092bbfb-bf89-6735-bb3f-18306b9dc073","_links":{"avatar":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/GraphProfile/MemberAvatars/aad.ZjA5MmJiZmItYmY4OS03NzM1LWJiM2YtMTgzMDZiOWRjMDcz"}},"id":"f092bbfb-bf89-6735-bb3f-18306b9dc073","uniqueName":"v-roshansoni@microsoft.com","imageUrl":"https://dev.azure.com/AzureDevOpsCliTest/_api/_common/identityImage?id=f092bbfb-bf89-6735-bb3f-18306b9dc073","descriptor":"aad.ZjA5MmJiZmItYmY4OS03NzM1LWJiM2YtMTgzMDZiOWRjMDcz"},"url":"https://dev.azure.com/AzureDevOpsCliTest/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6/_apis/git/repositories/966ee66e-e643-4b61-bb0b-a0055d1798ba/refs?filter=heads%2Fbranchnametocreate"}],"count":1}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - b99d858d-c7eb-4dba-bce1-b5074f50d4ad + cache-control: + - no-cache + content-length: + - '935' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:20 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 98E8D79A0AF141A8BD20B59ACEEF7915 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:20Z' + x-tfs-processid: + - 8cbde339-638b-4143-a014-23526101f435 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - b99d858d-c7eb-4dba-bce1-b5074f50d4ad + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: '[{"name": "refs/heads/branchnametocreate", "newObjectId": "0000000000000000000000000000000000000000", + "oldObjectId": "e0d501db4f5a08fe212e8ed7a8e8035fbef62416"}]' + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '161' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: POST + uri: https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_apis/git/repositories/refsTests000002/refs + response: + body: + string: '{"value":[{"repositoryId":"966ee66e-e643-4b61-bb0b-a0055d1798ba","name":"refs/heads/branchnametocreate","oldObjectId":"e0d501db4f5a08fe212e8ed7a8e8035fbef62416","newObjectId":"0000000000000000000000000000000000000000","isLocked":false,"updateStatus":"succeeded","success":true}],"count":1}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 2a0aea77-6810-49ff-b577-28b929bbaf21 + cache-control: + - no-cache + content-length: + - '289' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:21 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: B1D5C36F735D460DB4B6BA1425824933 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:20Z' + x-tfs-processid: + - f2f71458-f47a-4039-9e5f-7d9676c5436b + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 2a0aea77-6810-49ff-b577-28b929bbaf21 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/AzureDevOpsCliTest/refsTests000001/_apis/git/repositories/refsTests000002/refs?filter=heads%2Funknownbranchname + response: + body: + string: '{"value":[],"count":0}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 8cfadde2-601d-44ad-8857-05b5ca74f221 + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:21 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: F6A2179F134949698E9DBA4CBB26BB87 Ref B: BOM02EDGE0419 Ref C: 2021-08-04T05:28:21Z' + x-tfs-processid: + - b49a5b0d-fb6a-4a76-837a-287fafe17a02 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 8cfadde2-601d-44ad-8857-05b5ca74f221 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: DELETE + uri: https://dev.azure.com/AzureDevOpsCliTest/_apis/projects/f2e9a3b1-5253-4cb4-a62d-8db5d11ab1b6 + response: + body: + string: '{"id":"ac0d1737-6eea-4a5c-b0a5-6851c52cb689","status":"notSet","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689"}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - b99d868e-c7eb-4dba-bce1-b5074f50d4ad + cache-control: + - no-cache + content-length: + - '166' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:22 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 0EDA7D00CD064B1F8E15D803635B5446 Ref B: BOM02EDGE0606 Ref C: 2021-08-04T05:28:22Z' + x-tfs-processid: + - 8cbde339-638b-4143-a014-23526101f435 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - b99d868e-c7eb-4dba-bce1-b5074f50d4ad + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689 + response: + body: + string: '{"id":"ac0d1737-6eea-4a5c-b0a5-6851c52cb689","status":"inProgress","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - 0b29971a-1e00-4c5e-8637-ad2506851949 + cache-control: + - no-cache + content-length: + - '294' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:21 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: F438C4D89D17482F831C7479B6AFDAB0 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:22Z' + x-tfs-processid: + - d173dfdf-e751-44ed-ade7-bbc9e044ee23 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - 0b29971a-1e00-4c5e-8637-ad2506851949 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;api-version=5.0 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.9.6 (Windows-10-10.0.19043-SP0) msrest/0.6.21 azure-devops/5.1.0b4 + devOpsCli/0.20.0 + X-TFS-FedAuthRedirect: + - Suppress + X-TFS-Session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + X-VSS-ForceMsaPassThrough: + - 'true' + method: GET + uri: https://dev.azure.com/azuredevopsclitest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689 + response: + body: + string: '{"id":"ac0d1737-6eea-4a5c-b0a5-6851c52cb689","status":"succeeded","url":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689","_links":{"self":{"href":"https://dev.azure.com/AzureDevOpsCliTest/_apis/operations/ac0d1737-6eea-4a5c-b0a5-6851c52cb689"}}}' + headers: + access-control-expose-headers: + - Request-Context + activityid: + - e8876fec-1a1f-47f9-9224-3276f3011ec2 + cache-control: + - no-cache + content-length: + - '293' + content-type: + - application/json; charset=utf-8; api-version=5.0 + date: + - Wed, 04 Aug 2021 05:28:23 GMT + expires: + - '-1' + p3p: + - CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV + STA UNI COM INT PHY ONL FIN PUR LOC CNT" + pragma: + - no-cache + request-context: + - appId=cid-v1:f88d1338-e7ba-4d7b-83e0-e573c40a2f62 + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-msedge-ref: + - 'Ref A: 0BB96AE41E1144CDA9550E37C7E35974 Ref B: BOM02EDGE0515 Ref C: 2021-08-04T05:28:23Z' + x-tfs-processid: + - f062f54d-ecca-4b0a-a055-bafa47780121 + x-tfs-session: + - 7ab11fa3-e21d-4ba6-9bb5-864b2d4a29b0 + x-vss-e2eid: + - e8876fec-1a1f-47f9-9224-3276f3011ec2 + x-vss-userdata: + - f092bbfb-bf89-6735-bb3f-18306b9dc073:v-roshansoni@microsoft.com + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_reposRefDeleteFlowTest.py b/tests/test_reposRefDeleteFlowTest.py new file mode 100644 index 00000000..727ef643 --- /dev/null +++ b/tests/test_reposRefDeleteFlowTest.py @@ -0,0 +1,79 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os + +from azure_devtools.scenario_tests import AllowLargeResponse +from .utilities.helper import (DevopsScenarioTest, + disable_telemetry, + get_random_name, + set_authentication, + get_test_org_from_env_variable) + + +DEVOPS_CLI_TEST_ORGANIZATION = get_test_org_from_env_variable() or 'Https://dev.azure.com/azuredevopsclitest' + + +class ReposRefDeleteFlowTests(DevopsScenarioTest): + + @AllowLargeResponse(size_kb=3072) + @disable_telemetry + @set_authentication + def test_ref_createDeleteFlow(self): + random_project_name = self.create_random_name(prefix='refsTests', length=15) + random_repo_name = self.create_random_name(prefix='refsTests', length=15) + self.cmd('az devops configure --defaults organization=' + DEVOPS_CLI_TEST_ORGANIZATION + ' project=' + random_project_name) + + created_project_id = None + + try: + create_project_command = 'az devops project create --name ' + random_project_name + ' --output json --detect false' + project_create_output = self.cmd(create_project_command).get_output_in_json() + created_project_id = project_create_output["id"] + + create_repo_command = 'az repos create --name ' + random_repo_name + ' -p ' + created_project_id + ' --output json --detect false' + repo_create_output = self.cmd(create_repo_command).get_output_in_json() + create_repo_id = repo_create_output["id"] + + import_repo_command = 'az repos import create --git-url https://github.com/hkasera/snakes-and-ladders.git' + ' -p ' + created_project_id + ' -r ' + create_repo_id + ' --output json --detect false' + import_repo_output = self.cmd(import_repo_command) + + REPO_NAME = '--repository {random_repo_name} --output json --detect false'.format(random_repo_name=random_repo_name) + REF_NAME = 'heads/branchnametocreate' + UNKNOWN_REF_NAME = 'heads/unknownbranchname' + + list_command = 'az repos ref list {}'.format(REPO_NAME) + list_refs = self.cmd(list_command).get_output_in_json() + + refs_nbre = len(list_refs) + assert refs_nbre > 0 + + master_object_id = list_refs[0]['objectId'] + assert master_object_id is not None + + # create a new reference + create_command = 'az repos ref create --name {} --object-id {} {}'.format(REF_NAME, master_object_id, REPO_NAME) + created_ref = self.cmd(create_command).get_output_in_json() + assert created_ref['newObjectId'] is not None + assert created_ref['updateStatus'] == 'succeeded' + assert created_ref['success'] is True + + # delete the reference + delete_command = 'az repos ref delete --name {} {}'.format(REF_NAME, REPO_NAME) + deleted_ref = self.cmd(delete_command).get_output_in_json() + assert deleted_ref is not None + assert created_ref['updateStatus'] == 'succeeded' + assert created_ref['success'] is True + + # delete an unknown reference + with self.assertRaises(Exception) as exc: + delete_command = 'az repos ref delete --name {} {}'.format(UNKNOWN_REF_NAME, REPO_NAME) + delete_response = self.cmd(delete_command).get_output_in_json() + self.assertIn(f'Failed to find object_id for ref {UNKNOWN_REF_NAME}. Please provide object_id.' , str(exc.exception)) + + 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)