Testing plan
This commit is contained in:
parent
8f1f3d75e1
commit
5b53b71fd8
1 changed files with 41 additions and 0 deletions
41
tests/test_integration/test_utils.py
Normal file
41
tests/test_integration/test_utils.py
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue