Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform
Manage
Activity
Members
Labels
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
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
Show more breadcrumbs
micah
platform
Commits
01a398fd
Verified
Commit
01a398fd
authored
7 years ago
by
elijah
Browse files
Options
Downloads
Patches
Plain Diff
skip soledad db test for now (closes
#8899
)
parent
13854eb3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/server-tests/white-box/couchdb.rb
+9
-3
9 additions, 3 deletions
tests/server-tests/white-box/couchdb.rb
with
9 additions
and
3 deletions
tests/server-tests/white-box/couchdb.rb
+
9
−
3
View file @
01a398fd
...
@@ -51,20 +51,26 @@ class CouchDB < LeapTest
...
@@ -51,20 +51,26 @@ class CouchDB < LeapTest
end
end
end
end
#
# TODO: test for the existance of 'soledad' user if soledad service is enabled.
#
def
test_04_Do_ACL_users_exist?
def
test_04_Do_ACL_users_exist?
acl_users
=
[
'_design/_auth'
,
'leap_mx'
,
'nickserver'
,
'soledad'
,
'webapp'
,
'replication'
]
acl_users
=
[
'_design/_auth'
,
'leap_mx'
,
'nickserver'
,
'webapp'
,
'replication'
]
url
=
couchdb_backend_url
(
"/_users/_all_docs"
,
:username
=>
'admin'
)
url
=
couchdb_backend_url
(
"/_users/_all_docs"
,
:username
=>
'admin'
)
assert_get
(
url
)
do
|
body
|
assert_get
(
url
)
do
|
body
|
response
=
JSON
.
parse
(
body
)
response
=
JSON
.
parse
(
body
)
assert_equal
acl_users
.
count
,
response
[
'total_rows'
]
actual_users
=
response
[
'rows'
].
map
{
|
row
|
row
[
'id'
].
sub
(
/^org.couchdb.user:/
,
''
)
}
actual_users
=
response
[
'rows'
].
map
{
|
row
|
row
[
'id'
].
sub
(
/^org.couchdb.user:/
,
''
)
}
actual_users
.
delete
(
'soledad'
)
# for now, ignore user 'soledad'
assert_equal
acl_users
.
sort
,
actual_users
.
sort
assert_equal
acl_users
.
sort
,
actual_users
.
sort
end
end
pass
pass
end
end
#
# TODO: test for the existance of 'shared' db if soledad service is enabled.
#
def
test_05_Do_required_databases_exist?
def
test_05_Do_required_databases_exist?
dbs_that_should_exist
=
[
"customers"
,
"identities"
,
"keycache"
,
"
shared"
,
"
tickets"
,
"users"
,
"tmp_users"
]
dbs_that_should_exist
=
[
"customers"
,
"identities"
,
"keycache"
,
"tickets"
,
"users"
,
"tmp_users"
]
dbs_that_should_exist
<<
"tokens_
#{
rotation_suffix
}
"
dbs_that_should_exist
<<
"tokens_
#{
rotation_suffix
}
"
dbs_that_should_exist
<<
"sessions_
#{
rotation_suffix
}
"
dbs_that_should_exist
<<
"sessions_
#{
rotation_suffix
}
"
dbs_that_should_exist
.
each
do
|
db_name
|
dbs_that_should_exist
.
each
do
|
db_name
|
...
...
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