Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
omnibus-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
d49d3fc36f8d
Commit
d49d3fc36f8d
authored
5 years ago
by
Igor Wiedler
Browse files
Options
Downloads
Patches
Plain Diff
redis: add spec for lazyfree
parent
b18378b3e0fd
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/chef/redis/redis_spec.rb
+20
-0
20 additions, 0 deletions
spec/chef/redis/redis_spec.rb
with
20 additions
and
0 deletions
spec/chef/redis/redis_spec.rb
+
20
−
0
View file @
d49d3fc3
...
...
@@ -23,6 +23,8 @@
expect
(
content
).
to
match
(
/^maxmemory-samples 5/
)
expect
(
content
).
to
match
(
/^tcp-backlog 511/
)
expect
(
content
).
to
match
(
/^rename-command KEYS ""$/
)
expect
(
content
).
to
match
(
/^lazyfree-lazy-eviction no$/
)
expect
(
content
).
to
match
(
/^lazyfree-lazy-expire no$/
)
expect
(
content
).
not_to
match
(
/^slaveof/
)
}
end
...
...
@@ -215,6 +217,24 @@
end
end
context
'with lazy eviction enabled'
do
before
do
stub_gitlab_rb
(
redis:
{
lazyfree_lazy_eviction:
true
}
)
end
it
'creates redis config with lazyfree-lazy-eviction yes'
do
expect
(
chef_run
).
to
render_file
(
'/var/opt/gitlab/redis/redis.conf'
)
.
with_content
{
|
content
|
expect
(
content
).
to
match
(
/^lazyfree-lazy-eviction yes$/
)
expect
(
content
).
to
match
(
/^lazyfree-lazy-expire no$/
)
}
end
end
context
'with redis disabled'
do
before
do
stub_gitlab_rb
(
redis:
{
enable:
false
})
...
...
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