Akinori MUSHA
8645323dfe
Expose target
to CommanderAgent in templating
...
This allows a CommanderAgent to control only some of the targets
depending on the agent attributes. For example, you can update the
threshold value of a target agent only if the current value is
lower (or higher) than the suggested new value.
2017-07-09 03:34:05 +09:00
Andrew Cantino
e5776f206e
Make feature specs more robust ( #1917 )
2017-02-27 11:25:24 -08:00
Akinori MUSHA
fe35df8752
Add a new option template
to WebsiteAgent
...
If given, it is used as a Liquid template for each event created by the
Agent, instead of directly emitting the results of extraction as events.
An existing spec needs to be fixed because WebsiteAgent now has the
`template` option, which may not be a hash of hashes.
2016-10-29 20:40:51 +09:00
Dominik Sander
663eebc080
Add multipart file upload to PostAgent
...
This allows the PostAgent to receive `file_pointer` events and upload the data to a website.
2016-09-19 10:39:48 +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
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
38f1044078
Add LocalFileAgent and introduce concept to handle files
...
The idea is to have source agents (`LocalFile` and `S3Agent` for now), which just emit a "file_pointer" and consuming
agents (`ReadFile` and `CsvAgent`) which get access to an `IO` object to actually access the file contents. This way we
do not have to pass megabytes of data through the database and the consuming agents can work with relatively unlimited
file sizes.
2016-03-18 20:43:28 +01:00
Andrew Cantino
1aaad3b7ef
Merge pull request #1209 from darrencauthon/ping_agent
...
Http Status agent
2016-02-26 12:07:31 -08:00
Darren Cauthon
18b0107e50
Add the http status agent.
2016-02-25 07:12:47 -06:00
Andrew Cantino
69e224e49d
Avoid raising an error on missing credential, validation should catch it
2016-02-14 10:59:04 -08:00
Dominik Sander
a958b15f18
Add no_bulk_receive! option to ensure each event is processed individually
...
no_bulk_receive! ensures that agents which connect to an external only receive
one event per job this ensures that failed and retried jobs do not run twice
for the same event.
Fixes #1226
2016-02-07 23:37:43 +01:00
Andrew Cantino
7e70d507b4
Allow Liquid logic in recipients too
2016-01-18 22:27:45 -08:00
Andrew Cantino
7887fb3815
allow Liquid in the recipients option
2016-01-15 17:32:04 -08:00
Akinori MUSHA
d6264bcdc4
Call control!
instead of check
2015-11-06 17:51:20 +09:00
Brian Petro
87a58827ff
Use deep_merge instead of merge to allow configuring Agent.options within a nested hash. Useful when configuring DataOutputAgent template>item options with CommanderAgent. Also fix SchedulerAgent 'check' typo.
2015-11-05 19:49:30 -05:00
Dustin Miller
c5766d2086
Update for rspec3 rails_helpers config, fix shoulda matchers
2015-10-20 18:50:52 -05:00
Andrew Cantino
6cc46b44cc
Merge pull request #917 from cantino/mock_web_request
...
stub spec that was making real HTTP call
2015-07-16 18:02:49 -04:00
Andrew Cantino
a61bcc60cb
stub spec that was making real HTTP call
2015-07-15 16:57:39 -04:00
Dominik Sander
f05fc4c148
Allow agents using WebRequestConcern to disable URL encoding
2015-07-14 22:26:18 +02:00
Dominik Sander
66b4adad9a
Added line_break tag to insert \n into liquid interpolated string
2015-02-17 23:52:19 +01:00
Andrew Cantino
49a94f0f7a
Switch to boolify and document disable_ssl_verification
2015-01-19 20:51:56 -08:00
Vitor Baptista
3680306a1f
[ #648 ] Move tests to shared_examples/web_request_concern.rb
...
This way every agent that implements the WebRequestConcern will run these
tests as well.
2014-12-10 15:32:18 -03:00
Andrew Cantino
2ea63f7acb
Merge pull request #612 from cantino/commander_agent_can_configure
...
Commander agent can configure
2014-11-07 15:05:28 -06:00
Andrew Cantino
225d73aca3
Merge branch 'master' into openshift2
...
Conflicts:
bin/setup_heroku
2014-11-02 14:31:36 -08:00
Andrew Cantino
5bbb13a406
Allow CommanderAgents to configure targets.
2014-11-02 13:33:10 -08:00
Akinori MUSHA
ca05d40498
MqttAgent: Ignore a retained message previously received.
...
This should fix the problem where MqttAgent creates an event from the
same last message every time it runs if it is retained by the server.
2014-10-14 21:07:29 +09:00
Akinori MUSHA
31c5570f9c
Make action
interpolated.
2014-10-09 20:18:39 +09:00
Akinori MUSHA
2d790b54ea
Make action
a mandatory option in preparation for making it interpolated.
2014-10-09 20:08:59 +09:00
Akinori MUSHA
c1a2325d40
Fix a bug where the disable
action did not work in SchedulerAgent.
...
Bad specs are fixed and specs that should be common among agents that
include AgentControllerConcern have been extracted to
spec/support/shared_examples/agent_controller_concern.rb.
2014-10-09 20:08:59 +09:00
Andrew Cantino
92aadb7892
fix spec
2014-10-05 01:39:50 -07:00
Akinori MUSHA
5031cbbbac
Migrate to RSpec's new expect syntax using Transpec.
...
We set `config.infer_spec_type_from_file_location!`, so the command I
ran is `transpec --no-explicit-spec-type`.
2014-10-03 16:16:15 +09:00
Akinori MUSHA
2b493f548b
Add specs for interpolation_context#[]=
and interpolate_with
.
2014-09-03 14:46:53 +09:00
Akinori MUSHA
7ecbe78dff
Set a global default User-Agent value via an environment variable.
...
Names starting with HTTP_ should be avoided in the context of Web app,
hence the rather verbose name `DEFAULT_HTTP_USER_AGENT`.
2014-08-12 16:46:59 +09:00
Dominik Sander
1f20cf25b9
Fixed TZ issue in EventDrop spec and removed the last deprecation warning
...
Added bundler caching on travis ci
2014-08-09 21:15:05 +02:00
Andrew Cantino
dfa71d1f45
upgrade RSpec
2014-08-08 19:59:19 -07:00
Andrew Cantino
e746bee3dc
Merge pull request #410 from knu/provide_access_to_agent
...
EventFormattingAgent: Provide access to upstream agent
2014-07-29 13:08:43 -07:00
Andrew Cantino
5183f3d257
Merge pull request #407 from cantino/rss_agent
...
adding a basic RSS agent
2014-07-25 21:24:00 -07:00
Akinori MUSHA
c1f114d56b
Make {{agent}} universally accessible from any agent.
...
To implement this, EventDrop is introduced to represent an Event object
in interpolation.
2014-07-24 15:48:09 +09:00
Andrew Cantino
f4df522f2f
adding a basic RSS agent
2014-07-20 17:19:56 -07:00
Andrew Cantino
93dacae42c
allow email agents to accept an optional "recipients" list to override the account default
2014-07-20 14:18:47 -07:00
Daniel O'Connor
46606455c1
Add VCR support, for more complex mocking.
2014-06-29 02:54:42 +09:30
Andrew Cantino
fbcede8649
Merge remote-tracking branch 'origin/master' into interpolated_options
...
Conflicts:
app/models/agent.rb
spec/models/agent_spec.rb
2014-06-18 20:30:17 -07:00
Andrew Cantino
f3ffb33a7d
Merge remote-tracking branch 'origin/master' into scenarios
2014-06-07 12:26:18 -07:00
Andrew Cantino
64564eb120
Importing of Scenarios now works, creating any needed Agents by global guid
2014-06-04 22:26:56 -07:00
Daniel O'Connor
b8604777b6
Add initial specs
2014-06-04 17:42:48 +09:30
Daniel O'Connor
325d2eace6
Add fake MQTT server from ruby-mqtt gem
2014-06-04 16:45:32 +09:30
Andrew Cantino
620acffa5a
initial commit
2013-03-09 22:36:12 -08:00