def remote_builder(self, func, with_mlrun, mlrun_version_specifier=None, skip_deployed=False): self._function = func.to_dict() status = NuclioStatus( state="ready", nuclio_name="test-nuclio-name", ) return {"data": {"status": status.to_dict()}}
def _remote_db_mock_function(func, with_mlrun): deploy_nuclio_function(func) return { "data": { "status": NuclioStatus( state="ready", nuclio_name=f"nuclio-{func.metadata.name}", address="http://127.0.0.1:1234", ) } }
def _remote_db_mock_function(func, with_mlrun): deploy_nuclio_function(func) return { "data": { "status": NuclioStatus( state="ready", nuclio_name=f"nuclio-{func.metadata.name}", address="http://127.0.0.1:1234", external_invocation_urls=["http://somewhere-far-away.com"], internal_invocation_urls=["http://127.0.0.1:1234"], ) } }