Skip to content

Commit

Permalink
cloudtests: add sugar to ControllerDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
nrainer-materialize committed Aug 24, 2023
1 parent aee4c0b commit eb0e7e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions misc/python/materialize/cloudtest/util/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
from dataclasses import dataclass
from typing import Any, List, Optional, Tuple, Union

from materialize.cloudtest.util.authentication import AuthConfig
from materialize.cloudtest.util.common import eprint, retry
from materialize.cloudtest.util.web_request import WebRequests


@dataclass
Expand Down Expand Up @@ -55,6 +57,9 @@ def configured_base_url(self) -> str:

return self.endpoint.base_url

def requests(self, auth: Optional[AuthConfig]) -> WebRequests:
return WebRequests(auth, self.configured_base_url())


def wait_for_connectable(
address: Union[Tuple[Any, int], str],
Expand Down

0 comments on commit eb0e7e0

Please sign in to comment.