Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
  • Loading branch information
Stromweld committed Jun 27, 2024
1 parent 007fd65 commit ec03a00
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion kitchen-rackspace.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = ">= 3.1"

spec.add_dependency "fog-rackspace", "~> 0.1.6"
spec.add_dependency "fog-core", ">= 1.35" ,"< 2.2"
spec.add_dependency "fog-core", ">= 1.35" ,"< 2.1.1"
spec.add_dependency "test-kitchen", ">= 1.1", "< 4.0"
end
48 changes: 24 additions & 24 deletions spec/kitchen/driver/rackspace_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,24 @@
end

# TODO: fix test
# platforms = {
# "ubuntu-12.04" => "f2d30a56-bc2b-4906-8027-92f8a45bbb10",
# "ubuntu-12" => "f2d30a56-bc2b-4906-8027-92f8a45bbb10",
# "ubuntu-14.04" => "e6baca58-c5f4-48d3-901a-abdeb0cfe907",
# "ubuntu-14" => "e6baca58-c5f4-48d3-901a-abdeb0cfe907",
# "ubuntu" => "9b3ae961-0ba0-4d5a-973f-2e79043f0ddd",
# "centos-6" => "7d791876-4c8f-44a2-8d4b-e84bfb0b1c8c",
# "centos" => "1a79f262-33d2-428c-924b-9852a6c15ea8",
# }
# platforms.each do |platform, id|
# context "name is #{platform}" do
# let(:platform_name) { platform }
#
# it "defaults to the correct image ID" do
# expect(driver[:image_id]).to eq(id)
# end
# end
# end
platforms = {
"ubuntu-12.04" => "f2d30a56-bc2b-4906-8027-92f8a45bbb10",
"ubuntu-12" => "f2d30a56-bc2b-4906-8027-92f8a45bbb10",
"ubuntu-14.04" => "e6baca58-c5f4-48d3-901a-abdeb0cfe907",
"ubuntu-14" => "e6baca58-c5f4-48d3-901a-abdeb0cfe907",
"ubuntu" => "9b3ae961-0ba0-4d5a-973f-2e79043f0ddd",
"centos-6" => "7d791876-4c8f-44a2-8d4b-e84bfb0b1c8c",
"centos" => "1a79f262-33d2-428c-924b-9852a6c15ea8",
}
platforms.each do |platform, id|
context "name is #{platform}" do
let(:platform_name) { platform }

it "defaults to the correct image ID" do
expect(driver[:image_id]).to eq(id)
end
end
end

context "overridden options" do
config = {
Expand Down Expand Up @@ -555,12 +555,12 @@
end

# TODO: fix test
# it "has the user specified network, plus default Rackspace networks" do
# driver.send(:create_server)
# expect(servers).to have_received(:bootstrap) do |arg|
# expect(arg[:networks][2]).to eq user_specified_network
# end
# end
it "has the user specified network, plus default Rackspace networks" do
driver.send(:create_server)
expect(servers).to have_received(:bootstrap) do |arg|
expect(arg[:networks][2]).to eq user_specified_network
end
end
end
end

Expand Down

0 comments on commit ec03a00

Please sign in to comment.