Skip to content
Snippets Groups Projects
Commit 90d9d88f authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

test: write bad snap with errinj in gh_7974_force_recovery_bugs_test

Corrupted snap files that are used in the test were generated manually
using a now old Tarantool version that has an outdated system schema.
In the scope of #7149 DDL was forbidden until the system schema is
upgraded. The problem is luatest tries to grant super privileges to
the guest user (which is a DDL operation) after starting a test instance
unless they are already granted. Since the snap files don't store the
required privileges, luatest fails.

To fix this issue, let's generate corrupted snap files right in the test
using error injection.

Closes #8702

NO_DOC=test
NO_CHANGELOG=test

(cherry picked from commit 67598073)
parent ea6064dd
No related branches found
No related tags found
No related merge requests found
Showing
with 267 additions and 161 deletions
Loading
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