File: redis_administration_spec.rb

package info (click to toggle)
puppet-module-arioch-redis 11.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: ruby: 2,314; sh: 10; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'spec_helper'

describe 'redis::administration' do
  context 'should set kernel and system values' do
    it do
      is_expected.to contain_sysctl('vm.overcommit_memory').with(
        'ensure' => 'present',
        'value' => '1'
      )
    end

    it do
      is_expected.to contain_sysctl('net.core.somaxconn').with(
        'ensure' => 'present',
        'value' => '65535'
      )
    end
  end
end