Exemple #1
0
 def test_get_bad_snapshot_notfound(self):
     operation_name = "DescribeSnapshots"
     error_response = {
             'Error': {
                 'Message': "The snapshot 'snap-notfound' does not exist.",
                 'Code': 'InvalidSnapshot.NotFound'}
             }
     e = ClientError(error_response, operation_name)
     snap = NotEncryptedFilter.get_bad_snapshot(e)
     self.assertEquals(snap, "snap-notfound")
Exemple #2
0
 def test_get_bad_snapshot_malformed(self):
     operation_name = "DescribeSnapshots"
     error_response = {
             'Error': {
                 'Message': 'Invalid id: "snap-malformedsnap"',
                 'Code': 'InvalidSnapshotID.Malformed'}
             }
     e = ClientError(error_response, operation_name)
     snap = NotEncryptedFilter.get_bad_snapshot(e)
     self.assertEquals(snap, "snap-malformedsnap")
 def test_get_bad_snapshot_notfound(self):
     operation_name = "DescribeSnapshots"
     error_response = {
             'Error': {
                 'Message': "The snapshot 'snap-notfound' does not exist.",
                 'Code': 'InvalidSnapshot.NotFound'}
             }
     e = ClientError(error_response, operation_name)
     snap = NotEncryptedFilter.get_bad_snapshot(e)
     self.assertEquals(snap, "snap-notfound")
 def test_get_bad_snapshot_malformed(self):
     operation_name = "DescribeSnapshots"
     error_response = {
             'Error': {
                 'Message': 'Invalid id: "snap-malformedsnap"',
                 'Code': 'InvalidSnapshotID.Malformed'}
             }
     e = ClientError(error_response, operation_name)
     snap = NotEncryptedFilter.get_bad_snapshot(e)
     self.assertEquals(snap, "snap-malformedsnap")
Exemple #5
0
 def test_get_bad_snapshot_malformed(self):
     operation_name = "DescribeSnapshots"
     error_response = {
         "Error": {
             "Message": 'Invalid id: "snap-malformedsnap"',
             "Code": "InvalidSnapshotID.Malformed",
         }
     }
     e = ClientError(error_response, operation_name)
     snap = NotEncryptedFilter.get_bad_snapshot(e)
     self.assertEqual(snap, "snap-malformedsnap")