Skip to content

Commit

Permalink
add Foreman_proxy::Sshloglevel type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 19, 2022
1 parent 5f2c688 commit e8624b7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/type_aliases/sshloglevel_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require 'spec_helper'

describe 'Foreman_proxy::Sshloglevel' do
# from ssh_config(5)
known_log_levels = %w[
QUIET
FATAL
ERROR
INFO
VERBOSE
DEBUG
DEBUG1
DEBUG2
DEBUG3
]
it { is_expected.to allow_values(*known_log_levels) }
it { is_expected.not_to allow_value(nil) }
it { is_expected.not_to allow_value('all') }
it { is_expected.not_to allow_value('loud') }
end
2 changes: 2 additions & 0 deletions types/sshloglevel.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The possible openssh LogLevel values
type Foreman_proxy::Sshloglevel = Enum['QUIET', 'FATAL', 'ERROR', 'INFO', 'VERBOSE', 'DEBUG', 'DEBUG1', 'DEBUG2', 'DEBUG3']

0 comments on commit e8624b7

Please sign in to comment.