def test_upload_stack(): conf_path = BEES_ROOT.child('project.yaml') conf = yaml.load(File(conf_path).read_all()) conf['file_path'] = conf_path uploaded = stack.upload_stack(conf)['result'] bucket_name = conf['publish']['bucket'] bucket = Bucket(bucket_name) bucket.connect() bucket.set_policy() for rpath, info in uploaded.iteritems(): response = urllib2.urlopen(info.url) html = response.read() source_text = File(info.target).read_all() assert_text_equals(html, source_text)
def upload(self, args): self.main(args, skip=True) stack.upload_stack(self.config) print 'done.'