From cb4c74aefb88426e5f4ec4e9f62dd050d8165eef Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 17:42:05 -0400 Subject: [PATCH 1/3] regen 4.1 apis after fix to include 'action' in route dictionary. --- vsts/vsts/licensing/v4_1/licensing_client.py | 2 ++ vsts/vsts/test/v4_1/test_client.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/vsts/vsts/licensing/v4_1/licensing_client.py b/vsts/vsts/licensing/v4_1/licensing_client.py index 82b513ad..c94ddceb 100644 --- a/vsts/vsts/licensing/v4_1/licensing_client.py +++ b/vsts/vsts/licensing/v4_1/licensing_client.py @@ -197,6 +197,7 @@ def get_account_entitlements_batch(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', @@ -213,6 +214,7 @@ def obtain_available_account_entitlements(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetAvailableUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', diff --git a/vsts/vsts/test/v4_1/test_client.py b/vsts/vsts/test/v4_1/test_client.py index ec6999a8..5c7dff2c 100644 --- a/vsts/vsts/test/v4_1/test_client.py +++ b/vsts/vsts/test/v4_1/test_client.py @@ -1829,6 +1829,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', @@ -1853,6 +1854,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', @@ -1873,6 +1875,7 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') if suite_id is not None: route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', @@ -1896,6 +1899,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.1', From 0437278685892c78f058da06d96aa8146ad3ce74 Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 17:43:39 -0400 Subject: [PATCH 2/3] regen 4.0 apis after fix to include 'action' in route dictionary. --- vsts/vsts/licensing/v4_0/licensing_client.py | 1 + vsts/vsts/test/v4_0/test_client.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/vsts/vsts/licensing/v4_0/licensing_client.py b/vsts/vsts/licensing/v4_0/licensing_client.py index e35642b0..932169b0 100644 --- a/vsts/vsts/licensing/v4_0/licensing_client.py +++ b/vsts/vsts/licensing/v4_0/licensing_client.py @@ -164,6 +164,7 @@ def obtain_available_account_entitlements(self, user_ids): :rtype: [AccountEntitlement] """ route_values = {} + route_values['action'] = 'GetAvailableUsersEntitlements' content = self._serialize.body(user_ids, '[str]') response = self._send(http_method='POST', location_id='cc3a0130-78ad-4a00-b1ca-49bef42f4656', diff --git a/vsts/vsts/test/v4_0/test_client.py b/vsts/vsts/test/v4_0/test_client.py index bb1a27bf..2101cb25 100644 --- a/vsts/vsts/test/v4_0/test_client.py +++ b/vsts/vsts/test/v4_0/test_client.py @@ -1747,6 +1747,7 @@ def add_test_cases_to_suite(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' response = self._send(http_method='POST', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', @@ -1771,6 +1772,7 @@ def get_test_case_by_id(self, project, plan_id, suite_id, test_case_ids): route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', @@ -1791,6 +1793,7 @@ def get_test_cases(self, project, plan_id, suite_id): route_values['planId'] = self._serialize.url('plan_id', plan_id, 'int') if suite_id is not None: route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') + route_values['action'] = 'TestCases' response = self._send(http_method='GET', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', @@ -1814,6 +1817,7 @@ def remove_test_cases_from_suite_url(self, project, plan_id, suite_id, test_case route_values['suiteId'] = self._serialize.url('suite_id', suite_id, 'int') if test_case_ids is not None: route_values['testCaseIds'] = self._serialize.url('test_case_ids', test_case_ids, 'str') + route_values['action'] = 'TestCases' self._send(http_method='DELETE', location_id='a4a1ec1c-b03f-41ca-8857-704594ecf58e', version='4.0', From f613004e78d97dda81c7ae7a4ba16c085f6a69ee Mon Sep 17 00:00:00 2001 From: Ted Chambers Date: Fri, 8 Jun 2018 18:00:39 -0400 Subject: [PATCH 3/3] bump version number to 0.1.8 --- vsts/setup.py | 2 +- vsts/vsts/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vsts/setup.py b/vsts/setup.py index b0a0e37e..adcdc13d 100644 --- a/vsts/setup.py +++ b/vsts/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "vsts" -VERSION = "0.1.7" +VERSION = "0.1.8" # To install the library, run the following # diff --git a/vsts/vsts/version.py b/vsts/vsts/version.py index 3e4c46aa..b9f4467b 100644 --- a/vsts/vsts/version.py +++ b/vsts/vsts/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "0.1.7" +VERSION = "0.1.8"