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 11, 2023
1 parent c4bb969 commit 3e71287
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/lazylead/task/assignment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ class AssignmentTest < Lazylead::Test
test "alert in case assignee changed by not authorized person" do
Lazylead::Smtp.new.enable
Task::Assignment.new.run(
NoAuthJira.new("https://jira.spring.io"),
NoAuthJira.new("https://jira.mongodb.org"),
Postman.new,
Opts.new(
"to" => "lead@company.com",
"from" => "ll@company.com",
"jql" => "key in ('DATAJDBC-480') and assignee is not empty",
"jql" => "key=JAVA-4190",
"allowed" => "tom,mike,bob",
"subject" => "Assignment: How dare you?",
"template" => "lib/messages/illegal_assignee_change.erb"
)
)
assert_email "Assignment: How dare you?",
"DATAJDBC-480", "01-Apr", "Minor", "Mark Paluch", "tom,mike,bob",
"EntityInstantiators"
"JAVA-4190", "Jeffrey Yemin", "Valentin Kavalenka",
"Client side builder for operators supported by $search", "Nihal Jain"
end
end
end
9 changes: 5 additions & 4 deletions test/lazylead/task/fix_version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,22 @@ class FixVersionTest < Lazylead::Test
test "alert in case fixvesion changed by not authorized person" do
Lazylead::Smtp.new.enable
Task::FixVersion.new.run(
NoAuthJira.new("https://jira.spring.io"),
NoAuthJira.new("https://jira.mongodb.org"),
Postman.new,
Opts.new(
"to" => "lead@company.com",
"from" => "ll@company.com",
"jql" => "key in ('DATAJDBC-480') and fixVersion is not empty",
"jql" => "key=JAVA-5020",
"allowed" => "tom,mike,bob",
"fields" => "description,reporter,priority,summary,created,fixVersions",
"subject" => "FixVersion: How dare you?",
"template" => "lib/messages/illegal_fixversion_change.erb"
)
)
assert_email "FixVersion: How dare you?",
"DATAJDBC-480", "01-Apr-2020", "Minor", "Mark Paluch", "tom,mike,bob",
"EntityInstantiators"
"JAVA-5020", "Minor - P4", "4.10.0", "16-Jun-2023 04:53:47 PM",
"Replace @Evolving with @Sealed where appropriate and possible",
"tom,mike,bob"
end
end
end

0 comments on commit 3e71287

Please sign in to comment.