Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Added one more test, for Event::create(), that uses most every input …
Browse files Browse the repository at this point in the history
…parameter
  • Loading branch information
jpinkham committed Jun 8, 2013
1 parent eebc455 commit 0985d71
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions t/Event/40-create.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use WebService::DataDog;
eval 'use DataDogConfig';
$@
? plan( skip_all => 'Local connection information for DataDog required to run tests.' )
: plan( tests => 15 );
: plan( tests => 16 );

my $config = DataDogConfig->new();

Expand Down Expand Up @@ -187,7 +187,22 @@ lives_ok(
text => "Text goes here",
);
},
'Post valid event to stream.',
'Post valid event to stream - [ title, text ].',
);

lives_ok(
sub
{
$response = $event_obj->create(
title => "title goes here(" . time() . ")",
text => "Text goes here",
date_happened => '1370663582',
priority => 'low',
source_type_name => 'jenkins',
alert_type => 'info',
);
},
'Post valid event to stream - [ title, text, date_happened, priority, source_rtype_name, alert_type ].',
);


0 comments on commit 0985d71

Please sign in to comment.