Example #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
Example #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
Example #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
Example #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
Example #5
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
Example #6
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
Example #7
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
Example #8
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
Example #9
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
Example #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
Example #11
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
Example #12
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
Example #13
0
    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
Example #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
Example #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
Example #16
0
 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