ansible-alpine-host/spec/base/networking_spec.rb
2022-07-02 19:26:54 -03:00

12 lines
291 B
Ruby

# 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