Commit graph

963 commits

Author SHA1 Message Date
Dominik Sander
06a6251de6 Merge pull request #1528 from dsander/fix-random-mqtt-failures
Use a random port in MQTT::FakeServer
2016-05-31 10:18:52 +02:00
Dominik Sander
69cfabc5bf Use a random port in MQTT::FakeServer
Fixes random spec failures on CI which happended when the hard coded port was already in use.
2016-05-30 11:45:59 +02:00
Pablo Carranza
74a3c88608 Add time tracking to http status agent (#1517)
* Add time tracking to http status agent

* Replace time tracking to monotonic

* Add tests for time tracker
2016-05-29 19:13:40 -04:00
Dominik Sander
d573b98a68 Show recently received events in dry run modal 2016-05-18 09:58:49 +02:00
Dominik Sander
a6a06c1cd1 Separate feature and non feature spec runs on travis
Add database_cleaner gem
Set up coveralls parralel builds in travisci
Require capybara_helper in rails_helper to make clear it affects all tests
2016-05-12 10:03:23 +02:00
Dominik Sander
af1c830d7f Ensure to only send supported agent connections
When switching between Agent types in the in the new Agent form we need to clear the select fields values (targets,
receivers, control targets) when the current Agent does not support the respective method.
2016-05-12 10:03:18 +02:00
Dominik Sander
53d4559f6e Improve agent and scenario forms
Allow to configure agent event target
Make select2 agent tags clickable
2016-05-12 09:15:49 +02:00
George Opritescu
ad4a15d6da Added button to toggle visibility of disabled agents (#1464)
Added button to toggle visibility of disabled agents

* Moved index code to separate file

* Added cookie to allow toggling visibility of disabled agents

* Filter disabled agents based on cookie

* Removed js and use correct cookie name

* CR changes
2016-05-10 22:52:30 +02:00
Dominik Sander
104dc29169 Use version 1.1 of twitter stream API endpoint
The v1 endpoint was discontinued at the end of april.

 #1490
2016-05-09 23:16:34 +02:00
Irfan Charania
50aff67a8a Make itunes compatible optional (#1411)
* Make itunes compatible optional

in generated xml

* Add tests + migration

* Description change

as per comment
2016-04-30 13:44:09 -07:00
Jack Wilson
414743556f Twitter retweet agent (#1181)
* Agent to retweet all received tweet events

* Cache twitter rest client

* Update description, remove unused local

* Makes context strings more readable, style consistency

* to_h is not implemented in ruby 2.0

* In error case, include all agent_ids and event_ids

* Adds capability to favorite tweets

This restructures the Agent slightly to allow for retweeting and
favoriting. It is possible to do both at the same time.

- Renames the Agent from TwitterRetweetAgent
to TwitterActionAgent.
- Specs refactored
2016-04-25 20:16:37 -07:00
Enfop
9d2626dd4f validate agent option json on form submit (#1434)
* validate agent option json on form submit

check for textarea#agent_options after form submit

* added some specs

trailing new lines

fix specs
2016-04-25 20:04:06 -07:00
Dominik Sander
ea95a9d6c3 Merge pull request #1446 from kreuzwerker/feature/scenario-deletion
Allow user to delete the scenarios agents with it
2016-04-24 10:28:51 +02:00
Dominik Sander
98fae41421 Allow user to delete the scenarios agents with it 2016-04-23 22:18:02 +02:00
Andrew Cantino
491dace4a0 Merge pull request #1394 from Jngai/uploadcredentialsfeature
new credentials uploading feature
2016-04-21 20:13:47 -07:00
Judy Ngai
26e776db4d new credentials uploading feature
rm req json, not saving file, styled button a bit

skinny controller fat model

minor spacing mistake

build user credentials fixed mass assignment issue

undo mass assignment variables

spec in progress

spec

fixed exception issue

json fixtures

slight change to test

added test to assert credentials created for current user only

added tests to satisfy requirements

refined import method

added status 422

saving two lines of code

one more test

fixed small bug, words changed

minor change in test

styled file upload button

deleted unnecessary spec

switched to modal format

made modal more presentable

minor change to modal

fix indentation issue

ok nested correctly within form tag
2016-04-21 07:16:28 -04:00
Dominik Sander
dd76553662 Merge pull request #1435 from omniscopeio/capybara-stability
Improves wait time when writing test you expect to fail
2016-04-20 08:49:53 +02:00
Andrew Cantino
eae83df68c Merge pull request #1418 from albertsun/feature/twilio-receive-texts
Twilio receive text message agent
2016-04-19 19:55:01 -07:00
Will Read
8a7f3fe4f1 Removes unnecessary screenshot helper
Switches timeout based on being on slow CI, or fast dev boxes

- can use Capybara's built in `save_and_open_screenshot`
2016-04-18 21:00:46 -07:00
Will Read
7c9fe17493 2 seconds may have been a bit tight, increasing to 5 2016-04-17 16:45:49 -07:00
Will Read
771afe9cdf Improves wait time when writing test you expect to fail
- reduces default wait time from 60 seconds to 2 seconds
- makes use of Capybara's built in polling negative matchers to increase test stability
- adds a helper method to take a screenshot and open it to help understand what's happening in a test
2016-04-17 15:56:57 -07:00
Albert Sun
29d4691781 An agent for creating events from text messages received from Twilio
don't need securerandom

don't assume ENV['DOMAIN'] exists

update TwilioReceiveTextAgent to use new receive_web_request method signature
2016-04-17 16:38:29 -04:00
Dominik Sander
73bcd927e3 Do not run/enqueue event propagation when a AgentPropagateJob is already enqueued
Fixes the creation of duplicated events caused by Agent.receive! running multiple times concurrently.
2016-04-17 17:15:50 +02:00
Andrew Cantino
ee504ba067 Merge pull request #1415 from albertsun/feature/request-headers-in-web-request
Pass request headers to receive_web_request
2016-04-15 20:55:57 -07:00
Albert Sun
5da40533c6 modify receive_web_request to take either 1 or 3 arguments 2016-04-13 11:19:19 -04:00
Andrew Cantino
35bbd2a492 Merge pull request #1423 from Jngai/queuedjobpatch
retry queued job patch
2016-04-12 21:07:42 -07:00
Judy Ngai
d8df930da0 retry queued job patch
quick rewording

changed glyphicon

skip failed jobs locked at and using update all

spec ready as well

rm without protection modify spec

rm unnecessary lines

work on delayed job feature

fixed render json

switched from ok to success

revert render json change for other methods

checking in work

test passed

reverting render and saving a line of code

add back sign in an user

run this on github

altered format.json

rm comment

prevent ajax error head no content
2016-04-12 11:04:10 -04:00
Akinori MUSHA
4280bdc5e0 Merge pull request #1340 from cantino/post_agent_downcase_response_headers
Downcase header names in Events that PostAgent emits
2016-04-12 16:31:04 +09:00
Akinori MUSHA
b095317e4c Add an option event_headers_style to PostAgent
It is defaulted to `capitalized`, normalizing emitted headers by
capitalizing the names so downstream agents don't need to bother with
the letter cases.

Previously, the style of header names in an emitted event would vary
depending on the server and the backend HTTP library.  Most notably, the
`net_http` backend downcases header names whereas other backends do not.

For backward compatibility, preexisting PostAgents are automatically
configured to have `event_headers_style` set to `raw` via migration.
2016-04-12 16:08:19 +09:00
Albert Sun
9ddb4e97de receive_web_request can also now receive the ActionDispatch request object 2016-04-11 18:16:24 -04:00
Albert Sun
58f6307e2c Pass request headers through to agents that implement receive_web_request 2016-04-11 18:16:24 -04:00
Dominik Sander
15622e2c7e Merge pull request #1404 from omniscopeio/onboarding
Sets the new user up with an example set of agents
2016-04-11 09:28:56 +02:00
Will Read
98f50de06b Sets the new user up with an example set of agents
- gives them a place to start from
- leverages existing code to import scenarios
- adds test coverage to seeds to ensure sees can run multiple times against the same db as is the case for Docker
- adds env variable to set if importing is turned on for new user
- adds env variable to point to a custom scenario for new users
2016-04-10 16:03:21 -07:00
Albert Sun
11363b4b03 update twilio agent spec to ensure proper twilio rest api calls are made 2016-04-09 10:49:00 -04:00
Akinori MUSHA
90cd771c5a Merge pull request #1386 from cantino/simplify_log_format
Simplify the log format for Dry Run
2016-04-05 20:44:30 +09:00
Akinori MUSHA
2f932f810e Fix the basic auth spec to support all backends 2016-04-05 16:36:32 +09:00
Dominik Sander
8bb715382f Merge pull request #1402 from dsander/post-agent-raw
PostAgent: allow sending arbitrary string data
2016-04-04 11:48:19 +02:00
Dominik Sander
eecd67c378 PostAgent: allow sending arbitrary string data
When `content_type` contains a MIME type and `payload` is not a Hash the string in `payload` will be send as the HTTP
body and `content_type` is send as the `Content-Type` header.

 #1361
2016-04-04 10:41:39 +02:00
Andrew Cantino
85d901b403 Merge pull request #1381 from tomknig/telegram_agent
add telegram agent
2016-03-30 19:35:55 -07:00
Andrew Cantino
abbc04daa0 Minor grammar 2016-03-29 21:20:45 -07:00
Judy Ngai
519ce8853b grammar change and changed spec accordingly 2016-03-29 10:28:51 -04:00
Akinori MUSHA
5d63aea08e Update expected log in the specs 2016-03-29 19:51:25 +09:00
Tom König
c54b68ddff remove dependency to telegram client; migrate the according code to httmultiparty 2016-03-29 08:48:48 +02:00
Judy Ngai
d465cbffb5 added round trip option to google flight agent 2016-03-28 15:24:28 -04:00
Tom König
adc1dee4fb implement basic telegram agent 2016-03-27 15:56:31 +02:00
Judy Ngai
a4ecf7d305 Revert "deleted related adioso files"
This reverts commit c206369fdc.
2016-03-25 10:57:59 -04:00
Judy Ngai
5fb7dd5d88 changed to form configurable, name changed, small clarifications 2016-03-24 16:17:33 -04:00
Judy Ngai
c206369fdc deleted related adioso files 2016-03-24 10:13:50 -04:00
Judy Ngai
c02f32207e qpx agent 2016-03-23 17:49:45 -04:00
Judy Ngai
1d07bca221 checking in progress on flight agent 2016-03-23 17:49:45 -04:00