Test whether incorrect passwords are rejected

[?]
Nov 6, 2013, 3:10 PM
MMHOJIGD2SP24TV2TYGNLW7OUQ3ISSKRVCSWNDMXEKUXIJH247TAC

Dependencies

  • [2] ZIIXICG7 Make the outputs' outpaths available via the Build JSON API
  • [3] 4VYSDP4I Add eager fetching of relations and enable that for jobset->jobsetinputs
  • [4] 2DGIP6L4 Cleanup build serialization
  • [5] LZVO64YG Merge in the first bits of the API work
  • [6] 7ECJWNVX Cleanup Project model
  • [7] YI3BZG5N Cleanup Jobset serialization
  • [8] MQYHIUEE Cleanup eval serialization
  • [9] SYLVCTT6 Start api cleanup with the User model

Change contents

  • replacement in tests/api-test.pl at line 3
    [3.36481][2.165:195]()
    use Test::Simple tests => 16;
    [3.36481]
    [3.36511]
    use Test::Simple tests => 17;
  • edit in tests/api-test.pl at line 20
    [3.36937]
    [3.36937]
    my $result = request_json({ uri => "/login", method => "POST", data => { username => "root", password => "wrong" } });
    ok($result->code() == 403, "Incorrect password rejected.");