diff options
Diffstat (limited to 'plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_cache_timeout_update.test')
-rw-r--r-- | plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_cache_timeout_update.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_cache_timeout_update.test b/plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_cache_timeout_update.test new file mode 100644 index 00000000..61c23d44 --- /dev/null +++ b/plugin/hashicorp_key_management/mysql-test/vault/t/hashicorp_cache_timeout_update.test @@ -0,0 +1,23 @@ +# MDEV-28291: Cache variables claim to be dynamic but changes are ignored + +--source hashicorp_plugin.inc +--source hashicorp_init.inc + +--let $ct=`SELECT @@HASHICORP_KEY_MANAGEMENT_CACHE_TIMEOUT` +--let $vt=`SELECT @@HASHICORP_KEY_MANAGEMENT_CACHE_VERSION_TIMEOUT` + +SELECT + @@HASHICORP_KEY_MANAGEMENT_CACHE_VERSION_TIMEOUT, + @@HASHICORP_KEY_MANAGEMENT_CACHE_TIMEOUT; +SET GLOBAL + HASHICORP_KEY_MANAGEMENT_CACHE_VERSION_TIMEOUT= 1, + HASHICORP_KEY_MANAGEMENT_CACHE_TIMEOUT= 1; +SELECT + @@HASHICORP_KEY_MANAGEMENT_CACHE_VERSION_TIMEOUT, + @@HASHICORP_KEY_MANAGEMENT_CACHE_TIMEOUT; +--eval SET GLOBAL HASHICORP_KEY_MANAGEMENT_CACHE_VERSION_TIMEOUT=$vt, HASHICORP_KEY_MANAGEMENT_CACHE_TIMEOUT=$ct +SELECT + @@HASHICORP_KEY_MANAGEMENT_CACHE_VERSION_TIMEOUT, + @@HASHICORP_KEY_MANAGEMENT_CACHE_TIMEOUT; + +--source hashicorp_deinit.inc |