-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
136 additions
and
134 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service_name: travis-ci |
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,6 @@ | ||
--no-private | ||
--markup markdown | ||
--protected | ||
--output-dir ./doc/autodocs | ||
--files *.md | ||
src/**/*.rb |
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
TESTS = \ | ||
fcoe_client_write_spec.rb \ | ||
DetectNetworkCards_spec.rb \ | ||
GetVlanInterfaces_spec.rb | ||
|
||
|
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,46 @@ | ||
#!/usr/bin/env rspec | ||
require_relative "test_helper" | ||
Yast.import "FcoeClient" | ||
|
||
describe Yast::FcoeClientClass do | ||
subject { Yast::FcoeClient } | ||
|
||
describe "#ProbeNetcards" do | ||
before do | ||
expect(subject).to receive(:TestMode).and_return true | ||
end | ||
|
||
it "returns an array" do | ||
expect(subject.ProbeNetcards).to be_an Array | ||
end | ||
end | ||
|
||
describe "#WriteSysconfigFiles" do | ||
context "odd cases" do | ||
before do | ||
interfaces = [ | ||
{ "fcoe_vlan" => "not available" }, | ||
{ "fcoe_vlan" => "not configured" }, | ||
] | ||
expect(subject).to receive(:GetNetworkCards).and_return(interfaces) | ||
end | ||
|
||
it "smokes not" do | ||
expect { subject.WriteSysconfigFiles }.to_not raise_error | ||
end | ||
end | ||
|
||
context "for a small FCoE setup" do | ||
before do | ||
interfaces = [ | ||
{ "fcoe_vlan" => "eth1.500" } | ||
] | ||
expect(subject).to receive(:GetNetworkCards).and_return(interfaces) | ||
end | ||
|
||
it "smokes not" do | ||
expect { subject.WriteSysconfigFiles }.to_not raise_error | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.