~gmb/maas/backports

« back to all changes in this revision

Viewing changes to src/maasserver/views/tests/test_nodes.py

  • Committer: Gavin Panella
  • Date: 2014-09-29 15:26:08 UTC
  • mfrom: (3124 maas)
  • mto: This revision was merged to the branch mainline in revision 3125.
  • Revision ID: gavin.panella@canonical.com-20140929152608-73b1soyzub5dhe6w
Merge trunk, resolving conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
903
903
 
904
904
        # Stub-out real-world RPC calls.
905
905
        self.patch(node_module, "update_host_maps").return_value = []
 
906
        self.patch(node_module, "power_on_nodes").return_value = {}
906
907
 
907
908
        self.client_log_in()
908
909
        factory.make_SSHKey(self.logged_in_user)
1349
1350
            ip=factory.pick_ip_in_network(network), mac=node.get_primary_mac())
1350
1351
        self.assertFalse(NodeView().warn_unconfigured_ip_addresses(node))
1351
1352
 
 
1353
    def test__does_not_warn_for_default_ubuntu_with_fast_installer(self):
 
1354
        network = factory.make_ipv6_network()
 
1355
        node = factory.make_node_with_mac_attached_to_nodegroupinterface(
 
1356
            osystem='ubuntu', network=network, boot_type=NODE_BOOT.FASTPATH)
 
1357
        node.osystem = ''
 
1358
        node.save()
 
1359
        factory.make_StaticIPAddress(
 
1360
            ip=factory.pick_ip_in_network(network), mac=node.get_primary_mac())
 
1361
        self.assertFalse(NodeView().warn_unconfigured_ip_addresses(node))
 
1362
 
1352
1363
    def test__does_not_warn_for_just_IPv4_address(self):
1353
1364
        network = factory.make_ipv4_network()
1354
1365
        osystem = choice(['windows', 'centos', 'suse'])