Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sympa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mr. Evoltech
sympa
Commits
88a00ed9
Commit
88a00ed9
authored
Aug 12, 2016
by
Mr. Evoltech
Browse files
Options
Downloads
Patches
Plain Diff
Aadding test cases for 03_disable_latest_and_active_lists.patch
parent
65584fb8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/test_sympa.rb
+24
-0
24 additions, 0 deletions
tools/test_sympa.rb
with
24 additions
and
0 deletions
tools/test_sympa.rb
+
24
−
0
View file @
88a00ed9
...
@@ -70,6 +70,30 @@ describe "wwsympa" do
...
@@ -70,6 +70,30 @@ describe "wwsympa" do
page
.
parser
.
css
(
'#ErrorMsg'
).
to_s
.
must_match
/INTERNAL SERVER ERROR/
page
.
parser
.
css
(
'#ErrorMsg'
).
to_s
.
must_match
/INTERNAL SERVER ERROR/
end
end
# 03_disable_latest_and_active_lists.patch
# rss requests to active_lists and latest_lists crash wwsympa.
# First test /active_lists?for=1&count=1, it should return an
# empty list, even after the list above is added
it
"004 can not list active lists"
do
sts
=
SympaTestSuite
.
new
sts
.
login
page
=
sts
.
browser
.
get
(
sts
.
url
+
'/active_lists?for=1&count=1'
)
page
.
parser
.
css
(
'table.listOfItems'
).
to_s
.
wont_match
/
#{
$list
}
/
end
# 03_disable_latest_and_active_lists.patch
# rss requests to active_lists and latest_lists crash wwsympa.
# Second test /latest_lists?for=1&count=1, it should return an
# empty list, even after the list above is added
it
"005 can not list latest lists"
do
sts
=
SympaTestSuite
.
new
sts
.
login
page
=
sts
.
browser
.
get
(
sts
.
url
+
'/latest_lists?for=1&count=1'
)
page
.
parser
.
css
(
'table.listOfItems'
).
to_s
.
wont_match
/
#{
$list
}
/
end
# This is for issue #1187: https://labs.riseup.net/code/issues/1187
# This is for issue #1187: https://labs.riseup.net/code/issues/1187
# it "can not add name on the user preferences page" do
# it "can not add name on the user preferences page" do
# page = @browser.post(@url, {
# page = @browser.post(@url, {
...
...
This diff is collapsed.
Click to expand it.
Mr. Evoltech
@evoltech
·
Aug 12, 2016
Author
Owner

Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment