diff --git a/tests/test_integration/test_utils.py b/tests/test_integration/test_utils.py new file mode 100644 index 0000000..4b33844 --- /dev/null +++ b/tests/test_integration/test_utils.py @@ -0,0 +1,41 @@ +from lolafect.lolaconfig import build_lolaconfig + +# __ __ _____ _ _ _____ _ _ _____ _ +# \ \ / /\ | __ \| \ | |_ _| \ | |/ ____| | +# \ \ /\ / / \ | |__) | \| | | | | \| | | __| | +# \ \/ \/ / /\ \ | _ /| . ` | | | | . ` | | |_ | | +# \ /\ / ____ \| | \ \| |\ |_| |_| |\ | |__| |_| +# \/ \/_/ \_\_| \_\_| \_|_____|_| \_|\_____(_) +# This testing suite requires: +# - The calling shell to have permission in AWS +# - The calling shell to be within the Mercadão network +# - Do not use this tests as part of CI/CD pipelines since they are not idempotent and +# rely external resources. Instead, use them manually to check yourself that things +# are working properly. + + +TEST_LOLACONFIG = build_lolaconfig(flow_name="testing-suite") + + +def test_sql_transaction_persists_changes_properly(): + # Connect + # Create table in Sandbox + # Check that table is empty + # Start transaction + # Insert value in table + # Commit transaction + # Check that value is there + # assert that the table was initially empty and afterwards it got a record + pass + + +def test_sql_transaction_rollbacks_changes_properly(): + # Connect + # Create table in Sandbox + # Check that table is empty + # Start transaction + # Insert value in table + # Commit transaction + # Check that the table is still empty + # assert that the table was initially empty and afterwards as well + pass \ No newline at end of file