ansible-alpine-host/spec/base/networking_spec.rb

13 lines
291 B
Ruby
Raw Permalink Normal View History

2022-07-02 22:26:54 +00:00
# frozen_string_literal: true
require 'spec_helper'
require 'ansible_inventory'
host_name = ENV['TARGET_HOSTNAME']
host_vars = AnsibleInventory.host_vars host_name
describe default_gateway do
its(:ipaddress) { should eq host_vars['gateway'] }
its(:interface) { should eq 'eth0' }
end