You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Contributing via Pull Requests (PRs)](#contributing-via-pull-requests-prs)
14
+
*[Contributing via Pull Requests (PRs)](#contributing-via-pull-requests-prs)
15
15
*[Pulling Down the Code](#pulling-down-the-code)
16
16
*[Running the Unit Tests](#running-the-unit-tests)
17
17
*[Running the Integration Tests](#running-the-integration-tests)
@@ -61,20 +61,56 @@ Before sending us a pull request, please ensure that:
61
61
1. Install test dependencies, including coverage, using `pip install ".[test]"`
62
62
1. Run the following tox command and verify that all code checks and unit tests pass: `tox tests/unit`
63
63
64
-
You can also run a single test with the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
64
+
You can also run a single test with the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
65
65
* Note that the coverage test will fail if you only run a single test, so make sure to surround the command with `export IGNORE_COVERAGE=-` and `unset IGNORE_COVERAGE`
Our CI system runs integration tests (the ones in the `tests/integ` directory), in parallel, for every Pull Request.
72
-
You should only worry about manually running any new integration tests that you write, or integration tests that test an area of code that you've modified.
71
+
Our CI system runs integration tests (the ones in the `tests/integ` directory), in parallel, for every Pull Request.
72
+
You should only worry about manually running any new integration tests that you write, or integration tests that test an area of code that you've modified.
73
+
#### Setup
73
74
74
-
1. Follow the instructions at [Set Up the AWS Command Line Interface (AWS CLI)](https://docs.aws.amazon.com/polly/latest/dg/setup-aws-cli.html).
75
+
If you haven't done so already, install tox and test dependencies:
76
+
1.`pip install tox`
77
+
1.`pip install .[test]`
78
+
79
+
#### AWS Credentials
80
+
Follow the instructions at [Set Up the AWS Command Line Interface (AWS CLI)](https://docs.aws.amazon.com/polly/latest/dg/setup-aws-cli.html).
81
+
#### Create IAM Roles
82
+
83
+
The tests use two IAM roles to give Step Functions and SageMaker permissions to access AWS resources in your account. Use the following commands in the root directory of this repository:
1. To run a test, specify the test file and method you want to run per the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
76
111
* Note that the coverage test will fail if you only run a single test, so make sure to surround the command with `export IGNORE_COVERAGE=-` and `unset IGNORE_COVERAGE`
Creates a Task state to get an item from DynamoDB. See `Call DynamoDB APIs with Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/connect-ddb.html>`_ for more details.
Creates a Task to send custom events to Amazon EventBridge. See`Call EventBridge with Step Functions <https://docs.aws.amazon.com/step-functions/latest/dg/connect-eventbridge.html>`_ for more details.
state_id (str): State name whose length **must be** less than or equal to 128 unicode characters. State names **must be** unique within the scope of the whole state machine.
96
+
comment (str, optional): Human-readable comment or description. (default: None)
97
+
timeout_seconds (int, optional): Positive integer specifying timeout for the state in seconds. If the state runs longer than the specified timeout, then the interpreter fails the state with a `States.Timeout` Error Name. (default: 60)
98
+
timeout_seconds_path (str, optional): Path specifying the state's timeout value in seconds from the state input. When resolved, the path must select a field whose value is a positive integer.
99
+
heartbeat_seconds (int, optional): Positive integer specifying heartbeat timeout for the state in seconds. This value should be lower than the one specified for `timeout_seconds`. If more time than the specified heartbeat elapses between heartbeats from the task, then the interpreter fails the state with a `States.Timeout` Error Name.
100
+
heartbeat_seconds_path (str, optional): Path specifying the state's heartbeat value in seconds from the state input. When resolved, the path must select a field whose value is a positive integer.
101
+
input_path (str, optional): Path applied to the state’s raw input to select some or all of it; that selection is used by the state. (default: '$')
102
+
parameters (dict, optional): The value of this field becomes the effective input for the state.
103
+
result_path (str, optional): Path specifying the raw input’s combination with or replacement by the state’s result. (default: '$')
104
+
output_path (str, optional): Path applied to the state’s output after the application of `result_path`, producing the effective output which serves as the raw input for the next state. (default: '$')
105
+
"""
106
+
107
+
ifwait_for_callback:
108
+
"""
109
+
Example resource arn: arn:aws:states:::events:putEvents.waitForTaskToken
0 commit comments