  def testEncryptedVolumeCopy(self):
    """End to end test on AWS.

    Test copying a specific encrypted volume.
    """

    if not self.encrypted_volume_to_copy:
      return

    # Assert that the source volume is encrypted
    self.assertTrue(self.aws.ResourceApi(EC2_SERVICE).Volume(
        self.encrypted_volume_to_copy).encrypted)

    # Create the copy
    volume_copy = self._RunCreateVolumeCopy(
        self.zone, volume_id=self.encrypted_volume_to_copy)

    # The volume should be created in AWS, and should also be encrypted
    aws_volume = self.aws.ResourceApi(EC2_SERVICE).Volume(volume_copy.volume_id)
    self.assertEqual(aws_volume.volume_id, volume_copy.volume_id)
    self.assertTrue(aws_volume.encrypted)

    self._StoreVolumeForCleanup(self.aws, aws_volume)
End to end test on AWS.

Test copying a specific encrypted volume.
tests/providers/aws/e2e_cli.py