~harlowja/cloud-init/ds-openstack

« back to all changes in this revision

Viewing changes to tests/unittests/test_ec2_util.py

  • Committer: Joshua Harlow
  • Date: 2014-02-07 23:14:26 UTC
  • mfrom: (913.1.22 trunk)
  • Revision ID: harlowja@yahoo-inc.com-20140207231426-2natgf64l4o055du
Remerged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        self.assertEquals('', userdata)
36
36
 
37
37
    @hp.activate
 
38
    def test_userdata_fetch_fail_server_not_found(self):
 
39
        hp.register_uri(hp.GET,
 
40
                        'http://169.254.169.254/%s/user-data' % (self.VERSION),
 
41
                        status=404)
 
42
        userdata = eu.get_instance_userdata(self.VERSION)
 
43
        self.assertEquals('', userdata)
 
44
 
 
45
    @hp.activate
38
46
    def test_metadata_fetch_no_keys(self):
39
47
        base_url = 'http://169.254.169.254/%s/meta-data' % (self.VERSION)
40
48
        hp.register_uri(hp.GET, base_url, status=200,