Trevor McCasland fc453c3629 Improve coverage in guestagent and backup models
Coverage improvement overview:
    trove/backup/models.py 88% -> 99%
    trove/guestagent/models.py 93% -> 100%

trove/backup/models.py cases covered:
    Backup.validate_can_perform_action:
        * raise exception.DatastoreOperationNotSupported

    Backup.create:
        * raise exception.ClusterInstanceOperationNotSupported
        * raise exception.BackupCreationError

    Backup.verify_swift_auth_token:
        * raise exception.SwiftAuthError
        * raise exception.SwiftNotFound

    DBBackup.filename:
        * raise ValueError

    DBBackup.check_swift_object_exist:
        * raise exception.RestoreBackupIntegrityError
        * except ClientException as e:
             return False
             raise exception.SwiftAuthError

trove/guestagent/models.py cases covered:
    AgentHeartBeat.create:
        * raise exception.InvalidModelError

    AgentHeartBeat.save:
        * raise exception.InvalidModelError

Change-Id: I9ca867b66f96ae1d4aa257342d96e043b9058e5d
2016-06-29 11:28:54 -05:00
2015-05-29 07:27:59 +00:00
2013-06-24 14:11:15 -07:00
2016-06-16 15:48:29 -07:00
2013-06-14 18:25:42 -04:00
2013-06-24 14:11:15 -07:00
2014-03-19 15:06:23 +01:00
2015-05-29 07:27:59 +00:00
2013-04-29 18:01:12 -04:00
2013-06-25 10:41:57 +02:00
2016-05-04 15:48:55 +05:30
2015-11-19 10:25:01 +00:00
2015-09-23 14:14:17 +00:00
2016-06-22 09:23:47 +02:00
S
Description
OpenStack Database As A Service (Trove)
Readme
122 MiB
Languages
Python 94.8%
Shell 5.1%