# 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
