OpenSecurity/bin/test_vmmanager.pyw
changeset 217 4162648fb167
parent 213 2e0b94e12bfc
child 219 9480e5ba1a82
     1.1 --- a/OpenSecurity/bin/test_vmmanager.pyw	Fri Jul 18 13:45:09 2014 +0100
     1.2 +++ b/OpenSecurity/bin/test_vmmanager.pyw	Thu Aug 14 09:51:11 2014 +0100
     1.3 @@ -88,7 +88,8 @@
     1.4              return proxy['ProxyServer']
     1.5          else: 
     1.6              return ""
     1.7 -        
     1.8 +    
     1.9 +    @unittest.skip("skipping")      
    1.10      def testMatchProxy(self):
    1.11          #http=212.17.86.109:8080;https=212.17.86.109:8080;ftp=212.17.86.109:8080
    1.12          #212.17.86.109:8080
    1.13 @@ -100,8 +101,28 @@
    1.14      #def tearOffClass(self):
    1.15      #    gvm_mgr.stop()
    1.16      #    gvm_mgr.cleanup()
    1.17 +    
    1.18 +    
    1.19 +    #VBoxManage list hostonlyifs
    1.20 +    #VBoxManage list dhcpservers
    1.21 +    #VBoxManage dhcpserver remove --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
    1.22 +    #VBoxManage dhcpserver add --ifname "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.100 --netmask 255.255.255.0 --lowerip 192.168.56.101 --upperip 192.168.56.254 --enable
    1.23 +    #VBoxManage dhcpserver modify --ifname "VirtualBox Host-Only Ethernet Adapter" --enable
    1.24 +    #VBoxManage hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter" --dhcp
    1.25 +    #VBoxManage hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0
    1.26 +
    1.27 +    
    1.28 +    
    1.29 +    def testHostOnlyDHCP(self):
    1.30 +        #list hostonlyifs
    1.31 +        #Cygwin.vboxExecute("list hostonlyifs")
    1.32          
    1.33 -
    1.34 +        hostonlyifs = gvm_mgr.getHostOnlyIFs()
    1.35 +        print hostonlyifs
    1.36 +        
    1.37 +        dhcpservers = gvm_mgr.getDHCPServers()
    1.38 +        print dhcpservers
    1.39 +        
    1.40  if __name__ == '__main__':
    1.41      TestVMManager.setUpClass()
    1.42