#!/usr/bin/env bash # Tags: no-parallel, no-fasttest, long # Tag no-parallel: Messes with internal cache # no-fasttest: Produces wrong results in fasttest, unclear why, didn't reproduce locally. # long: Sloooow ... CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CURDIR"/../shell_config.sh # -- Attack 1: # - create a user, # - run a query whose result is stored in the query cache, # - drop the user, recreate it with the same name # - test that the cache entry is inaccessible echo "Attack 1" rnd=`tr -dc 1-9