forked from lix-project/hydra
Remove unused ActiveJobs source
This commit is contained in:
parent
14e418cafa
commit
edb88ef452
|
@ -604,8 +604,6 @@ sub makeQueries {
|
||||||
QUERY
|
QUERY
|
||||||
);
|
);
|
||||||
|
|
||||||
makeSource("ActiveJobs$name", "select distinct project, jobset, job from Builds where isCurrent = 1 $constraint");
|
|
||||||
|
|
||||||
makeSource(
|
makeSource(
|
||||||
"LatestSucceeded$name",
|
"LatestSucceeded$name",
|
||||||
<<QUERY
|
<<QUERY
|
||||||
|
|
|
@ -13,7 +13,7 @@ foreach my $source (@sources) {
|
||||||
my $title = "Basic select query for $source";
|
my $title = "Basic select query for $source";
|
||||||
if ($source eq "SchemaVersion" || $source eq "NrBuilds") {
|
if ($source eq "SchemaVersion" || $source eq "NrBuilds") {
|
||||||
ok(scalar($db->resultset($source)->all) == 1, $title);
|
ok(scalar($db->resultset($source)->all) == 1, $title);
|
||||||
} elsif( $source !~ m/^(LatestSucceeded|JobStatus|ActiveJobs)/) {
|
} elsif( $source !~ m/^(LatestSucceeded|JobStatus)/) {
|
||||||
ok(scalar($db->resultset($source)->all) == 0, $title);
|
ok(scalar($db->resultset($source)->all) == 0, $title);
|
||||||
} else {
|
} else {
|
||||||
ok(scalar($db->resultset($source)->search({},{ bind => ["", "", ""] })) == 0, $title);
|
ok(scalar($db->resultset($source)->search({},{ bind => ["", "", ""] })) == 0, $title);
|
||||||
|
|
Loading…
Reference in a new issue