-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AL-1672] - env:deploy now uses the --note option when initializing test/live #1965
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4a3657f
Fixed behat test fixture to include appropriate data, making the test…
ea26dd5
Updated env:deploy unit test so it expects with- and without-message …
963a5ea
Updated Environment::initializeBindings() unit test so it expects wit…
0a40102
Updated Environment::initializeBindings() to accept a params array fo…
dd721b7
Added behat test for variant no-message version, duplicate fixture
c30a148
Updated env:deploy to pass the note option to initializeBindings
9b1547d
Updated CHANGELOG
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,7 +232,7 @@ | |
absolute_url: '' | ||
json: '' | ||
Accept: null | ||
body: '{"type":"create_environment","params":{"annotation":"Create the test environment","clone_database":{"from_environment":"dev"},"clone_files":{"from_environment":"dev"}}}' | ||
body: '{"type":"create_environment","params":{"annotation":"Deploy from Terminus","clone_database":{"from_environment":"dev"},"clone_files":{"from_environment":"dev"}}}' | ||
response: | ||
status: | ||
http_version: '1.1' | ||
|
@@ -251,7 +251,7 @@ | |
Cache-Control: no-cache | ||
Pragma: no-cache | ||
Vary: Accept-Encoding | ||
body: '{"environment_id": "test", "user_id": "11111111-1111-1111-1111-111111111111", "keep_forever": true, "site_id": "11111111-1111-1111-1111-111111111111", "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "params": {"clone_files": {"from_environment": "dev"}, "annotation": "Create the test environment", "clone_database": {"from_environment": "dev"}}, "task_ids": ["702b12f4-697f-11e6-af37-bc764e11227e", "702d30e8-697f-11e6-af37-bc764e11227e", "702e77fa-697f-11e6-af37-bc764e11227e", "702f812c-697f-11e6-af37-bc764e11227e", "70307f46-697f-11e6-af37-bc764e11227e", "70318df0-697f-11e6-af37-bc764e11227e", "70329cfe-697f-11e6-af37-bc764e11227e", "704327f4-697f-11e6-af37-bc764e11227e", "7044c00a-697f-11e6-af37-bc764e11227e"], "role": "owner", "type": "create_environment", "id": "7023046a-697f-11e6-af37-bc764e11227e", "key": "1471989600", "waiting_for_task_id": "702b12f4-697f-11e6-af37-bc764e11227e", "phase": "created", "queued_time": null, "run_time": null, "created_at": 1471990674.448497, "reason": "", "environment": "test", "final_task_id": null, "result": null, "total_time": null, "active_description": "Create environment \"test\"", "description": "Create environment \"test\"", "step": 1, "has_operation_log_output": false, "number_of_tasks": 9, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.448497Z%27,mode:quick,to:%27now%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1463779128, "destination_organization_id": null, "is_registered": true, "created_organization_id": "11111111-1111-1111-1111-111111111111", "password": "SCRUBBED", "email": "[email protected]"}, "user_email": "[email protected]", "waiting_for_task": {"allow_concurrent": true, "environment": "test", "fn_name": "queue_jenkins_task", "params": {"host": "localhost", "task_type": "converge_hostname", "job_id": "702b12f4-697f-11e6-af37-bc764e11227e", "hostname_id": "test-behat-tests.onebox.pantheon.io"}, "site_id": "11111111-1111-1111-1111-111111111111", "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "workflow_id": "7023046a-697f-11e6-af37-bc764e11227e", "id": "702b12f4-697f-11e6-af37-bc764e11227e", "key": "1471989600", "responses": [], "queued_time": null, "host": "localhost", "result": null, "phase": "created", "created_at": 1471990674.501298, "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:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.501298Z%27,mode:quick,to:%27now%27))", "type": "converge_hostname", "build_url": null, "messages": {}}}' | ||
body: '{"environment_id": "test", "user_id": "11111111-1111-1111-1111-111111111111", "keep_forever": true, "site_id": "11111111-1111-1111-1111-111111111111", "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "params": {"clone_files": {"from_environment": "dev"}, "annotation": "Deploy from Terminus", "clone_database": {"from_environment": "dev"}}, "task_ids": ["702b12f4-697f-11e6-af37-bc764e11227e", "702d30e8-697f-11e6-af37-bc764e11227e", "702e77fa-697f-11e6-af37-bc764e11227e", "702f812c-697f-11e6-af37-bc764e11227e", "70307f46-697f-11e6-af37-bc764e11227e", "70318df0-697f-11e6-af37-bc764e11227e", "70329cfe-697f-11e6-af37-bc764e11227e", "704327f4-697f-11e6-af37-bc764e11227e", "7044c00a-697f-11e6-af37-bc764e11227e"], "role": "owner", "type": "create_environment", "id": "7023046a-697f-11e6-af37-bc764e11227e", "key": "1471989600", "waiting_for_task_id": "702b12f4-697f-11e6-af37-bc764e11227e", "phase": "created", "queued_time": null, "run_time": null, "created_at": 1471990674.448497, "reason": "", "environment": "test", "final_task_id": null, "result": null, "total_time": null, "active_description": "Create environment \"test\"", "description": "Create environment \"test\"", "step": 1, "has_operation_log_output": false, "number_of_tasks": 9, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.448497Z%27,mode:quick,to:%27now%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1463779128, "destination_organization_id": null, "is_registered": true, "created_organization_id": "11111111-1111-1111-1111-111111111111", "password": "SCRUBBED", "email": "[email protected]"}, "user_email": "[email protected]", "waiting_for_task": {"allow_concurrent": true, "environment": "test", "fn_name": "queue_jenkins_task", "params": {"host": "localhost", "task_type": "converge_hostname", "job_id": "702b12f4-697f-11e6-af37-bc764e11227e", "hostname_id": "test-behat-tests.onebox.pantheon.io"}, "site_id": "11111111-1111-1111-1111-111111111111", "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "workflow_id": "7023046a-697f-11e6-af37-bc764e11227e", "id": "702b12f4-697f-11e6-af37-bc764e11227e", "key": "1471989600", "responses": [], "queued_time": null, "host": "localhost", "result": null, "phase": "created", "created_at": 1471990674.501298, "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:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.501298Z%27,mode:quick,to:%27now%27))", "type": "converge_hostname", "build_url": null, "messages": {}}}' | ||
- | ||
request: | ||
method: GET | ||
|
@@ -287,4 +287,4 @@ | |
Pragma: no-cache | ||
Vary: Accept-Encoding | ||
Strict-Transport-Security: max-age=31536000 | ||
body: '{"environment_id": "test", "keep_forever": true, "params": {"clone_files": {"from_environment": "dev"}, "annotation": "Create the test environment", "clone_database": {"from_environment": "dev"}}, "role": "owner", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471990674.711835, "task_ids": ["702b12f4-697f-11e6-af37-bc764e11227e", "702d30e8-697f-11e6-af37-bc764e11227e", "702e77fa-697f-11e6-af37-bc764e11227e", "702f812c-697f-11e6-af37-bc764e11227e", "70307f46-697f-11e6-af37-bc764e11227e", "70318df0-697f-11e6-af37-bc764e11227e", "70329cfe-697f-11e6-af37-bc764e11227e", "704327f4-697f-11e6-af37-bc764e11227e", "7044c00a-697f-11e6-af37-bc764e11227e"], "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "type": "create_environment", "user_id": "11111111-1111-1111-1111-111111111111", "id": "7023046a-697f-11e6-af37-bc764e11227e", "key": "11111111-1111-1111-1111-111111111111", "waiting_for_task_id": "702b12f4-697f-11e6-af37-bc764e11227e", "phase": "started", "queued_time": null, "run_time": null, "created_at": 1471990674.448497, "reason": "", "environment": "test", "final_task_id": null, "result": "succeeded", "total_time": null, "active_description": "Deploying code to \"test\", and cloning files from \"dev\", and cloning database from \"dev\"", "description": "Create environment \"test\"", "step": 1, "has_operation_log_output": false, "number_of_tasks": 9, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.448497Z%27,mode:quick,to:%27now%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1463779128, "destination_organization_id": null, "is_registered": true, "created_organization_id": "11111111-1111-1111-1111-111111111111", "password": "SCRUBBED", "email": "[email protected]"}, "user_email": "[email protected]", "waiting_for_task": {"allow_concurrent": true, "build": {"url": "job/converge_hostname/705/", "number": 705, "phase": "STARTED", "estimated_duration": 1153, "duration": 0, "full_url": "https://162.242.168.42:8090/jenkins/job/converge_hostname/705/"}, "environment": "test", "fn_name": "queue_jenkins_task", "params": {"host": "localhost", "task_type": "converge_hostname", "job_id": "702b12f4-697f-11e6-af37-bc764e11227e", "hostname_id": "test-behat-tests.onebox.pantheon.io"}, "queued_at": 1471990674.71195, "responses": [{"code": 201, "body": "Successfully queued converge_hostname", "error_details": "", "internal_reason": ""}], "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471990675.946164, "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "workflow_id": "7023046a-697f-11e6-af37-bc764e11227e", "id": "702b12f4-697f-11e6-af37-bc764e11227e", "key": "1471989600", "queued_time": 1.2342138290405273, "host": "localhost", "result": "succeeded", "phase": "started", "created_at": 1471990674.501298, "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:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.501298Z%27,mode:quick,to:%27now%27))", "type": "converge_hostname", "build_url": "https://162.242.168.42:8090/jenkins/job/converge_hostname/705/", "messages": {"2016-08-23T22:17:56.403707": {"message": "Successfully queued converge_hostname", "level": "INFO"}}}}' | ||
body: '{"environment_id": "test", "keep_forever": true, "params": {"clone_files": {"from_environment": "dev"}, "annotation": "Deploy from Terminus", "clone_database": {"from_environment": "dev"}}, "role": "owner", "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471990674.711835, "task_ids": ["702b12f4-697f-11e6-af37-bc764e11227e", "702d30e8-697f-11e6-af37-bc764e11227e", "702e77fa-697f-11e6-af37-bc764e11227e", "702f812c-697f-11e6-af37-bc764e11227e", "70307f46-697f-11e6-af37-bc764e11227e", "70318df0-697f-11e6-af37-bc764e11227e", "70329cfe-697f-11e6-af37-bc764e11227e", "704327f4-697f-11e6-af37-bc764e11227e", "7044c00a-697f-11e6-af37-bc764e11227e"], "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "type": "create_environment", "user_id": "11111111-1111-1111-1111-111111111111", "id": "7023046a-697f-11e6-af37-bc764e11227e", "key": "11111111-1111-1111-1111-111111111111", "waiting_for_task_id": "702b12f4-697f-11e6-af37-bc764e11227e", "phase": "started", "queued_time": null, "run_time": null, "created_at": 1471990674.448497, "reason": "", "environment": "test", "final_task_id": null, "result": "succeeded", "total_time": null, "active_description": "Deploying code to \"test\", and cloning files from \"dev\", and cloning database from \"dev\"", "description": "Create environment \"test\"", "step": 1, "has_operation_log_output": false, "number_of_tasks": 9, "trace_log_url": "https://app.logz.io/#/dashboard/kibana?kibanaRoute=discover%3F_a%3D(query:(query_string:(analyze_wildcard:!t,query:%27trace_id:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.448497Z%27,mode:quick,to:%27now%27))", "user": {"user_id": "11111111-1111-1111-1111-111111111111", "created_at": 1463779128, "destination_organization_id": null, "is_registered": true, "created_organization_id": "11111111-1111-1111-1111-111111111111", "password": "SCRUBBED", "email": "[email protected]"}, "user_email": "[email protected]", "waiting_for_task": {"allow_concurrent": true, "build": {"url": "job/converge_hostname/705/", "number": 705, "phase": "STARTED", "estimated_duration": 1153, "duration": 0, "full_url": "https://162.242.168.42:8090/jenkins/job/converge_hostname/705/"}, "environment": "test", "fn_name": "queue_jenkins_task", "params": {"host": "localhost", "task_type": "converge_hostname", "job_id": "702b12f4-697f-11e6-af37-bc764e11227e", "hostname_id": "test-behat-tests.onebox.pantheon.io"}, "queued_at": 1471990674.71195, "responses": [{"code": 201, "body": "Successfully queued converge_hostname", "error_details": "", "internal_reason": ""}], "site_id": "11111111-1111-1111-1111-111111111111", "started_at": 1471990675.946164, "trace_id": "701dc0e0-697f-11e6-9ba8-733939e0aeaf", "workflow_id": "7023046a-697f-11e6-af37-bc764e11227e", "id": "702b12f4-697f-11e6-af37-bc764e11227e", "key": "1471989600", "queued_time": 1.2342138290405273, "host": "localhost", "result": "succeeded", "phase": "started", "created_at": 1471990674.501298, "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:701dc0e0-697f-11e6-9ba8-733939e0aeaf%27)))%26_g%3D(refreshInterval:(display:Off,pause:!f,value:0),time:(from:%272016-08-23T22:12:54.501298Z%27,mode:quick,to:%27now%27))", "type": "converge_hostname", "build_url": "https://162.242.168.42:8090/jenkins/job/converge_hostname/705/", "messages": {"2016-08-23T22:17:56.403707": {"message": "Successfully queued converge_hostname", "level": "INFO"}}}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just so I'm getting my PHP right -
annotation
will be overridden in the$params
if it exists, this first array is acting as the default?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. I had to look array_merge() up before using it, myself.