forked from voxpupuli/puppet-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests and docs for
debug_connections
`Stdlib::IP::Address` also added to the type alias so that it accepts IPv6 networks.
- Loading branch information
1 parent
f025751
commit 780e47c
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Nginx::DebugConnection' do | ||
it { is_expected.to allow_value('127.0.0.1') } | ||
it { is_expected.to allow_value('localhost') } | ||
it { is_expected.to allow_value('192.0.2.0/24') } | ||
it { is_expected.to allow_value('::1') } | ||
it { is_expected.to allow_value('2001:0db8::/32') } | ||
it { is_expected.to allow_value('unix:') } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
type Nginx::DebugConnection = Variant[Stdlib::Host, Enum['unix:']] | ||
type Nginx::DebugConnection = Variant[Stdlib::Host, Stdlib::IP::Address, Enum['unix:']] |