Revision fade8dab

b/snf-cyclades-app/synnefo/tools/burnin.py
662 662
        self.username['A'] = None
663 663
        self.password['A'] = serverA["adminPass"]
664 664

  
665
    
666
    def test_00001_submit_create_server_B(self):
667
        """Test submit create server request"""
668
        serverB = self.client.create_server(self.servername, self.flavorid,
669
                                           self.imageid, personality=None)
670

  
671
        self.assertEqual(serverB["name"], self.servername)
672
        self.assertEqual(serverB["flavorRef"], self.flavorid)
673
        self.assertEqual(serverB["imageRef"], self.imageid)
674
        self.assertEqual(serverB["status"], "BUILD")
675

  
676
        # Update class attributes to reflect data on building server
677
        self.serverid['B'] = serverB["id"]
678
        self.username['B'] = None
679
        self.password['B'] = serverB["adminPass"]
680 665

  
681
    def test_0001_serverA_becomes_active(self):
666
    def test_00001_serverA_becomes_active(self):
682 667
        """Test server becomes ACTIVE"""
683 668

  
684 669
        fail_tmout = time.time()+self.action_timeout
......
695 680

  
696 681
        self.assertTrue(active)
697 682

  
698
    def test_0001_serverB_becomes_active(self):
683
        
684
    
685
    def test_00002_submit_create_server_B(self):
686
        """Test submit create server request"""
687
        serverB = self.client.create_server(self.servername, self.flavorid,
688
                                           self.imageid, personality=None)
689

  
690
        self.assertEqual(serverB["name"], self.servername)
691
        self.assertEqual(serverB["flavorRef"], self.flavorid)
692
        self.assertEqual(serverB["imageRef"], self.imageid)
693
        self.assertEqual(serverB["status"], "BUILD")
694

  
695
        # Update class attributes to reflect data on building server
696
        self.serverid['B'] = serverB["id"]
697
        self.username['B'] = None
698
        self.password['B'] = serverB["adminPass"]
699

  
700

  
701
        def test_00002_serverB_becomes_active(self):
699 702
        """Test server becomes ACTIVE"""
700 703

  
701 704
        fail_tmout = time.time()+self.action_timeout
......
778 781
        self.assertEqual(len(lines), 0)
779 782
        
780 783

  
781
    def test_002b_setup_interface_B(self):
784
    def test_002a_setup_interface_B(self):
782 785

  
783 786
        server = self.client.get_server_details(self.serverid['B'])
784 787
        image = self.client.get_image_details(self.imageid)
......
803 806

  
804 807

  
805 808

  
806
    def test_002a_test_connection_exists(self):
809
    def test_002b_test_connection_exists(self):
807 810
        """Ping serverB from serverA to test if connection exists"""
808 811

  
809 812
        server = self.client.get_server_details(self.serverid['A'])

Also available in: Unified diff