stoobly-agent 1.0.12__py3-none-any.whl → 1.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
stoobly_agent/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
1
  COMMAND = 'stoobly-agent'
2
- VERSION = '1.0.12'
2
+ VERSION = '1.0.13'
@@ -21,7 +21,6 @@ LOG_ID = 'WorkflowRunCommand'
21
21
 
22
22
  class UpOptions(TypedDict):
23
23
  attached: bool
24
- exit_code_from: str
25
24
  namespace: str
26
25
 
27
26
  class WorkflowRunCommand(WorkflowCommand):
@@ -130,8 +129,10 @@ class WorkflowRunCommand(WorkflowCommand):
130
129
  if not options.get('attached'):
131
130
  command.append('-d')
132
131
  else:
133
- if options.get('exit_code_from'):
134
- command.append(f"--exit-code-from {options['exit_code_from']}")
132
+ # This option enables docker compose to return exit code 1
133
+ # when one of the services exits with a non-zero exit code
134
+ # Otherwise, even if a service exits with a non-zero exit code, exit code 0 is returned
135
+ command.append('--abort-on-container-failure')
135
136
 
136
137
  command.append('--build')
137
138
  command.append('--pull always')
@@ -319,7 +319,6 @@ def logs(**kwargs):
319
319
  @click.option('--detached', is_flag=True, help='If set, will not run the highest priority service in the foreground.')
320
320
  @click.option('--filter', multiple=True, type=click.Choice([WORKFLOW_CUSTOM_FILTER]), help='Select which service groups to run. Defaults to all.')
321
321
  @click.option('--dry-run', default=False, is_flag=True, help='If set, prints commands.')
322
- @click.option('--exit-code-from', help='Name of container service to obtain exit code from.')
323
322
  @click.option('--extra-compose-path', help='Path to extra compose configuration files.')
324
323
  @click.option('--log-level', default=INFO, type=click.Choice([DEBUG, INFO, WARNING, ERROR]), help='''
325
324
  Log levels can be "debug", "info", "warning", or "error"
@@ -385,7 +384,7 @@ def run(**kwargs):
385
384
  # By default, the entrypoint service should be last
386
385
  # However, this can change if the user has configured a service's priority to be higher
387
386
  attached = not kwargs['detached'] and index == len(commands) - 1
388
- exec_command = command.up(attached=attached, exit_code_from=kwargs['exit_code_from'], namespace=kwargs['namespace'])
387
+ exec_command = command.up(attached=attached, namespace=kwargs['namespace'])
389
388
  if not exec_command:
390
389
  continue
391
390
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: stoobly-agent
3
- Version: 1.0.12
3
+ Version: 1.0.13
4
4
  Summary: Record, mock, and test HTTP(s) requests. CLI agent for Stoobly
5
5
  License: Apache-2.0
6
6
  Author: Matt Le
@@ -1,4 +1,4 @@
1
- stoobly_agent/__init__.py,sha256=fpNnGTz0zD56l0rzU3F6VxKtLU_SjNTBMAXJgelQlwA,45
1
+ stoobly_agent/__init__.py,sha256=xbIsSz6wro-52kMbzceQ47Vo-mzF_jaTkrNWGcM6RpQ,45
2
2
  stoobly_agent/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  stoobly_agent/app/api/__init__.py,sha256=ctkB8KR-eXO0SFhj602huHiyvQ3PslFWd8fkcufgrAI,1000
4
4
  stoobly_agent/app/api/application_http_request_handler.py,sha256=jf4fkqjOiCeI2IM5Ro7ie0v_C6y0-7-5TIE_IKMPOfg,5513
@@ -188,9 +188,9 @@ stoobly_agent/app/cli/scaffold/workflow_copy_command.py,sha256=R9hh5dWVz7vGld7pE
188
188
  stoobly_agent/app/cli/scaffold/workflow_create_command.py,sha256=5xnRYrVb2KlSDARZFjLGGWeURXRu63OHoRLEhO-EAvw,3401
189
189
  stoobly_agent/app/cli/scaffold/workflow_env.py,sha256=x8V5pJmIiklD3f2q2-qq-CORf4YaXYq_r2JpR2MmSwk,416
190
190
  stoobly_agent/app/cli/scaffold/workflow_log_command.py,sha256=FN-XyMVnulbassBuqeB21J_PQnOsr_LNs0Dg2tcDkjg,435
191
- stoobly_agent/app/cli/scaffold/workflow_run_command.py,sha256=08E7fFnyTn6N9lgQVxzopWkYl7t_LOs9cGIoWh2GvKg,7251
191
+ stoobly_agent/app/cli/scaffold/workflow_run_command.py,sha256=VNQHSDAsbUS-rR_8nM6uRJtqJP9haAKA_rgTT8yTgd4,7395
192
192
  stoobly_agent/app/cli/scaffold/workflow_validate_command.py,sha256=fhHciJXg_u32Wmh8us8LhgQj8D1SxkBADtuBBF4K0FM,4377
193
- stoobly_agent/app/cli/scaffold_cli.py,sha256=3cKiFyDNs__Uz0pIeLFdAgMtH9lpHtNpNaQBb55Z-3Q,18703
193
+ stoobly_agent/app/cli/scaffold_cli.py,sha256=3bMMw5M2uTk0Z3KUB3VGyS9JiS3TCaEpbDSeL6RHUZI,18568
194
194
  stoobly_agent/app/cli/scenario_cli.py,sha256=3J1EiJOvunkfWrEkOsanw-XrKkOk78ij_GjBlE9p7CE,8229
195
195
  stoobly_agent/app/cli/snapshot_cli.py,sha256=XNxpTm5z3bnBGNGI3_XZIif0ypN62WqYfDmShL5fXg4,9965
196
196
  stoobly_agent/app/cli/trace_cli.py,sha256=K7E-vx3JUcqEDSWOdIOi_AieKNQz7dBfmRrVvKDkzFI,4605
@@ -721,8 +721,8 @@ stoobly_agent/test/mock_data/scaffold/docker-compose-local-service.yml,sha256=x7
721
721
  stoobly_agent/test/mock_data/scaffold/index.html,sha256=qJwuYajKZ4ihWZrJQ3BNObV5kf1VGnnm_vqlPJzdqLE,258
722
722
  stoobly_agent/test/mock_data/uspto.yaml,sha256=6U5se7C3o-86J4m9xpOk9Npias399f5CbfWzR87WKwE,7835
723
723
  stoobly_agent/test/test_helper.py,sha256=m_oAI7tmRYCNZdKfNqISWhMv3e44tjeYViQ3nTUfnos,1007
724
- stoobly_agent-1.0.12.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
725
- stoobly_agent-1.0.12.dist-info/METADATA,sha256=6sEDVBgyenOEFxaPIwnLLqJpmoKELTXHsjgJ3QdcpqA,3426
726
- stoobly_agent-1.0.12.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
727
- stoobly_agent-1.0.12.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
728
- stoobly_agent-1.0.12.dist-info/RECORD,,
724
+ stoobly_agent-1.0.13.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
725
+ stoobly_agent-1.0.13.dist-info/METADATA,sha256=PjtBvJogcPjgmR-zvMKwWp4S2qr9hSgOSK1zUt1JX0w,3426
726
+ stoobly_agent-1.0.13.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
727
+ stoobly_agent-1.0.13.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
728
+ stoobly_agent-1.0.13.dist-info/RECORD,,