'Test that added encryption information works correctly.'

def _check_017(self, engine, data):

    volumes = db_utils.get_table(engine, 'volumes')
    self.assertIn('encryption_key_id', volumes.c)
    self.assertIsInstance(volumes.c.encryption_key_id.type, self.VARCHAR_TYPE)
    snapshots = db_utils.get_table(engine, 'snapshots')
    self.assertIn('encryption_key_id', snapshots.c)
    self.assertIsInstance(snapshots.c.encryption_key_id.type, self.VARCHAR_TYPE)
    self.assertIn('volume_type_id', snapshots.c)
    self.assertIsInstance(snapshots.c.volume_type_id.type, self.VARCHAR_TYPE)
    encryption = db_utils.get_table(engine, 'encryption')
    self.assertIsInstance(encryption.c.volume_type_id.type, self.VARCHAR_TYPE)
    self.assertIsInstance(encryption.c.cipher.type, self.VARCHAR_TYPE)
    self.assertIsInstance(encryption.c.key_size.type, self.INTEGER_TYPE)
    self.assertIsInstance(encryption.c.provider.type, self.VARCHAR_TYPE)
