DynamoDBHook - not able to registering a custom waiter #30613
Labels
area:providers
good first issue
kind:bug
This is a clearly a bug
provider:amazon-aws
AWS/Amazon - related issues
Apache Airflow Provider(s)
amazon
Versions of Apache Airflow Providers
apache-airflow-providers-amazon=7.4.1
Apache Airflow version
airflow=2.5.3
Operating System
Mac
Deployment
Docker-Compose
Deployment details
No response
What happened
We can register a custom waiter by adding a JSON file to the path -
airflow/airflow/providers/amazon/aws/waiters/
. The should be named<client_type>.json
in this case -dynamodb.json
. Once registered we can use the custom waiter.content of the file -
airflow/airflow/providers/amazon/aws/waiters/dynamodb.json
:Getting below error post running test case:
Error
tests/providers/amazon/aws/waiters/test_custom_waiters.py:273 (TestCustomDynamoDBServiceWaiters.test_service_waiters)
'export_table' != ['table_exists', 'table_not_exists']
Expected :['table_exists', 'table_not_exists']
Actual :'export_table'
self = <tests.providers.amazon.aws.waiters.test_custom_waiters.TestCustomDynamoDBServiceWaiters object at 0x117f085e0>
E AssertionError: assert 'export_table' in ['table_exists', 'table_not_exists']
test_custom_waiters.py:277: AssertionError
What you think should happen instead
It should register the custom waiter and test case should pass.the
How to reproduce
Add the file mentioned above to Airflow's code base and try running the test case provided.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: