Skip to content

Commit

Permalink
#671: We have to migrate to https://jira.mongodb.org for E2E testing …
Browse files Browse the repository at this point in the history
…purposes
  • Loading branch information
dgroup committed Aug 6, 2023
1 parent 2c02b98 commit 23ac769
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions test/lazylead/task/accuracy/score_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def fields
end

test "detect non-system reporter" do
assert_equal "grussell",
assert_equal "tszming",
Score.new(
NoAuthJira.new("https://jira.spring.io")
.issues("key=INT-4116", expand: "changelog")
NoAuthJira.new("https://jira.mongodb.org")
.issues("key=JAVA-151", expand: "changelog")
.first,
Opts.new("system-users" => "abilan")
).reporter
Expand Down
8 changes: 4 additions & 4 deletions test/lazylead/task/alert/alertif_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ class AlertIfTest < Lazylead::Test
test "last change to Done" do
Smtp.new.enable
Lazylead::Task::AlertIf.new.run(
NoAuthJira.new("https://jira.spring.io"),
NoAuthJira.new("https://jira.mongodb.org"),
Postman.new,
Opts.new(
"to_status" => "Done",
"to_status" => "Closed",
"to" => "[email protected]",
"from" => "[email protected]",
"rules" => "Lazylead::ToStatus",
"jql" => "key=XD-3064",
"jql" => "key=JAVA-500",
"subject" => "[LL] alert if",
"template" => "lib/messages/alertif.erb"
)
)
assert_email "[LL] alert if",
"XD-3064", "Critical", "Done", "Glenn Renfro", "Thomas Risberg", "HdfsMongoDB"
"JAVA-500", "Major - P3", "Closed", "Uladzimir Mihura", "Jeffrey Yemin", "m/r out:db and out:sharded options"
end
end
end
8 changes: 4 additions & 4 deletions test/lazylead/task/alert/changed_to_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

module Lazylead
class ToStatusTest < Lazylead::Test
test "last change to Done" do
test "last change to Closed" do
assert Lazylead::ToStatus.new.passed(
NoAuthJira.new("https://jira.spring.io")
.issues("key=XD-3064", Opts.new.jira_defaults.merge(expand: "changelog"))
NoAuthJira.new("https://jira.mongodb.org")
.issues("key=JAVA-151", Opts.new.jira_defaults.merge(expand: "changelog"))
.first,
Opts.new("to_status" => "Done")
Opts.new("to_status" => "Closed")
)
end
end
Expand Down

0 comments on commit 23ac769

Please sign in to comment.