Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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