diff --git a/CHANGELOG.md b/CHANGELOG.md index fe3041bfb..1fc53e970 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project starting with the 0.6.0 release will be docu ## MASTER ### Removed - `cli cache-clear` command. (#1152) +- The command `site set-php-version` has been removed. Please set your PHP version by your pantheon.yml file. (See: https://pantheon.io/docs/php-versions) (#1121) ## [0.11.4] - 2016-08-10 ### Added diff --git a/php/Terminus/Commands/SiteCommand.php b/php/Terminus/Commands/SiteCommand.php index 1365af5d6..54979da87 100755 --- a/php/Terminus/Commands/SiteCommand.php +++ b/php/Terminus/Commands/SiteCommand.php @@ -1834,54 +1834,6 @@ public function setOwner($args, $assoc_args) { $this->workflowOutput($workflow); } - /** - * Set the site's or environment's PHP version - * - * ## OPTIONS - * - * [--site=] - * : Site to set the PHP version on. - * - * [--env=] - * : Environment to set the PHP version on. Leave this out to set only the - * site's version. - * - * [--version=] - * : The PHP version to set the site or environment to. Options are 7.0, 5.6, - * 5.5, and 5.3. - * - * @subcommand set-php-version - */ - public function setPhpVersion($args, $assoc_args) { - $params = ['args' => $assoc_args,]; - $site = $this->sites->get($this->input()->siteName($params)); - - if (isset($assoc_args['env'])) { - $env = $site->environments->get($assoc_args['env']); - $params['choices'] = [ - 'default' => 'default', - 53 => '5.3', - 55 => '5.5', - 56 => '5.6', - 70 => '7.0', - ]; - $version = $this->input()->phpVersion($params); - if ($version != 'default') { - $workflow = $env->setPhpVersion($version); - } else { - $workflow = $env->unsetPhpVersion(); - } - $workflow->wait(); - $this->workflowOutput($workflow); - } else { - $version = $this->input()->phpVersion($params); - $workflow = $site->setPhpVersion($version); - $workflow->wait(); - $this->workflowOutput($workflow); - $site->fetchAttributes(); - } - } - /** * Set the site's service level * diff --git a/php/Terminus/Models/Environment.php b/php/Terminus/Models/Environment.php index 0124dba0b..690be0bc4 100755 --- a/php/Terminus/Models/Environment.php +++ b/php/Terminus/Models/Environment.php @@ -721,28 +721,6 @@ function ($param) { return $workflow; } - /** - * Sets the PHP version number of this environment - * - * @param string $version_number The version number to set this environment to - * use - * @return void - */ - public function setPhpVersion($version_number) { - $options = [ - 'environment' => $this->get('id'), - 'params' => [ - 'key' => 'php_version', - 'value' => $version_number, - ], - ]; - $workflow = $this->site->workflows->create( - 'update_environment_setting', - $options - ); - return $workflow; - } - /** * Disable HTTP Basic Access authentication on the web environment * @@ -754,23 +732,6 @@ public function unlock() { return $workflow; } - /** - * Unsets the PHP version of this environment so it will use the site default - * - * @return void - */ - public function unsetPhpVersion() { - $options = [ - 'environment' => $this->get('id'), - 'params' => ['key' => 'php_version',], - ]; - $workflow = $this->site->workflows->create( - 'delete_environment_setting', - $options - ); - return $workflow; - } - /** * "Wake" a site * diff --git a/php/Terminus/Models/Site.php b/php/Terminus/Models/Site.php index a8eda6447..4484e2a70 100755 --- a/php/Terminus/Models/Site.php +++ b/php/Terminus/Models/Site.php @@ -595,20 +595,6 @@ public function setOwner($owner = null) { return $workflow; } - /** - * Sets the PHP version number of this site - * - * @param string $version_number The version number to set this site to use - * @return void - */ - public function setPhpVersion($version_number) { - $options = [ - 'params' => ['key' => 'php_version', 'value' => $version_number,], - ]; - $workflow = $this->workflows->create('update_site_setting', $options); - return $workflow; - } - /** * Update service level * diff --git a/tests/features/site_set-php-version.feature b/tests/features/site_set-php-version.feature deleted file mode 100644 index 1a6e390e2..000000000 --- a/tests/features/site_set-php-version.feature +++ /dev/null @@ -1,26 +0,0 @@ -Feature: Managing the PHP version of sites and environments - In order to make Pantheon work for my site - As a user - I need to be able to change which PHP version my site and environments are using. - - Background: I am authenticated and I have a site named [[test_site_name]] - Given I am authenticated - And a site named "[[test_site_name]]" - - @vcr site_set-php-version - Scenario: Setting the site's PHP version - When I run "terminus site set-php-version --site=[[test_site_name]] --version=5.5" - And I get info for the site "[[test_site_name]]" - Then I should get: "5.5" - - @vcr site_set-php-version_environment - Scenario: Setting an environment's PHP version - When I run "terminus site set-php-version --site=[[test_site_name]] --env=dev --version=7.0" - And I get info for the "dev" environment of "[[test_site_name]]" - Then I should get one of the following: "5.3, 5.5, 5.6, 7.0" - - @vcr site_set-php-version_environment_unset - Scenario: Setting an environment's PHP version to the site default - When I run "terminus site set-php-version --site=[[test_site_name]] --env=dev --version=default" - And I get info for the "dev" environment of "[[test_site_name]]" - Then I should get one of the following: "5.3, 5.5, 5.6, 7.0" diff --git a/tests/fixtures/site_set-php-version b/tests/fixtures/site_set-php-version deleted file mode 100644 index a66de1e0b..000000000 --- a/tests/fixtures/site_set-php-version +++ /dev/null @@ -1,218 +0,0 @@ - -- - request: - method: POST - url: 'https://onebox/api/authorize/machine-token' - headers: - Host: onebox - Expect: null - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:04c7ff5e-6646-11e6-8060-bc764e1022a9:RdtG9eX4VAUbce0BbOeXx' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:04c7ff5e-6646-11e6-8060-bc764e1022a9:RdtG9eX4VAUbce0BbOeXx' - verify: '1' - method: post - absolute_url: '' - json: terminus - Accept: null - body: '{"machine_token":"111111111111111111111111111111111111111111111","client":"terminus"}' - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:46 GMT' - Content-Type: 'application/json; charset=utf-8' - Content-Length: '182' - Connection: keep-alive - X-Pantheon-Trace-Id: 149e2070-6646-11e6-a69e-9d129c74acd7 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"session":"11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf","expires_at":1474055386,"user_id":"11111111-1111-1111-1111-111111111111"}' -- - request: - method: GET - url: 'https://onebox/api/users/11111111-1111-1111-1111-111111111111' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:47 GMT' - Content-Type: application/json - Content-Length: '3327' - Connection: keep-alive - X-Pantheon-Trace-Id: 1529e5b0-6646-11e6-a69e-9d129c74acd7 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"profile": {"utm_term": "", "invites_to_nonuser": 4, "seen_first_time_user_popover": true, "utm_content": "/", "experiments": {"welcome_video": "shown"}, "full_name": "Dev User", "pullFromLive": false, "utm_device": "", "initial_identity_strategy": null, "utm_campaign": "pantheon.io (organic)", "tracking_first_site_create": 1428723370, "verify": "037eadb020d51ccddba9e06a64908c98", "tracking_first_code_push": 1428811227, "google_adwords_account_registered_sent": 1428707350, "invites_to_user": 8, "utm_medium": "", "job_function": "developer", "tracking_first_workflow_in_live": 1428811293, "tracking_first_team_invite": 1436464837, "firstname": "Dev", "invites_to_site": 12, "lastname": "User", "pda_campaign": null, "utm_source": "https://www.bing.com/search?setmkt=en-US&q=pantheon+san+francisco", "google_adwords_pushed_code_sent": 1428811242, "last-org-spinup": "none", "web_services_business": null, "initial_identity_name": null, "guilty_of_abuse": null, "invites_sent": 12, "tracking_first_site_upgrade": 1437784612, "google_adwords_paid_for_site_sent": 1438018300, "modified": 1458174494, "maxdevsites": 2, "lead_type": "", "organization": " Pantheon Systems, Inc"}, "feature_flags": [{"name": "Experimental Products", "default": false, "enabled": false, "visible": false, "optional": false, "id": "experimental-products"}, {"name": "annotate git tags", "default": false, "enabled": false, "visible": false, "optional": false, "id": "annotate_git_tags"}, {"name": "Cacheserver Add-on", "default": false, "enabled": false, "visible": false, "optional": false, "id": "cacheserver-addon"}, {"name": "Apollo Spinup", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo-spinup"}, {"name": "Pantheon One", "default": false, "enabled": false, "visible": false, "optional": false, "id": "one"}, {"name": "Unified User Account Screen ", "default": false, "enabled": false, "visible": true, "optional": false, "id": "apollo-user"}, {"name": "Indexserver Add-on", "default": false, "enabled": false, "visible": true, "optional": false, "id": "indexserver-addon"}, {"name": "Wordpress", "default": false, "enabled": false, "visible": false, "optional": false, "id": "wordpress"}, {"name": "Apollo Self-Service Toggle", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo-toggle"}, {"name": "Site Audit Checks", "default": false, "enabled": false, "visible": false, "optional": false, "id": "site_audit_checks"}, {"description": "Enables the new Desk API 2.0 Interface", "default": false, "enabled": true, "visible": true, "percentage": 100, "optional": false, "id": "desk", "name": "desk"}, {"name": "org tags", "default": false, "enabled": false, "visible": true, "optional": false, "id": "org-tags"}, {"name": "Apollo Dashboard", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo"}, {"name": "Org Upstream Updates", "default": false, "enabled": false, "visible": false, "optional": false, "id": "org-has-code"}], "user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "dev_sites_count": 2, "id": "11111111-1111-1111-1111-111111111111", "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}' -- - request: - method: GET - url: 'https://onebox/api/site-names/behat-tests' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:47 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 15afde90-6646-11e6-a69e-9d129c74acd7 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"id": "11111111-1111-1111-1111-111111111111", "name": "behat-tests"}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111?site_state=true' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:48 GMT' - Content-Type: application/json - Content-Length: '3516' - Connection: keep-alive - X-Pantheon-Trace-Id: 15f85940-6646-11e6-9aa2-6117a1834a25 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"allow_cacheserver": false, "allow_indexserver": false, "created": 1471385341, "created_by_user_id": "11111111-1111-1111-1111-111111111111", "framework": "wordpress", "holder_id": "11111111-1111-1111-1111-111111111111", "holder_type": "user", "last_code_push": {"timestamp": "2016-08-19T19:05:16", "user_uuid": "11111111-1111-1111-1111-111111111111"}, "migration_completed_at": 1471632727, "migration_started_at": 1471634332, "name": "behat-tests", "owner": "11111111-1111-1111-1111-111111111111", "php_version": "55", "preferred_zone": "chios", "service_level": "free", "upstream": {"url": "https://github.com/pantheon-systems/WordPress", "product_id": "e8fe8550-1ab9-4964-8838-2b9abdccf4bf", "branch": "master"}, "label": "behat tests", "id": "11111111-1111-1111-1111-111111111111", "holder": {"profile": {"utm_term": "", "invites_to_nonuser": 4, "seen_first_time_user_popover": true, "utm_content": "/", "experiments": {"welcome_video": "shown"}, "full_name": "Dev User", "pullFromLive": false, "utm_device": "", "initial_identity_strategy": null, "utm_campaign": "pantheon.io (organic)", "tracking_first_site_create": 1428723370, "verify": "037eadb020d51ccddba9e06a64908c98", "tracking_first_code_push": 1428811227, "google_adwords_account_registered_sent": 1428707350, "invites_to_user": 8, "utm_medium": "", "job_function": "developer", "tracking_first_workflow_in_live": 1428811293, "tracking_first_team_invite": 1436464837, "firstname": "Dev", "invites_to_site": 12, "lastname": "User", "pda_campaign": null, "utm_source": "https://www.bing.com/search?setmkt=en-US&q=pantheon+san+francisco", "google_adwords_pushed_code_sent": 1428811242, "last-org-spinup": "none", "web_services_business": null, "initial_identity_name": null, "guilty_of_abuse": null, "invites_sent": 12, "tracking_first_site_upgrade": 1437784612, "google_adwords_paid_for_site_sent": 1438018300, "modified": 1458174494, "maxdevsites": 2, "lead_type": "", "organization": " Pantheon Systems, Inc"}, "id": "11111111-1111-1111-1111-111111111111", "email": "devuser@pantheon.io"}, "settings": {"allow_domains": false, "max_num_cdes": 10, "stunnel": false, "replica_verification_strategy": "pt-heartbeat", "owner": "11111111-1111-1111-1111-111111111111", "secure_runtime_access": false, "pingdom": 0, "guilty_of_abuse": null, "created_by_user_id": "11111111-1111-1111-1111-111111111111", "failover_appserver": 0, "migration_started_at": 1471634332, "migration_completed_at": 1471632727, "support_plan": "regular_support", "on_server_development": false, "drush_version": 5, "label": "behat tests", "appserver": 1, "allow_read_slaves": false, "indexserver": 1, "php_version": "55", "php_channel": "stable", "allow_cacheserver": false, "ssl_enabled": null, "min_backups": 0, "service_level": "free", "dedicated_ip": null, "dbserver": 1, "framework": "wordpress", "upstream": {"url": "https://github.com/pantheon-systems/WordPress", "product_id": "e8fe8550-1ab9-4964-8838-2b9abdccf4bf", "branch": "master"}, "cacheserver": 1, "allow_indexserver": false, "preferred_zone": "chios", "pingdom_chance": 0, "holder_id": "11111111-1111-1111-1111-111111111111", "name": "behat-tests", "created": 1471385341, "max_backups": 0, "holder_type": "user", "number_allow_domains": 0, "pingdom_manually_enabled": false, "last_code_push": {"timestamp": "2016-08-19T19:05:16", "user_uuid": "11111111-1111-1111-1111-111111111111"}}, "base_domain": null, "attributes": {"label": "behat tests"}, "add_ons": [{"id": "NewRelic", "label": "New Relic"}]}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:48 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 163ae080-6646-11e6-9aa2-6117a1834a25 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"dev": {"watchers": 1, "diffstat": {}, "on_server_development": true, "environment_created": 1471385341, "dns_zone": "pantheonsite.io", "randseed": "DAWMHE2LTF12P5H2DY3URABPX8N16US9", "styx_cluster": "styx-03.pantheon.io", "target_ref": "refs/heads/master", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "drush_version": 8}, "test": {"environment_created": 1471385344, "dns_zone": "pantheonsite.io", "randseed": "2768L88WYTOBH0MIQPOB6KY42C3L4WZI", "target_ref": "refs/tags/pantheon_test_2", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "styx_cluster": "styx-03.pantheon.io"}, "live": {"environment_created": 1471385345, "dns_zone": "pantheonsite.io", "randseed": "0G8KI1O49B4E19HYWI5YUYREYHP0A4TJ", "target_ref": "refs/tags/pantheon_live_1", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "1fdf194d3d7a0c930a4f118e1398412765320328", "styx_cluster": "styx-02.pantheon.io"}}' -- - request: - method: POST - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/workflows' - headers: - Host: onebox - Expect: null - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - verify: '1' - method: post - absolute_url: '' - json: '' - Accept: null - body: '{"type":"update_site_setting","params":{"key":"php_version","value":55}}' - response: - status: - http_version: '1.1' - code: '202' - message: Accepted - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:49 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 16ad0340-6646-11e6-9aa2-6117a1834a25 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - body: '{"final_task_id": "16b20da4-6646-11e6-b01c-bc764e1141f9", "finished_at": 1471636189.644112, "params": {"value": 55, "key": "php_version"}, "reason": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "result": "aborted", "role": "owner", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636189.616661, "task_ids": ["16b20da4-6646-11e6-b01c-bc764e1141f9"], "trace_id": "16ad0340-6646-11e6-9aa2-6117a1834a25", "type": "update_site_setting", "user_id": "11111111-1111-1111-1111-111111111111", "waiting_for_task_id": null, "id": "16b14892-6646-11e6-b01c-bc764e1141f9", "key": "1471633200", "environment_id": null, "keep_forever": false, "phase": "finished", "queued_time": null, "run_time": 0.027451038360595703, "created_at": 1471636189.583989, "environment": null, "total_time": 0.06012320518493652, "active_description": "Updated site setting", "description": "Update site setting", "step": 1, "has_operation_log_output": false, "number_of_tasks": 1, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:16ad0340-6646-11e6-9aa2-6117a1834a25%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:44:49.583989Z%27,mode:quick,to:%272016-08-19T19:54:49.644112Z%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}, "user_email": "devuser@pantheon.io", "final_task": {"environment": null, "finished_at": 1471636189.62296, "fn_name": "trigger_task", "has_error": true, "params": {"task_type": "update_site_setting", "site_id": "11111111-1111-1111-1111-111111111111", "key": "php_version", "value": 55}, "queued_at": 1471636189.617009, "responses": [{"code": 400, "body": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "error_details": "", "internal_reason": ""}], "result": "aborted", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636189.617011, "trace_id": "16ad0340-6646-11e6-9aa2-6117a1834a25", "user_id": "11111111-1111-1111-1111-111111111111", "workflow_id": "16b14892-6646-11e6-b01c-bc764e1141f9", "id": "16b20da4-6646-11e6-b01c-bc764e1141f9", "key": "1471633200", "queued_time": 2.1457672119140625e-06, "host": null, "phase": "finished", "created_at": 1471636189.589034, "allow_concurrent": false, "run_time": 0.0059490203857421875, "total_time": 0.03392601013183594, "reason": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "error_details": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "internal_reason": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:16ad0340-6646-11e6-9aa2-6117a1834a25%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:44:49.589034Z%27,mode:quick,to:%272016-08-19T19:54:49.622960Z%27))", "type": "update_site_setting", "build_url": null, "messages": {"2016-08-19T19:49:49.663232": {"message": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "level": "ERROR"}}}}' diff --git a/tests/fixtures/site_set-php-version_environment b/tests/fixtures/site_set-php-version_environment deleted file mode 100644 index 9a3e413e9..000000000 --- a/tests/fixtures/site_set-php-version_environment +++ /dev/null @@ -1,253 +0,0 @@ - -- - request: - method: POST - url: 'https://onebox/api/authorize/machine-token' - headers: - Host: onebox - Expect: null - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:14f1d616-6646-11e6-9df9-bc764e105ecb:cRPu0y9qmpNgpnq2bPgbf' - verify: '1' - method: post - absolute_url: '' - json: terminus - Accept: null - body: '{"machine_token":"111111111111111111111111111111111111111111111","client":"terminus"}' - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:34 GMT' - Content-Type: 'application/json; charset=utf-8' - Content-Length: '182' - Connection: keep-alive - X-Pantheon-Trace-Id: 54dbe5a0-6646-11e6-ad69-5f4c0d99879d - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"session":"11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7","expires_at":1474055494,"user_id":"11111111-1111-1111-1111-111111111111"}' -- - request: - method: GET - url: 'https://onebox/api/users/11111111-1111-1111-1111-111111111111' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:35 GMT' - Content-Type: application/json - Content-Length: '3327' - Connection: keep-alive - X-Pantheon-Trace-Id: 557b59f0-6646-11e6-9aa2-6117a1834a25 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"profile": {"utm_term": "", "invites_to_nonuser": 4, "seen_first_time_user_popover": true, "utm_content": "/", "experiments": {"welcome_video": "shown"}, "full_name": "Dev User", "pullFromLive": false, "utm_device": "", "initial_identity_strategy": null, "utm_campaign": "pantheon.io (organic)", "tracking_first_site_create": 1428723370, "verify": "037eadb020d51ccddba9e06a64908c98", "tracking_first_code_push": 1428811227, "google_adwords_account_registered_sent": 1428707350, "invites_to_user": 8, "utm_medium": "", "job_function": "developer", "tracking_first_workflow_in_live": 1428811293, "tracking_first_team_invite": 1436464837, "firstname": "Dev", "invites_to_site": 12, "lastname": "User", "pda_campaign": null, "utm_source": "https://www.bing.com/search?setmkt=en-US&q=pantheon+san+francisco", "google_adwords_pushed_code_sent": 1428811242, "last-org-spinup": "none", "web_services_business": null, "initial_identity_name": null, "guilty_of_abuse": null, "invites_sent": 12, "tracking_first_site_upgrade": 1437784612, "google_adwords_paid_for_site_sent": 1438018300, "modified": 1458174494, "maxdevsites": 2, "lead_type": "", "organization": " Pantheon Systems, Inc"}, "feature_flags": [{"name": "Experimental Products", "default": false, "enabled": false, "visible": false, "optional": false, "id": "experimental-products"}, {"name": "annotate git tags", "default": false, "enabled": false, "visible": false, "optional": false, "id": "annotate_git_tags"}, {"name": "Cacheserver Add-on", "default": false, "enabled": false, "visible": false, "optional": false, "id": "cacheserver-addon"}, {"name": "Apollo Spinup", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo-spinup"}, {"name": "Pantheon One", "default": false, "enabled": false, "visible": false, "optional": false, "id": "one"}, {"name": "Unified User Account Screen ", "default": false, "enabled": false, "visible": true, "optional": false, "id": "apollo-user"}, {"name": "Indexserver Add-on", "default": false, "enabled": false, "visible": true, "optional": false, "id": "indexserver-addon"}, {"name": "Wordpress", "default": false, "enabled": false, "visible": false, "optional": false, "id": "wordpress"}, {"name": "Apollo Self-Service Toggle", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo-toggle"}, {"name": "Site Audit Checks", "default": false, "enabled": false, "visible": false, "optional": false, "id": "site_audit_checks"}, {"description": "Enables the new Desk API 2.0 Interface", "default": false, "enabled": true, "visible": true, "percentage": 100, "optional": false, "id": "desk", "name": "desk"}, {"name": "org tags", "default": false, "enabled": false, "visible": true, "optional": false, "id": "org-tags"}, {"name": "Apollo Dashboard", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo"}, {"name": "Org Upstream Updates", "default": false, "enabled": false, "visible": false, "optional": false, "id": "org-has-code"}], "user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "dev_sites_count": 2, "id": "11111111-1111-1111-1111-111111111111", "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}' -- - request: - method: GET - url: 'https://onebox/api/site-names/behat-tests' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:35 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 55f6f290-6646-11e6-8f86-018f7b210ab3 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"id": "11111111-1111-1111-1111-111111111111", "name": "behat-tests"}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111?site_state=true' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:36 GMT' - Content-Type: application/json - Content-Length: '3516' - Connection: keep-alive - X-Pantheon-Trace-Id: 56331130-6646-11e6-8f86-018f7b210ab3 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"allow_cacheserver": false, "allow_indexserver": false, "created": 1471385341, "created_by_user_id": "11111111-1111-1111-1111-111111111111", "framework": "wordpress", "holder_id": "11111111-1111-1111-1111-111111111111", "holder_type": "user", "last_code_push": {"timestamp": "2016-08-19T19:05:16", "user_uuid": "11111111-1111-1111-1111-111111111111"}, "migration_completed_at": 1471632727, "migration_started_at": 1471634332, "name": "behat-tests", "owner": "11111111-1111-1111-1111-111111111111", "php_version": "55", "preferred_zone": "chios", "service_level": "free", "upstream": {"url": "https://github.com/pantheon-systems/WordPress", "product_id": "e8fe8550-1ab9-4964-8838-2b9abdccf4bf", "branch": "master"}, "label": "behat tests", "id": "11111111-1111-1111-1111-111111111111", "holder": {"profile": {"utm_term": "", "invites_to_nonuser": 4, "seen_first_time_user_popover": true, "utm_content": "/", "experiments": {"welcome_video": "shown"}, "full_name": "Dev User", "pullFromLive": false, "utm_device": "", "initial_identity_strategy": null, "utm_campaign": "pantheon.io (organic)", "tracking_first_site_create": 1428723370, "verify": "037eadb020d51ccddba9e06a64908c98", "tracking_first_code_push": 1428811227, "google_adwords_account_registered_sent": 1428707350, "invites_to_user": 8, "utm_medium": "", "job_function": "developer", "tracking_first_workflow_in_live": 1428811293, "tracking_first_team_invite": 1436464837, "firstname": "Dev", "invites_to_site": 12, "lastname": "User", "pda_campaign": null, "utm_source": "https://www.bing.com/search?setmkt=en-US&q=pantheon+san+francisco", "google_adwords_pushed_code_sent": 1428811242, "last-org-spinup": "none", "web_services_business": null, "initial_identity_name": null, "guilty_of_abuse": null, "invites_sent": 12, "tracking_first_site_upgrade": 1437784612, "google_adwords_paid_for_site_sent": 1438018300, "modified": 1458174494, "maxdevsites": 2, "lead_type": "", "organization": " Pantheon Systems, Inc"}, "id": "11111111-1111-1111-1111-111111111111", "email": "devuser@pantheon.io"}, "settings": {"allow_domains": false, "max_num_cdes": 10, "stunnel": false, "replica_verification_strategy": "pt-heartbeat", "owner": "11111111-1111-1111-1111-111111111111", "secure_runtime_access": false, "pingdom": 0, "guilty_of_abuse": null, "created_by_user_id": "11111111-1111-1111-1111-111111111111", "failover_appserver": 0, "migration_started_at": 1471634332, "migration_completed_at": 1471632727, "support_plan": "regular_support", "on_server_development": false, "drush_version": 5, "label": "behat tests", "appserver": 1, "allow_read_slaves": false, "indexserver": 1, "php_version": "55", "php_channel": "stable", "allow_cacheserver": false, "ssl_enabled": null, "min_backups": 0, "service_level": "free", "dedicated_ip": null, "dbserver": 1, "framework": "wordpress", "upstream": {"url": "https://github.com/pantheon-systems/WordPress", "product_id": "e8fe8550-1ab9-4964-8838-2b9abdccf4bf", "branch": "master"}, "cacheserver": 1, "allow_indexserver": false, "preferred_zone": "chios", "pingdom_chance": 0, "holder_id": "11111111-1111-1111-1111-111111111111", "name": "behat-tests", "created": 1471385341, "max_backups": 0, "holder_type": "user", "number_allow_domains": 0, "pingdom_manually_enabled": false, "last_code_push": {"timestamp": "2016-08-19T19:05:16", "user_uuid": "11111111-1111-1111-1111-111111111111"}}, "base_domain": null, "attributes": {"label": "behat tests"}, "add_ons": [{"id": "NewRelic", "label": "New Relic"}]}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:36 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 5678a5b0-6646-11e6-8f86-018f7b210ab3 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"dev": {"watchers": 1, "diffstat": {}, "on_server_development": true, "environment_created": 1471385341, "dns_zone": "pantheonsite.io", "randseed": "DAWMHE2LTF12P5H2DY3URABPX8N16US9", "styx_cluster": "styx-03.pantheon.io", "target_ref": "refs/heads/master", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "drush_version": 8}, "test": {"environment_created": 1471385344, "dns_zone": "pantheonsite.io", "randseed": "2768L88WYTOBH0MIQPOB6KY42C3L4WZI", "target_ref": "refs/tags/pantheon_test_2", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "styx_cluster": "styx-03.pantheon.io"}, "live": {"environment_created": 1471385345, "dns_zone": "pantheonsite.io", "randseed": "0G8KI1O49B4E19HYWI5YUYREYHP0A4TJ", "target_ref": "refs/tags/pantheon_live_1", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "1fdf194d3d7a0c930a4f118e1398412765320328", "styx_cluster": "styx-02.pantheon.io"}}' -- - request: - method: POST - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments/dev/workflows' - headers: - Host: onebox - Expect: null - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - verify: '1' - method: post - absolute_url: '' - json: '' - Accept: null - body: '{"type":"update_environment_setting","params":{"key":"php_version","value":70}}' - response: - status: - http_version: '1.1' - code: '202' - message: Accepted - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:39 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 56de1e40-6646-11e6-a69e-9d129c74acd7 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - body: '{"environment_id": "dev", "params": {"value": 70, "key": "php_version"}, "role": "owner", "site_id": "11111111-1111-1111-1111-111111111111", "task_ids": ["56e6b3b6-6646-11e6-9125-bc764e1141f9", "5740061e-6646-11e6-9125-bc764e1141f9", "5742d7fe-6646-11e6-9125-bc764e1141f9", "5743acba-6646-11e6-9125-bc764e1141f9", "5744cd0c-6646-11e6-9125-bc764e1141f9", "5745c2b6-6646-11e6-9125-bc764e1141f9", "57469542-6646-11e6-9125-bc764e1141f9", "574abc30-6646-11e6-9125-bc764e1141f9"], "trace_id": "56de1e40-6646-11e6-a69e-9d129c74acd7", "type": "update_environment_setting", "user_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636298.108222, "reason": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "finished_at": 1471636298.157305, "waiting_for_task_id": null, "result": "succeeded", "final_task_id": "56e6b3b6-6646-11e6-9125-bc764e1141f9", "id": "56e4bdea-6646-11e6-9125-bc764e1141f9", "key": "1471633200", "keep_forever": false, "phase": "finished", "queued_time": null, "run_time": 0.04908299446105957, "created_at": 1471636297.295409, "environment": "dev", "total_time": 0.8618960380554199, "active_description": "Updated \"dev\" setting", "description": "Update \"dev\" setting", "step": 1, "has_operation_log_output": false, "number_of_tasks": 8, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:56de1e40-6646-11e6-a69e-9d129c74acd7%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:46:37.295409Z%27,mode:quick,to:%272016-08-19T19:56:38.157305Z%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}, "user_email": "devuser@pantheon.io", "final_task": {"environment": "dev", "finished_at": 1471636298.119741, "fn_name": "trigger_task", "has_error": true, "params": {"environment": "dev", "task_type": "update_environment_setting", "site_id": "11111111-1111-1111-1111-111111111111", "key": "php_version", "value": 70}, "queued_at": 1471636298.108559, "responses": [{"code": 400, "body": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "error_details": "", "internal_reason": ""}], "result": "succeeded", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636298.108562, "trace_id": "56de1e40-6646-11e6-a69e-9d129c74acd7", "user_id": "11111111-1111-1111-1111-111111111111", "workflow_id": "56e4bdea-6646-11e6-9125-bc764e1141f9", "id": "56e6b3b6-6646-11e6-9125-bc764e1141f9", "key": "1471633200", "queued_time": 3.0994415283203125e-06, "host": null, "phase": "finished", "created_at": 1471636297.308255, "allow_concurrent": false, "run_time": 0.011178970336914062, "total_time": 0.811486005783081, "reason": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "error_details": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "internal_reason": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:56de1e40-6646-11e6-a69e-9d129c74acd7%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:46:37.308255Z%27,mode:quick,to:%272016-08-19T19:56:38.119741Z%27))", "type": "update_environment_setting", "build_url": null, "messages": {"2016-08-19T19:51:39.411443": {"message": "Sorry, setting the PHP version has moved to pantheon.yml. You can find out how to change it here: https://pantheon.io/docs/php-versions/", "level": "ERROR"}}}}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments/dev' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:5534f38e-6646-11e6-9956-bc764e1022a9:FRM3dkWpF5IA7nlmTx1B7' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:40 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 58a76c90-6646-11e6-a69e-9d129c74acd7 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"watchers": 1, "diffstat": {}, "on_server_development": true, "environment_created": 1471385341, "dns_zone": "pantheonsite.io", "randseed": "DAWMHE2LTF12P5H2DY3URABPX8N16US9", "styx_cluster": "styx-03.pantheon.io", "target_ref": "refs/heads/master", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "drush_version": 8}' diff --git a/tests/fixtures/site_set-php-version_environment_unset b/tests/fixtures/site_set-php-version_environment_unset deleted file mode 100644 index eb6df9233..000000000 --- a/tests/fixtures/site_set-php-version_environment_unset +++ /dev/null @@ -1,289 +0,0 @@ - -- - request: - method: POST - url: 'https://onebox/api/authorize/machine-token' - headers: - Host: onebox - Expect: null - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:17829b5e-6646-11e6-9b16-bc764e1141f9:hvZOefJxt34UL0yTy7Elh' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:17829b5e-6646-11e6-9b16-bc764e1141f9:hvZOefJxt34UL0yTy7Elh' - verify: '1' - method: post - absolute_url: '' - json: terminus - Accept: null - body: '{"machine_token":"111111111111111111111111111111111111111111111","client":"terminus"}' - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:57 GMT' - Content-Type: 'application/json; charset=utf-8' - Content-Length: '182' - Connection: keep-alive - X-Pantheon-Trace-Id: 1afd98b0-6646-11e6-ad69-5f4c0d99879d - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"session":"11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH","expires_at":1474055397,"user_id":"11111111-1111-1111-1111-111111111111"}' -- - request: - method: GET - url: 'https://onebox/api/users/11111111-1111-1111-1111-111111111111' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:58 GMT' - Content-Type: application/json - Content-Length: '3327' - Connection: keep-alive - X-Pantheon-Trace-Id: 1b998a90-6646-11e6-9aa2-6117a1834a25 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"profile": {"utm_term": "", "invites_to_nonuser": 4, "seen_first_time_user_popover": true, "utm_content": "/", "experiments": {"welcome_video": "shown"}, "full_name": "Dev User", "pullFromLive": false, "utm_device": "", "initial_identity_strategy": null, "utm_campaign": "pantheon.io (organic)", "tracking_first_site_create": 1428723370, "verify": "037eadb020d51ccddba9e06a64908c98", "tracking_first_code_push": 1428811227, "google_adwords_account_registered_sent": 1428707350, "invites_to_user": 8, "utm_medium": "", "job_function": "developer", "tracking_first_workflow_in_live": 1428811293, "tracking_first_team_invite": 1436464837, "firstname": "Dev", "invites_to_site": 12, "lastname": "User", "pda_campaign": null, "utm_source": "https://www.bing.com/search?setmkt=en-US&q=pantheon+san+francisco", "google_adwords_pushed_code_sent": 1428811242, "last-org-spinup": "none", "web_services_business": null, "initial_identity_name": null, "guilty_of_abuse": null, "invites_sent": 12, "tracking_first_site_upgrade": 1437784612, "google_adwords_paid_for_site_sent": 1438018300, "modified": 1458174494, "maxdevsites": 2, "lead_type": "", "organization": " Pantheon Systems, Inc"}, "feature_flags": [{"name": "Experimental Products", "default": false, "enabled": false, "visible": false, "optional": false, "id": "experimental-products"}, {"name": "annotate git tags", "default": false, "enabled": false, "visible": false, "optional": false, "id": "annotate_git_tags"}, {"name": "Cacheserver Add-on", "default": false, "enabled": false, "visible": false, "optional": false, "id": "cacheserver-addon"}, {"name": "Apollo Spinup", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo-spinup"}, {"name": "Pantheon One", "default": false, "enabled": false, "visible": false, "optional": false, "id": "one"}, {"name": "Unified User Account Screen ", "default": false, "enabled": false, "visible": true, "optional": false, "id": "apollo-user"}, {"name": "Indexserver Add-on", "default": false, "enabled": false, "visible": true, "optional": false, "id": "indexserver-addon"}, {"name": "Wordpress", "default": false, "enabled": false, "visible": false, "optional": false, "id": "wordpress"}, {"name": "Apollo Self-Service Toggle", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo-toggle"}, {"name": "Site Audit Checks", "default": false, "enabled": false, "visible": false, "optional": false, "id": "site_audit_checks"}, {"description": "Enables the new Desk API 2.0 Interface", "default": false, "enabled": true, "visible": true, "percentage": 100, "optional": false, "id": "desk", "name": "desk"}, {"name": "org tags", "default": false, "enabled": false, "visible": true, "optional": false, "id": "org-tags"}, {"name": "Apollo Dashboard", "default": true, "enabled": true, "visible": false, "optional": false, "id": "apollo"}, {"name": "Org Upstream Updates", "default": false, "enabled": false, "visible": false, "optional": false, "id": "org-has-code"}], "user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "dev_sites_count": 2, "id": "11111111-1111-1111-1111-111111111111", "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}' -- - request: - method: GET - url: 'https://onebox/api/site-names/behat-tests' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:58 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 1c18a5a0-6646-11e6-9aa2-6117a1834a25 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"id": "11111111-1111-1111-1111-111111111111", "name": "behat-tests"}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111?site_state=true' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:59 GMT' - Content-Type: application/json - Content-Length: '3516' - Connection: keep-alive - X-Pantheon-Trace-Id: 1c7bad30-6646-11e6-ad69-5f4c0d99879d - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"allow_cacheserver": false, "allow_indexserver": false, "created": 1471385341, "created_by_user_id": "11111111-1111-1111-1111-111111111111", "framework": "wordpress", "holder_id": "11111111-1111-1111-1111-111111111111", "holder_type": "user", "last_code_push": {"timestamp": "2016-08-19T19:05:16", "user_uuid": "11111111-1111-1111-1111-111111111111"}, "migration_completed_at": 1471632727, "migration_started_at": 1471634332, "name": "behat-tests", "owner": "11111111-1111-1111-1111-111111111111", "php_version": "55", "preferred_zone": "chios", "service_level": "free", "upstream": {"url": "https://github.com/pantheon-systems/WordPress", "product_id": "e8fe8550-1ab9-4964-8838-2b9abdccf4bf", "branch": "master"}, "label": "behat tests", "id": "11111111-1111-1111-1111-111111111111", "holder": {"profile": {"utm_term": "", "invites_to_nonuser": 4, "seen_first_time_user_popover": true, "utm_content": "/", "experiments": {"welcome_video": "shown"}, "full_name": "Dev User", "pullFromLive": false, "utm_device": "", "initial_identity_strategy": null, "utm_campaign": "pantheon.io (organic)", "tracking_first_site_create": 1428723370, "verify": "037eadb020d51ccddba9e06a64908c98", "tracking_first_code_push": 1428811227, "google_adwords_account_registered_sent": 1428707350, "invites_to_user": 8, "utm_medium": "", "job_function": "developer", "tracking_first_workflow_in_live": 1428811293, "tracking_first_team_invite": 1436464837, "firstname": "Dev", "invites_to_site": 12, "lastname": "User", "pda_campaign": null, "utm_source": "https://www.bing.com/search?setmkt=en-US&q=pantheon+san+francisco", "google_adwords_pushed_code_sent": 1428811242, "last-org-spinup": "none", "web_services_business": null, "initial_identity_name": null, "guilty_of_abuse": null, "invites_sent": 12, "tracking_first_site_upgrade": 1437784612, "google_adwords_paid_for_site_sent": 1438018300, "modified": 1458174494, "maxdevsites": 2, "lead_type": "", "organization": " Pantheon Systems, Inc"}, "id": "11111111-1111-1111-1111-111111111111", "email": "devuser@pantheon.io"}, "settings": {"allow_domains": false, "max_num_cdes": 10, "stunnel": false, "replica_verification_strategy": "pt-heartbeat", "owner": "11111111-1111-1111-1111-111111111111", "secure_runtime_access": false, "pingdom": 0, "guilty_of_abuse": null, "created_by_user_id": "11111111-1111-1111-1111-111111111111", "failover_appserver": 0, "migration_started_at": 1471634332, "migration_completed_at": 1471632727, "support_plan": "regular_support", "on_server_development": false, "drush_version": 5, "label": "behat tests", "appserver": 1, "allow_read_slaves": false, "indexserver": 1, "php_version": "55", "php_channel": "stable", "allow_cacheserver": false, "ssl_enabled": null, "min_backups": 0, "service_level": "free", "dedicated_ip": null, "dbserver": 1, "framework": "wordpress", "upstream": {"url": "https://github.com/pantheon-systems/WordPress", "product_id": "e8fe8550-1ab9-4964-8838-2b9abdccf4bf", "branch": "master"}, "cacheserver": 1, "allow_indexserver": false, "preferred_zone": "chios", "pingdom_chance": 0, "holder_id": "11111111-1111-1111-1111-111111111111", "name": "behat-tests", "created": 1471385341, "max_backups": 0, "holder_type": "user", "number_allow_domains": 0, "pingdom_manually_enabled": false, "last_code_push": {"timestamp": "2016-08-19T19:05:16", "user_uuid": "11111111-1111-1111-1111-111111111111"}}, "base_domain": null, "attributes": {"label": "behat tests"}, "add_ons": [{"id": "NewRelic", "label": "New Relic"}]}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:49:59 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 1cc36490-6646-11e6-ad69-5f4c0d99879d - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"dev": {"watchers": 1, "diffstat": {}, "on_server_development": true, "environment_created": 1471385341, "dns_zone": "pantheonsite.io", "randseed": "DAWMHE2LTF12P5H2DY3URABPX8N16US9", "styx_cluster": "styx-03.pantheon.io", "target_ref": "refs/heads/master", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "drush_version": 8}, "test": {"environment_created": 1471385344, "dns_zone": "pantheonsite.io", "randseed": "2768L88WYTOBH0MIQPOB6KY42C3L4WZI", "target_ref": "refs/tags/pantheon_test_2", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "styx_cluster": "styx-03.pantheon.io"}, "live": {"environment_created": 1471385345, "dns_zone": "pantheonsite.io", "randseed": "0G8KI1O49B4E19HYWI5YUYREYHP0A4TJ", "target_ref": "refs/tags/pantheon_live_1", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "1fdf194d3d7a0c930a4f118e1398412765320328", "styx_cluster": "styx-02.pantheon.io"}}' -- - request: - method: POST - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments/dev/workflows' - headers: - Host: onebox - Expect: null - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: post - absolute_url: '' - json: '' - Accept: null - body: '{"type":"delete_environment_setting","params":{"key":"php_version"}}' - response: - status: - http_version: '1.1' - code: '202' - message: Accepted - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:50:02 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 1d26e150-6646-11e6-ad69-5f4c0d99879d - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - body: '{"environment_id": "dev", "params": {"key": "php_version"}, "role": "owner", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636200.987559, "task_ids": ["1d2cc2b4-6646-11e6-998b-bc764e1022a9", "1d642934-6646-11e6-998b-bc764e1022a9", "1d66eade-6646-11e6-998b-bc764e1022a9", "1d679b14-6646-11e6-998b-bc764e1022a9", "1d6834de-6646-11e6-998b-bc764e1022a9", "1d68e2b2-6646-11e6-998b-bc764e1022a9", "1d697272-6646-11e6-998b-bc764e1022a9", "1d69effe-6646-11e6-998b-bc764e1022a9"], "trace_id": "1d26e150-6646-11e6-ad69-5f4c0d99879d", "type": "delete_environment_setting", "user_id": "11111111-1111-1111-1111-111111111111", "waiting_for_task_id": "1d642934-6646-11e6-998b-bc764e1022a9", "id": "1d2b6d6a-6646-11e6-998b-bc764e1022a9", "key": "1471633200", "keep_forever": false, "phase": "started", "queued_time": null, "run_time": null, "created_at": 1471636200.450801, "reason": "", "environment": "dev", "final_task_id": null, "result": "succeeded", "total_time": null, "active_description": "Deleting \"dev\" setting", "description": "Delete \"dev\" setting", "step": 2, "has_operation_log_output": false, "number_of_tasks": 8, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:1d26e150-6646-11e6-ad69-5f4c0d99879d%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:45:00.450801Z%27,mode:quick,to:%27now%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}, "user_email": "devuser@pantheon.io", "waiting_for_task": {"allow_concurrent": true, "environment": "dev", "fn_name": "queue_jenkins_task", "params": {"host": "localhost", "task_type": "converge_hostname", "job_id": "1d642934-6646-11e6-998b-bc764e1022a9", "hostname_id": "dev-behat-tests.pantheonsite.io"}, "site_id": "11111111-1111-1111-1111-111111111111", "trace_id": "1d26e150-6646-11e6-ad69-5f4c0d99879d", "workflow_id": "1d2b6d6a-6646-11e6-998b-bc764e1022a9", "id": "1d642934-6646-11e6-998b-bc764e1022a9", "key": "1471633200", "responses": [], "queued_time": null, "host": "localhost", "result": "succeeded", "phase": "created", "created_at": 1471636200.82261, "run_time": null, "total_time": null, "reason": "", "error_details": "", "internal_reason": "", "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:1d26e150-6646-11e6-ad69-5f4c0d99879d%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:45:00.822610Z%27,mode:quick,to:%27now%27))", "type": "converge_hostname", "build_url": null, "messages": {}}}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/workflows/1d2b6d6a-6646-11e6-998b-bc764e1022a9' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: get - absolute_url: '' - options: get - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:50:02 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 1e9676e0-6646-11e6-8f86-018f7b210ab3 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"environment_id": "dev", "params": {"key": "php_version"}, "role": "owner", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636200.987559, "task_ids": ["1d2cc2b4-6646-11e6-998b-bc764e1022a9", "1d642934-6646-11e6-998b-bc764e1022a9", "1d66eade-6646-11e6-998b-bc764e1022a9", "1d679b14-6646-11e6-998b-bc764e1022a9", "1d6834de-6646-11e6-998b-bc764e1022a9", "1d68e2b2-6646-11e6-998b-bc764e1022a9", "1d697272-6646-11e6-998b-bc764e1022a9", "1d69effe-6646-11e6-998b-bc764e1022a9"], "trace_id": "1d26e150-6646-11e6-ad69-5f4c0d99879d", "type": "delete_environment_setting", "user_id": "11111111-1111-1111-1111-111111111111", "waiting_for_task_id": "1d642934-6646-11e6-998b-bc764e1022a9", "id": "1d2b6d6a-6646-11e6-998b-bc764e1022a9", "key": "11111111-1111-1111-1111-111111111111", "keep_forever": false, "phase": "started", "queued_time": null, "run_time": null, "created_at": 1471636200.450801, "reason": "", "environment": "dev", "final_task_id": null, "result": "succeeded", "total_time": null, "active_description": "Deleting \"dev\" setting", "description": "Delete \"dev\" setting", "step": 2, "has_operation_log_output": false, "number_of_tasks": 8, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:1d26e150-6646-11e6-ad69-5f4c0d99879d%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:45:00.450801Z%27,mode:quick,to:%27now%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1428707345, "destination_organization_id": null, "is_registered": true, "created_organization_id": null, "password": "SCRUBBED", "email": "devuser@pantheon.io"}, "user_email": "devuser@pantheon.io", "waiting_for_task": {"allow_concurrent": true, "build": {"url": "job/converge_hostname/38404/", "number": 38404, "phase": "STARTED", "estimated_duration": 1010, "duration": 0, "full_url": "https://162.209.95.126:8090/jenkins/job/converge_hostname/38404/"}, "environment": "dev", "fn_name": "queue_jenkins_task", "params": {"host": "localhost", "task_type": "converge_hostname", "job_id": "1d642934-6646-11e6-998b-bc764e1022a9", "hostname_id": "dev-behat-tests.pantheonsite.io"}, "queued_at": 1471636201.040328, "responses": [{"code": 201, "body": "Successfully queued converge_hostname", "error_details": "", "internal_reason": ""}], "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471636202.506877, "trace_id": "1d26e150-6646-11e6-ad69-5f4c0d99879d", "workflow_id": "1d2b6d6a-6646-11e6-998b-bc764e1022a9", "id": "1d642934-6646-11e6-998b-bc764e1022a9", "key": "1471633200", "queued_time": 1.4665489196777344, "host": "localhost", "result": "succeeded", "phase": "started", "created_at": 1471636200.82261, "run_time": null, "total_time": null, "reason": "", "error_details": "", "internal_reason": "", "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:1d26e150-6646-11e6-ad69-5f4c0d99879d%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-19T19:45:00.822610Z%27,mode:quick,to:%27now%27))", "type": "converge_hostname", "build_url": "https://162.209.95.126:8090/jenkins/job/converge_hostname/38404/", "messages": {"2016-08-19T19:50:02.890082": {"message": "Successfully queued converge_hostname", "level": "INFO"}}}}' -- - request: - method: GET - url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/environments/dev' - headers: - Host: onebox - Accept-Encoding: null - User-Agent: 'Terminus/0.11.4 (php_version=7.0.6&script=boot-fs.php)' - Content-type: application/json - Authorization: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - headers: 'Bearer 11111111-1111-1111-1111-111111111111:1b587c44-6646-11e6-b1a5-bc764e1022a9:KA4f5RlIx2oWFq0pEYFZH' - verify: '1' - method: get - absolute_url: '' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: nginx - Date: 'Fri, 19 Aug 2016 19:51:03 GMT' - Content-Type: application/json - Transfer-Encoding: chunked - Connection: keep-alive - X-Pantheon-Trace-Id: 42a5e110-6646-11e6-8f86-018f7b210ab3 - X-Frame-Options: deny - Access-Control-Allow-Methods: GET - Access-Control-Allow-Headers: 'Origin, Content-Type, Accept' - Cache-Control: no-cache - Pragma: no-cache - Vary: Accept-Encoding - Strict-Transport-Security: max-age=31536000 - body: '{"watchers": 1, "diffstat": {}, "on_server_development": true, "environment_created": 1471385341, "dns_zone": "pantheonsite.io", "randseed": "DAWMHE2LTF12P5H2DY3URABPX8N16US9", "styx_cluster": "styx-03.pantheon.io", "target_ref": "refs/heads/master", "lock": {"username": null, "password": null, "locked": false}, "target_commit": "cb3f7bbe08bbdc0d2f68e3fa66655c860ec6c24b", "drush_version": 8}'