Open gt3389b opened 7 years ago
Here is the response from the chatops.post_result:
{
"tasks": [
{
"name": "format_execution_result",
"workflow": null,
"created_at": "2016-09-30T11:06:09.471022+00:00",
"updated_at": "2016-09-30T11:06:10.552014+00:00",
"state": "succeeded",
"result": {
"exit_code": 0,
"result": {
"message": [
"\nAction google.get_search_results completed.\nstatus : succeeded\nexecution: 57ee471bcc27d80009566c42\n\nresult :\n--------\nresult : [{\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.speedtest.net/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggUMAA&usg=AFQjCNGXsvN-v4izEgZFzfJ69ibVmskIvg\", \"link\": null, \"name\": \"Speedtest.net by Ookla - The Global Broadband Speed Test\", \"description\": \"Test your Internet connection bandwidth to locations around the world with this \\ninteractive broadband speed test from Ookla.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://www.test.com/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggaMAE&usg=AFQjCNFv81BNTFv07pRUSOCLn6uWFrHWVA\", \"link\": null, \"name\": \"Platform to Create Organizational Testing and Certifications\", \"description\": \"Test.com is a software solution for you to easily create, administer and manage \\ntraining courses and certification tests, in up to 22 languages.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://en.wikipedia.org/wiki/Test&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFgggMAI&usg=AFQjCNEgql2lOPVYuNb_MgNRadVc9A6yiA\", \"link\": null, \"name\": \"Test - Wikipedia, the free encyclopedia\", \"description\": \"Test, TEST or Tester may refer to: Test (assessment), an assessment intended to \\nmeasure the respondents' knowledge or other abilities; Medical test, to detect,\\u00a0...\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://www.speakeasy.net/speedtest/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggrMAM&usg=AFQjCNEKZbyZpCtXwaHkY80QgsodD2PAIw\", \"link\": null, \"name\": \"Speakeasy Speed Test - Powered by MegaPath | MegaPath\", \"description\": \"Speed Test, Explained. How Does our Speed Test Work? The Speakeasy Speed \\nTest checks your connection's download and upload speeds from within your\\u00a0...\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://speedtest.xfinity.com/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggxMAQ&usg=AFQjCNF1OSL1KMqdcaLGCq4mH6bEWGVLkw\", \"link\": null, \"name\": \"XFINITY Speed Test\", \"description\": \"XFINITY Speed Test tests your internet connection speed.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://www.16personalities.com/free-personality-test&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFgg2MAU&usg=AFQjCNE48BJUnyWNfUF8AE2wiTQ1B6LOtg\", \"link\": null, \"name\": \"Free Personality Test | 16Personalities\", \"description\": \"Free personality test - take it to find out why our readers say that this personality \\ntest is so accurate, \\u201cit's a little bit creepy.\\u201d No registration required!\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.act.org/the-act/testprep&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFgg7MAY&usg=AFQjCNEjoHHPmKLKqlKeYfC4L7nra_ZEOA\", \"link\": null, \"name\": \"ACT Test Preparation - Practice Test Questions and Test Prep Tools ...\", \"description\": \"Prepare to take the ACT Test with online prep, test prep tools, the question of the \\nday, QOTD, and other tools to get you ready for test day.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.humanmetrics.com/cgi-win/jtypes1.htm&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFghAMAc&usg=AFQjCNG3m1GZ7hxxtjcAYA2--9BhZ9qF5Q\", \"link\": null, \"name\": \"Personality test based on Jung and Briggs Myers typology\", \"description\": \"This free personality test is based on Carl Jung's and Isabel Briggs Myers' ... of \\nthe personality assessment questionnaire, you will: Jung Typology Test\\u2122.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.springer.com/statistics/journal/11749&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFghGMAg&usg=AFQjCNHenE4F5o5Q2XWSfiPwqodo0gJzYg\", \"link\": null, \"name\": \"TEST \\u2013 An Official Journal of the Spanish Society of Statistics and ...\", \"description\": \"TEST is an international journal of statistics and probability, sponsored by the \\nSpanish Society of Statistics and Operations Research. Its scope includes both\\u00a0...\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.cdc.gov/zika/symptoms/diagnosis.html&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFghMMAk&usg=AFQjCNHyYTtyR0d5ZKvbzqGw9RrF84YigQ\", \"link\": null, \"name\": \"Testing for Zika | Zika virus | CDC\", \"description\": \"Sep 2, 2016 ... Diagnosis of Zika is based on a person's recent travel history, symptoms, and test \\nresults. A blood or urine test can confirm a Zika infection.\"}]\n\n"
]
},
"stderr": "",
"stdout": ""
},
"id": "format_execution_result",
"execution_id": "57ee4721bb51540009e2f194"
},
{
"name": "post_message",
"workflow": null,
"created_at": "2016-09-30T11:06:10.557067+00:00",
"updated_at": "2016-09-30T11:06:11.641986+00:00",
"state": "succeeded",
"result": {
"whisper": false,
"message": "\nAction google.get_search_results completed.\nstatus : succeeded\nexecution: 57ee471bcc27d80009566c42\n\nresult :\n--------\nresult : [{\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.speedtest.net/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggUMAA&usg=AFQjCNGXsvN-v4izEgZFzfJ69ibVmskIvg\", \"link\": null, \"name\": \"Speedtest.net by Ookla - The Global Broadband Speed Test\", \"description\": \"Test your Internet connection bandwidth to locations around the world with this \\ninteractive broadband speed test from Ookla.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://www.test.com/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggaMAE&usg=AFQjCNFv81BNTFv07pRUSOCLn6uWFrHWVA\", \"link\": null, \"name\": \"Platform to Create Organizational Testing and Certifications\", \"description\": \"Test.com is a software solution for you to easily create, administer and manage \\ntraining courses and certification tests, in up to 22 languages.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://en.wikipedia.org/wiki/Test&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFgggMAI&usg=AFQjCNEgql2lOPVYuNb_MgNRadVc9A6yiA\", \"link\": null, \"name\": \"Test - Wikipedia, the free encyclopedia\", \"description\": \"Test, TEST or Tester may refer to: Test (assessment), an assessment intended to \\nmeasure the respondents' knowledge or other abilities; Medical test, to detect,\\u00a0...\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://www.speakeasy.net/speedtest/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggrMAM&usg=AFQjCNEKZbyZpCtXwaHkY80QgsodD2PAIw\", \"link\": null, \"name\": \"Speakeasy Speed Test - Powered by MegaPath | MegaPath\", \"description\": \"Speed Test, Explained. How Does our Speed Test Work? The Speakeasy Speed \\nTest checks your connection's download and upload speeds from within your\\u00a0...\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://speedtest.xfinity.com/&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFggxMAQ&usg=AFQjCNF1OSL1KMqdcaLGCq4mH6bEWGVLkw\", \"link\": null, \"name\": \"XFINITY Speed Test\", \"description\": \"XFINITY Speed Test tests your internet connection speed.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=https://www.16personalities.com/free-personality-test&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFgg2MAU&usg=AFQjCNE48BJUnyWNfUF8AE2wiTQ1B6LOtg\", \"link\": null, \"name\": \"Free Personality Test | 16Personalities\", \"description\": \"Free personality test - take it to find out why our readers say that this personality \\ntest is so accurate, \\u201cit's a little bit creepy.\\u201d No registration required!\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.act.org/the-act/testprep&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFgg7MAY&usg=AFQjCNEjoHHPmKLKqlKeYfC4L7nra_ZEOA\", \"link\": null, \"name\": \"ACT Test Preparation - Practice Test Questions and Test Prep Tools ...\", \"description\": \"Prepare to take the ACT Test with online prep, test prep tools, the question of the \\nday, QOTD, and other tools to get you ready for test day.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.humanmetrics.com/cgi-win/jtypes1.htm&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFghAMAc&usg=AFQjCNG3m1GZ7hxxtjcAYA2--9BhZ9qF5Q\", \"link\": null, \"name\": \"Personality test based on Jung and Briggs Myers typology\", \"description\": \"This free personality test is based on Carl Jung's and Isabel Briggs Myers' ... of \\nthe personality assessment questionnaire, you will: Jung Typology Test\\u2122.\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.springer.com/statistics/journal/11749&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFghGMAg&usg=AFQjCNHenE4F5o5Q2XWSfiPwqodo0gJzYg\", \"link\": null, \"name\": \"TEST \\u2013 An Official Journal of the Spanish Society of Statistics and ...\", \"description\": \"TEST is an international journal of statistics and probability, sponsored by the \\nSpanish Society of Statistics and Operations Research. Its scope includes both\\u00a0...\"}, {\"thumb\": null, \"google_link\": \"http://www.google.com/url?q=http://www.cdc.gov/zika/symptoms/diagnosis.html&sa=U&ved=0ahUKEwjypNOm-bbPAhVI2SYKHX4zCd8QFghMMAk&usg=AFQjCNHyYTtyR0d5ZKvbzqGw9RrF84YigQ\", \"link\": null, \"name\": \"Testing for Zika | Zika virus | CDC\", \"description\": \"Sep 2, 2016 ... Diagnosis of Zika is based on a person's recent travel history, symptoms, and test \\nresults. A blood or urine test can confirm a Zika infection.\"}]\n\n",
"user": "gt3389b",
"channel": "general",
"extra": {}
},
"id": "post_message",
"execution_id": "57ee4722bb51540009e2f197"
}
]
}
Another data point. I can execute a core.http (http://ip:8081/hubot/st2) to successfully send messages to the chatops service -> slack:
{
"body": "{\"status\": \"completed\", \"msg\": \"Message posted successfully\"}",
"status_code": 200,
"parsed": false,
"headers": {
"Content-Length": "61",
"X-Powered-By": "hubot/hubot",
"Connection": "keep-alive",
"ETag": "W/\"3d-9ae+BqgcuUKvriYwW9N84A\"",
"Date": "Fri, 30 Sep 2016 13:31:20 GMT",
"Content-Type": "text/html; charset=utf-8"
}
}
@enykeev I've almost successfully gotten this project running. The only thing I'm failing on now is upon action completion, the chatops.post_message isn't getting back to the slack room.
I can send a post directly to the chatops api in the chatops container: curl -X POST -H "Content-Type:application/json" -d '{"channel":"general", "message":"test"}' http://localhost:8181/hubot/st2 {"status": "completed", "msg": "Message posted successfully"}
And I see the message come into the slack room 'general.' So I know the plumbing is working on that end.
The actionrunner also shows the task (chatops.post_result) as successfully completed.
My guess is the actionrunner isn't sending the message to the right endpoint. But I'm struggling debugging the issue. Where do I find the URL that is used? What container does it run from (I'm assuming st2box_actionrunner)?
Any advice will be helpful!!! This is my last piece!!