Example #1
0
 def _update(self, deployment_id, blueprint_name, **kwargs):
     blueprint_path = resource(
         os.path.join('deployment_update', 'depup_step'))
     blueprint_id = 'b-{0}'.format(uuid.uuid4())
     self.put_blueprint(blueprint_path, blueprint_name, blueprint_id)
     kwargs['blueprint_id'] = blueprint_id
     return self.put(
         '/deployment-updates/{0}/update/initiate'.format(deployment_id),
         data=kwargs)
 def _update(self,
             deployment_id,
             blueprint_name,
             **kwargs):
     blueprint_path = resource(os.path.join('deployment_update',
                                            'depup_step'))
     blueprint_id = 'b-{0}'.format(uuid.uuid4())
     self.put_blueprint(blueprint_path, blueprint_name, blueprint_id)
     kwargs['blueprint_id'] = blueprint_id
     return self.put(
         '/deployment-updates/{0}/update/initiate'.format(deployment_id),
         data=kwargs
     )
    def _update(self, deployment_id, blueprint_name, **kwargs):
        blueprint_path = resource(
            os.path.join('deployment_update', 'depup_step'))

        archive_path = self.archive_mock_blueprint(
            archive_func=archiving.make_tarbz2file,
            blueprint_dir=blueprint_path)
        kwargs['application_file_name'] = blueprint_name

        return self.post_file(
            '/deployment-updates/{0}/update/initiate'.format(deployment_id),
            archive_path,
            query_params=kwargs)
    def _update(self,
                deployment_id,
                blueprint_name,
                **kwargs):
        blueprint_path = resource(os.path.join('deployment_update',
                                               'depup_step'))

        archive_path = self.archive_mock_blueprint(
            archive_func=archiving.make_tarbz2file,
            blueprint_dir=blueprint_path)
        kwargs['application_file_name'] = blueprint_name

        return self.post_file('/deployment-updates/{0}/update/initiate'
                              .format(deployment_id),
                              archive_path,
                              query_params=kwargs)