コード例 #1
0
 def test_importequipmentlicenses_nonexistent_file(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_importequipmentlicenses')
     try:
         call_command('hwdoc_importequipmentlicenses')
     except CommandError:
         pass
コード例 #2
0
 def test_importequipment_nofile_specified(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_importequipment')
     try:
         call_command('hwdoc_importequipment', verbosity=0)
     except CommandError:
         pass
コード例 #3
0
 def test_bmc_commands_bad_call(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_startup')
     try:
         call_command('hwdoc_startup', verbosity=0)
     except CommandError:
         pass
コード例 #4
0
 def test_bmc_commands_no_result(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_startup')
     try:
         call_command('hwdoc_startup', 'INEXISTENT_EQUIPMENT', verbosity=0)
     except CommandError:
         pass
コード例 #5
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_bmc_firmware_update_no_specified_file(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_firmware_update')
     try:
         call_command('hwdoc_firmware_update', self.server2.serial, verbosity=0)
     except CommandError:
         pass
コード例 #6
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_importequipment_nofile_specified(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_importequipment')
     try:
         call_command('hwdoc_importequipment', verbosity=0)
     except CommandError:
         pass
コード例 #7
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_importequipmentlicenses_nonexistent_file(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_importequipmentlicenses')
     try:
         call_command('hwdoc_importequipmentlicenses')
     except CommandError:
         pass
コード例 #8
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_bmc_commands_no_result(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_startup')
     try:
         call_command('hwdoc_startup', 'INEXISTENT_EQUIPMENT', verbosity=0)
     except CommandError:
         pass
コード例 #9
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_bmc_commands_bad_call(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_startup')
     try:
         call_command('hwdoc_startup', verbosity=0)
     except CommandError:
         pass
コード例 #10
0
 def test_importequipment_nonexistent_file(self):
     filename = 'test_importequiment.csv'
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_importequipment')
     try:
         call_command('hwdoc_importequipment', filename, verbosity=0)
     except CommandError:
         pass
コード例 #11
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_importequipment_nonexistent_file(self):
     filename = 'test_importequiment.csv'
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_importequipment')
     try:
         call_command('hwdoc_importequipment', filename, verbosity=0)
     except CommandError:
         pass
コード例 #12
0
ファイル: tests.py プロジェクト: carriercomm/servermon
    def test_bmc_pass_change_no_password(self):
        if DJANGO_VERSION[:2] < (1, 5):
            from compat import monkey_patch_command_execute

            monkey_patch_command_execute("hwdoc_pass_change")
        try:
            call_command("hwdoc_pass_change", self.server2.serial, change_username="******", verbosity=0)
        except CommandError:
            pass
コード例 #13
0
ファイル: tests.py プロジェクト: carriercomm/servermon
    def test_bmc_firmware_update_nonexistent_file(self):
        if DJANGO_VERSION[:2] < (1, 5):
            from compat import monkey_patch_command_execute

            monkey_patch_command_execute("hwdoc_firmware_update")
        try:
            call_command("hwdoc_firmware_update", self.server2.serial, firmware_location="firmware", verbosity=0)
        except CommandError:
            pass
コード例 #14
0
 def test_bmc_firmware_update_no_specified_file(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_firmware_update')
     try:
         call_command('hwdoc_firmware_update',
                      self.server2.serial,
                      verbosity=0)
     except CommandError:
         pass
コード例 #15
0
 def test_bmc_pass_change_no_password(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_pass_change')
     try:
         call_command('hwdoc_pass_change',
                      self.server2.serial,
                      change_username='******',
                      verbosity=0)
     except CommandError:
         pass
コード例 #16
0
ファイル: tests.py プロジェクト: ppanagiotis/servermon
 def test_bmc_pass_change_no_username(self):
     if DJANGO_VERSION[:2] < (1, 5):
         from compat import monkey_patch_command_execute
         monkey_patch_command_execute('hwdoc_pass_change')
     try:
         call_command('hwdoc_pass_change',
                      self.server2.serial,
                      newpass='******',
                      verbosity=0)
     except CommandError:
         pass