Skip to content
Snippets Groups Projects
Commit bdf51bf4 authored by Marcin's avatar Marcin
Browse files

remove repeated test for update with changed state provider

parent fe240499
No related branches found
No related tags found
6 merge requests!627merge in fix for get_current_block_age,!626Fix get_current_block_age function to avoid healthcheck fails,!622merge develop to master,!599merge ( with merge commit) develop to master,!597Merge develop to master for release,!590issue #259 automaticly get tables to db hash computation
Pipeline #112662 failed
......@@ -109,35 +109,4 @@ test_extension_update() {
fi
}
test_extension_update_when_state_provider_changed() {
# add new column to accounts table
echo
echo "Making a change in keyauth state provider by change definition of hive.start_provider_keyauth"
# change definition of a state provider
sudo -Enu "$DB_ADMIN" psql -w $POSTGRES_ACCESS -d "$DB_NAME" -v ON_ERROR_STOP=on -U "$DB_ADMIN" \
-c "CREATE OR REPLACE FUNCTION hive.start_provider_keyauth( _context hafd.context_name )
RETURNS TEXT[]
LANGUAGE plpgsql
AS
\$\$
BEGIN
RETURN '{}';
END;
\$\$
;"
# run generator script
POSTGRES_VERSION=17
sudo /usr/share/postgresql/${POSTGRES_VERSION}/extension/hive_fork_manager_update_script_generator.sh 2>&1 | tee -i update.txt || true
# back to old format of db
# test
if grep -q "Table schema is inconsistent" update.txt; then
echo "Update test succeed (changed state provider)"
else
echo "Update test failed (changed state provider)"
exit 1
fi
}
test_extension_update
test_extension_update_when_state_provider_changed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment