diff --git a/tests/integration/functional/hive_fork_manager/test_table_schema.sh b/tests/integration/functional/hive_fork_manager/test_table_schema.sh index 25ded4a2a00944fcada13b762ef5028d2b3942dd..be8b1cfc47f729dc8784c3f7663cb35261110c07 100755 --- a/tests/integration/functional/hive_fork_manager/test_table_schema.sh +++ b/tests/integration/functional/hive_fork_manager/test_table_schema.sh @@ -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