Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nickserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
nickserver
Commits
c0410a5a
There was a problem fetching the pipeline summary.
Unverified
Commit
c0410a5a
authored
7 years ago
by
azul
Browse files
Options
Downloads
Patches
Plain Diff
fiX: tests need different names, warnings
parent
3f777b4c
Branches
Branches containing commit
No related tags found
1 merge request
!18
Fetch keys from web key directory
Pipeline
#
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/nickserver/reel_server.rb
+1
-1
1 addition, 1 deletion
lib/nickserver/reel_server.rb
test/functional/sample_test.rb
+3
-3
3 additions, 3 deletions
test/functional/sample_test.rb
test/support/http_stub_helper.rb
+1
-2
1 addition, 2 deletions
test/support/http_stub_helper.rb
with
5 additions
and
6 deletions
lib/nickserver/reel_server.rb
+
1
−
1
View file @
c0410a5a
...
...
@@ -43,7 +43,7 @@ module Nickserver
handler
.
respond_to
params
(
request
),
request
.
headers
end
end
rescue
StandardError
=>
e
rescue
StandardError
request
.
respond
500
,
"{}"
end
...
...
This diff is collapsed.
Click to expand it.
test/functional/sample_test.rb
+
3
−
3
View file @
c0410a5a
...
...
@@ -18,19 +18,19 @@ class SampleTest < FunctionalTest
# assert_lookup_status 400, 'invalid'
# end
def
test_nicknym
def
test_nicknym
_success
assert_lookup_status
200
,
'test@mail.bitmask.net'
end
# Regression Tests
# #3 handle missing A records
def
test_nicknym
def
test_nicknym
_handles_missing_a_record
assert_lookup_status
404
,
'postmaster@cs.ucl.ac.uk'
end
# platform/#8674 handle nonexisting domains
def
test_nicknym
def
test_nicknym
_handles_missing_domain
assert_lookup_status
404
,
'postmaster@now-dont-you-dare-register-this-domain.coop'
end
...
...
This diff is collapsed.
Click to expand it.
test/support/http_stub_helper.rb
+
1
−
2
View file @
c0410a5a
...
...
@@ -27,8 +27,7 @@ module HttpStubHelper
def
stub_couch_response
(
uid
,
response
=
{})
query
=
"
\?
key=
#{
"%22
#{
uid
}
%22"
}
&reduce=false"
stub_http_get
/
#{
Regexp
.
escape
(
config
.
couch_url
)
}
.*
#{
query
}
/
,
response
stub_http_get
(
/
#{
Regexp
.
escape
(
config
.
couch_url
)
}
.*
#{
query
}
/
,
response
)
end
private
...
...
This diff is collapsed.
Click to expand it.
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