From 4f4242edaa13c25d71152eddb2665186f6363492 Mon Sep 17 00:00:00 2001 From: Zhenzhen You Date: Tue, 29 Jan 2019 15:10:15 -0800 Subject: [PATCH] [AL-1712] Update Plans collection URL and related tests (#1936) * Update Plans collection URL and according tests * Add PR number in CHANGELOG --- CHANGELOG.md | 1 + src/Collections/Plans.php | 2 +- tests/fixtures/plan-list-empty.yml | 2 +- tests/fixtures/plan-list.yml | 2 +- tests/fixtures/plan-set-fail.yml | 2 +- tests/fixtures/plan-set.yml | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5d36615..47dd985a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,6 +101,7 @@ All notable changes to this project will be documented in this file. This projec - Changed Environment::cloneDatabase() to accept an Environment object. (#1930) - Changed Environment::cloneFiles() to accept an Environment object. (#1930) - The target environment used in `env:clone-content` is now checked for initialization prior to cloning. (#1930) +- Updated Plans collection URL `accounts/site-account-forwarding/{site_id}/plans`. (#1936) ### Deprecated - `service-level:set` is now deprecated. Please use `plan:set`. (#1901) diff --git a/src/Collections/Plans.php b/src/Collections/Plans.php index b27259b86..b5570b612 100644 --- a/src/Collections/Plans.php +++ b/src/Collections/Plans.php @@ -18,7 +18,7 @@ class Plans extends SiteOwnedCollection /** * @var string */ - protected $url = 'sites/{site_id}/plans'; + protected $url = 'accounts/site-account-forwarding/{site_id}/plans'; /** * Sets the site's plan to the plan indicated. diff --git a/tests/fixtures/plan-list-empty.yml b/tests/fixtures/plan-list-empty.yml index 16bceefb5..f3cee6734 100644 --- a/tests/fixtures/plan-list-empty.yml +++ b/tests/fixtures/plan-list-empty.yml @@ -97,7 +97,7 @@ - request: method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans' + url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans' headers: Host: onebox Accept-Encoding: null diff --git a/tests/fixtures/plan-list.yml b/tests/fixtures/plan-list.yml index 83cc1d0e3..b6f36aa9f 100644 --- a/tests/fixtures/plan-list.yml +++ b/tests/fixtures/plan-list.yml @@ -97,7 +97,7 @@ - request: method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans' + url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans' headers: Host: onebox Accept-Encoding: null diff --git a/tests/fixtures/plan-set-fail.yml b/tests/fixtures/plan-set-fail.yml index 2ea5506ca..da2b09d0a 100644 --- a/tests/fixtures/plan-set-fail.yml +++ b/tests/fixtures/plan-set-fail.yml @@ -97,7 +97,7 @@ - request: method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans' + url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans' headers: Host: onebox Accept-Encoding: null diff --git a/tests/fixtures/plan-set.yml b/tests/fixtures/plan-set.yml index 2002f813d..2216ef2d3 100644 --- a/tests/fixtures/plan-set.yml +++ b/tests/fixtures/plan-set.yml @@ -128,7 +128,7 @@ - request: method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans' + url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans' headers: Host: onebox Accept-Encoding: null