Sha256: 8658619c43b7f5785b1ee6d88206edaf9323d560c2444a056be884df5931c399
Contents?: true
Size: 812 Bytes
Versions: 6
Compression:
Stored size: 812 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' require 'tempfile' module ChefVPCToolkit class VpnNetworkManagerTest < Test::Unit::TestCase include ChefVPCToolkit::CloudServersVPC def setup tmpdir=TmpDir.new_tmp_dir File.open(File.join(tmpdir, "gconftool-2"), 'w') do |f| f.write("#!/bin/bash\nexit 0") f.chmod(0755) end ENV['PATH']=tmpdir+":"+ENV['PATH'] end def teardown group=ServerGroup.from_xml(SERVER_GROUP_XML) VpnNetworkManager.delete_certs(group.id) end def test_configure_gconf group=ServerGroup.from_xml(SERVER_GROUP_XML) client=Client.from_xml(CLIENT_XML) assert VpnNetworkManager.configure_gconf(group, client) end def test_ip_to_integer assert_equal 16782252, VpnNetworkManager.ip_to_integer("172.19.0.1") end end end
Version data entries
6 entries across 6 versions & 1 rubygems