(self,
caves_path=None, # type: Optional[str]
caves_url=None, # type: Optional[str]
caves_version=None, # type: Optional[str]
log_dir=None, # type: Optional[str]
log_filename=None, # type: Optional[str]
)
| 253 | |
| 254 | class CavesMockServer(MockServer): |
| 255 | def __init__(self, |
| 256 | caves_path=None, # type: Optional[str] |
| 257 | caves_url=None, # type: Optional[str] |
| 258 | caves_version=None, # type: Optional[str] |
| 259 | log_dir=None, # type: Optional[str] |
| 260 | log_filename=None, # type: Optional[str] |
| 261 | ): |
| 262 | |
| 263 | super().__init__(log_dir=log_dir, log_filename=log_filename) |
| 264 | |
| 265 | if caves_url is None: |
| 266 | caves_url = 'https://github.com/couchbaselabs/gocaves/releases/download' |
| 267 | |
| 268 | self._caves_version = caves_version |
| 269 | if self._caves_version is None: |
| 270 | self._caves_version = 'v0.0.1-74' |
| 271 | |
| 272 | self._build_caves_url(caves_url) |
| 273 | self._validate_caves_path(caves_path) |
| 274 | |
| 275 | # @property |
| 276 | # def rest_port(self): |
nothing calls this directly
no test coverage detected