root: test /steps and /evals
This commit is contained in:
parent
3a03784af6
commit
8ae2daece7
|
@ -11,7 +11,12 @@ my $ctx = test_context();
|
||||||
|
|
||||||
Catalyst::Test->import('Hydra');
|
Catalyst::Test->import('Hydra');
|
||||||
|
|
||||||
my $builds = $ctx->makeAndEvaluateJobset(
|
my $doneBuilds = $ctx->makeAndEvaluateJobset(
|
||||||
|
expression => "basic.nix",
|
||||||
|
build => 1
|
||||||
|
);
|
||||||
|
|
||||||
|
my $queuedBuilds = $ctx->makeAndEvaluateJobset(
|
||||||
expression => "basic.nix"
|
expression => "basic.nix"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -44,7 +49,7 @@ subtest "/queue" => sub {
|
||||||
};
|
};
|
||||||
|
|
||||||
subtest "/search" => sub {
|
subtest "/search" => sub {
|
||||||
my $build = $builds->{"empty_dir"};
|
my $build = $doneBuilds->{"empty_dir"};
|
||||||
my ($build_output_out) = $build->buildoutputs->find({ name => "out" });
|
my ($build_output_out) = $build->buildoutputs->find({ name => "out" });
|
||||||
subtest "searching for projects" => sub {
|
subtest "searching for projects" => sub {
|
||||||
my $response = request(GET "/search?query=${\$build->project->name}");
|
my $response = request(GET "/search?query=${\$build->project->name}");
|
||||||
|
@ -85,4 +90,14 @@ subtest "/status" => sub {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
subtest "/steps" => sub {
|
||||||
|
my $response = request(GET '/steps');
|
||||||
|
is($response->code, 200, "The page showing steps 200's.");
|
||||||
|
};
|
||||||
|
|
||||||
|
subtest "/evals" => sub {
|
||||||
|
my $response = request(GET '/evals');
|
||||||
|
is($response->code, 200, "The page showing evals 200's.");
|
||||||
|
};
|
||||||
|
|
||||||
done_testing;
|
done_testing;
|
||||||
|
|
Loading…
Reference in a new issue