@@ -23,15 +23,24 @@ def start_gobbler(staging: Optional[str] = None, registry: Optional[str] = None,
23
23
automatically created.
24
24
25
25
port:
26
- Port number for the Gobbler API to receive requests.
26
+ Port number for the Gobbler API to receive requests. If None, an
27
+ open port is automatically chosen.
27
28
28
29
wait:
29
30
Number of seconds to wait for the service to initialize before use.
30
31
32
+ version:
33
+ Version of the service to run.
34
+
35
+ overwrite:
36
+ Whether to overwrite the existing Gobbler binary.
37
+
31
38
Returns:
32
39
A tuple indicating whether a new test service was created (or an
33
- existing instance was re-used), the path to the staging directory,
34
- the path to the registry, and the chosen URL.
40
+ existing instance was re-used), the path to the staging directory, the
41
+ path to the registry, and the chosen URL. If a service is already
42
+ running, this function is a no-op and the configuration details of the
43
+ existing service will be returned.
35
44
"""
36
45
global test_staging
37
46
global test_registry
@@ -130,9 +139,8 @@ def _initialize_gobbler_process(exe: str, staging: Optional[str], registry: Opti
130
139
131
140
def stop_gobbler ():
132
141
"""
133
- Stop any existing gobbler test service. This will also reset any URL that
134
- was modified by :py:func:`~start_gobbler`. If no test service was running,
135
- this function is a no-op.
142
+ Stop any gobbler test service started by :py:func:`~.start_gobbler`. If no
143
+ test service was running, this function is a no-op.
136
144
"""
137
145
global test_process
138
146
if test_process is not None :
0 commit comments