Title: [opsview] [9673] Added quotes in login string.
- Revision
- 9673
- Author
- pknight
- Date
- 2012-07-31 14:26:57 +0100 (Tue, 31 Jul 2012)
Log Message
Added quotes in login string.
Modified Paths
Modified: trunk/opsview-web/t/lib/Opsview/TestUtils.pm
===================================================================
--- trunk/opsview-web/t/lib/Opsview/TestUtils.pm 2012-07-31 12:37:50 UTC (rev 9672)
+++ trunk/opsview-web/t/lib/Opsview/TestUtils.pm 2012-07-31 13:26:57 UTC (rev 9673)
@@ -82,7 +82,7 @@
witter("Logging in as $user") if ( $ENV{VERBOSE_TESTS} );
$mech->add_header( 'content-type' => 'text/x-data-dumper' );
$mech->post( "http://localhost:3000/rest/login",
- Content => "{ username => $user, password => $pass }" );
+ Content => "{ username => '$user', password => '$pass' }" );
is( $mech->status, 200, "Logged in to REST okay" )
|| die( "Rest login failure. Full content: " . $mech->content );
my $content = eval $mech->content;
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins