

def create_dummies(self):
    plan = objects.registry.Plan()
    plan.uuid = self.app_obj.id
    plan.user_id = self.context.user
    plan.project_id = self.context.tenant
    plan.name = self.app_obj.name
    plan.create(self.context)
    assembly = objects.registry.Assembly()
    assembly.plan_id = plan.id
    assembly.user_id = self.context.user
    assembly.project_id = self.context.tenant
    assembly.name = self.app_obj.name
    assembly.uuid = str(uuid.uuid4())
    assembly.workflow = self.wf_obj.actions
    assembly.create(self.context)
    return (plan, assembly)

dataset/ETHPy150Open openstack/solum/solum/api/handlers/workflow_handler.py PlanAssemblyAdapter.create_dummies/original