Exemplo n.º 1
0
    def test_ebs_volume_exists_returns_False(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')

        self.assertFalse(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id='fake-volume'))
Exemplo n.º 2
0
    def test_ebs_volume_exists_returns_False(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')

        self.assertFalse(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id='fake-volume')
        )
Exemplo n.º 3
0
    def test_ebs_volume_exists_returns_True(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')
        volume = conn.create_volume(80, "us-east-1a")

        self.assertTrue(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id=volume.id))
Exemplo n.º 4
0
    def test_ebs_volume_exists_returns_True(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')
        volume = conn.create_volume(80, "us-east-1a")

        self.assertTrue(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id=volume.id)
        )