コード例 #1
0
 def test_parse_ctrl_pd_all_show_unassigned_hpssacli(self):
     # => ctrl slot=0 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(
             CTRL_PD_ALL_SHOW_UNASSIGNED_OUTPUT_HPSSACLI),
         [('unassigned', [('1I:1:1', 'SATA', '2 TB', 'OK'),
                          ('1I:1:2', 'SATA', '2 TB', 'OK'),
                          ('1I:1:3', 'SATA', '2 TB', 'OK'),
                          ('1I:1:4', 'Solid State SATA', '100 GB', 'OK')])])
コード例 #2
0
 def test_parse_ctrl_pd_all_show_unassigned_hpssacli(self):
     # => ctrl slot=0 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(
             CTRL_PD_ALL_SHOW_UNASSIGNED_OUTPUT_HPSSACLI),
         [('unassigned',
          [('1I:1:1', 'SATA', '2 TB', 'OK'),
           ('1I:1:2', 'SATA', '2 TB', 'OK'),
           ('1I:1:3', 'SATA', '2 TB', 'OK'),
           ('1I:1:4', 'Solid State SATA', '100 GB', 'OK')])])
コード例 #3
0
 def test_parse_ctrl_pd_all_show_unassigned(self):
     # => ctrl slot=2 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(
             CTRL_PD_ALL_SHOW_UNASSIGNED_OUTPUT),
         [('unassigned', [('1I:1:1', 'SATA', '1 TB', 'OK'),
                          ('1I:1:2', 'SATA', '1 TB', 'OK'),
                          ('1I:1:3', 'SATA', '1 TB', 'OK'),
                          ('1I:1:4', 'SATA', '1 TB', 'OK'),
                          ('2I:1:5', 'SATA', '1 TB', 'OK'),
                          ('2I:1:6', 'SATA', '1 TB', 'OK'),
                          ('2I:1:7', 'Solid State SATA', '100 GB', 'OK'),
                          ('2I:1:8', 'Solid State SATA', '100 GB', 'OK')])])
コード例 #4
0
 def test_parse_ctrl_pd_all_show_unassigned(self):
     # => ctrl slot=2 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(
             CTRL_PD_ALL_SHOW_UNASSIGNED_OUTPUT),
         [('unassigned',
           [('1I:1:1', 'SATA', '1 TB', 'OK'),
            ('1I:1:2', 'SATA', '1 TB', 'OK'),
            ('1I:1:3', 'SATA', '1 TB', 'OK'),
            ('1I:1:4', 'SATA', '1 TB', 'OK'),
            ('2I:1:5', 'SATA', '1 TB', 'OK'),
            ('2I:1:6', 'SATA', '1 TB', 'OK'),
            ('2I:1:7', 'Solid State SATA', '100 GB', 'OK'),
            ('2I:1:8', 'Solid State SATA', '100 GB', 'OK')])])
コード例 #5
0
 def test_parse_ctrl_pd_all_show_hpssacli(self):
     # => ctrl slot=0 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(CTRL_PD_ALL_SHOW_OUTPUT_HPSSACLI),
         CTRL_PD_ALL_SHOW_RESULT_HPSSACLI)
コード例 #6
0
 def test_parse_ctrl_pd_all_show(self):
     # => ctrl slot=2 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(CTRL_PD_ALL_SHOW_OUTPUT),
         CTRL_PD_ALL_SHOW_RESULT)
コード例 #7
0
 def test_parse_ctrl_pd_all_show_hpssacli(self):
     # => ctrl slot=0 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(CTRL_PD_ALL_SHOW_OUTPUT_HPSSACLI),
         CTRL_PD_ALL_SHOW_RESULT_HPSSACLI)
コード例 #8
0
 def test_parse_ctrl_pd_all_show(self):
     # => ctrl slot=2 pd all show
     return self.assertEqual(
         hpacucli.parse_ctrl_pd_all_show(CTRL_PD_ALL_SHOW_OUTPUT),
         CTRL_PD_ALL_SHOW_RESULT)