-
-
Notifications
You must be signed in to change notification settings - Fork 166
Fix incorrect network options (multiple) #587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b2ca3cd
990c94c
5a2911b
21a5385
833820d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| require 'spec_helper' | ||
|
|
||
| describe 'Systemd::Interface::Netdev::Bond' do | ||
| describe 'valid types' do | ||
| context 'with valid types' do | ||
| [ | ||
| {}, | ||
| { 'MIIMonitorSec' => 42 }, | ||
| { 'MIIMonitorSec' => 0.42 }, | ||
| ].each do |value| | ||
| describe value.inspect do | ||
| it { is_expected.to allow_value(value) } | ||
| end | ||
| end | ||
| end | ||
| end | ||
|
|
||
| describe 'invalid types' do | ||
| context 'with garbage inputs' do | ||
| [ | ||
| true, | ||
| false, | ||
| :keyword, | ||
| nil, | ||
| { 'foo' => 'bar' }, | ||
| '42', | ||
| ].each do |value| | ||
| describe value.inspect do | ||
| it { is_expected.not_to allow_value(value) } | ||
| end | ||
| end | ||
| end | ||
| end | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| 'Match' => Optional[Systemd::Interface::Netdev::Match], | ||
| 'NetDev' => Optional[Systemd::Interface::Netdev::Netdev], | ||
| 'Bridge' => Optional[Systemd::Interface::Netdev::Bridge], | ||
| 'Vlan' => Optional[Systemd::Interface::Netdev::Vlan], | ||
| 'VLAN' => Optional[Systemd::Interface::Netdev::Vlan], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. stupid question: Is this a breaking change? 🤔
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well good question (I asked it myself too ;). |
||
| 'MACVLAN' => Optional[Systemd::Interface::Netdev::Macvlan], | ||
| 'MACVTAP' => Optional[Systemd::Interface::Netdev::Macvlan], | ||
| 'IPVLAN' => Optional[Systemd::Interface::Netdev::Ipvlan], | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.