fix(deps): update stackit sdk modules (#846)
* fix(deps): update stackit sdk modules * feat: Use new generated enums Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com> Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
This commit is contained in:
parent
5d844a84d6
commit
7ce802769c
33 changed files with 222 additions and 225 deletions
|
|
@ -812,12 +812,12 @@ func toInstanceParams(parameters *parametersModel) (*redis.InstanceParameters, e
|
|||
payloadParams.EnableMonitoring = conversion.BoolValueToPointer(parameters.EnableMonitoring)
|
||||
payloadParams.FailoverTimeout = conversion.Int64ValueToPointer(parameters.FailoverTimeout)
|
||||
payloadParams.Graphite = conversion.StringValueToPointer(parameters.Graphite)
|
||||
payloadParams.LazyfreeLazyEviction = conversion.StringValueToPointer(parameters.LazyfreeLazyEviction)
|
||||
payloadParams.LazyfreeLazyExpire = conversion.StringValueToPointer(parameters.LazyfreeLazyExpire)
|
||||
payloadParams.LazyfreeLazyEviction = redis.InstanceParametersGetLazyfreeLazyEvictionAttributeType(conversion.StringValueToPointer(parameters.LazyfreeLazyEviction))
|
||||
payloadParams.LazyfreeLazyExpire = redis.InstanceParametersGetLazyfreeLazyExpireAttributeType(conversion.StringValueToPointer(parameters.LazyfreeLazyExpire))
|
||||
payloadParams.LuaTimeLimit = conversion.Int64ValueToPointer(parameters.LuaTimeLimit)
|
||||
payloadParams.MaxDiskThreshold = conversion.Int64ValueToPointer(parameters.MaxDiskThreshold)
|
||||
payloadParams.Maxclients = conversion.Int64ValueToPointer(parameters.Maxclients)
|
||||
payloadParams.MaxmemoryPolicy = conversion.StringValueToPointer(parameters.MaxmemoryPolicy)
|
||||
payloadParams.MaxmemoryPolicy = redis.InstanceParametersGetMaxmemoryPolicyAttributeType(conversion.StringValueToPointer(parameters.MaxmemoryPolicy))
|
||||
payloadParams.MaxmemorySamples = conversion.Int64ValueToPointer(parameters.MaxmemorySamples)
|
||||
payloadParams.MetricsFrequency = conversion.Int64ValueToPointer(parameters.MetricsFrequency)
|
||||
payloadParams.MetricsPrefix = conversion.StringValueToPointer(parameters.MetricsPrefix)
|
||||
|
|
@ -826,7 +826,7 @@ func toInstanceParams(parameters *parametersModel) (*redis.InstanceParameters, e
|
|||
payloadParams.NotifyKeyspaceEvents = conversion.StringValueToPointer(parameters.NotifyKeyspaceEvents)
|
||||
payloadParams.Snapshot = conversion.StringValueToPointer(parameters.Snapshot)
|
||||
payloadParams.TlsCiphersuites = conversion.StringValueToPointer(parameters.TlsCiphersuites)
|
||||
payloadParams.TlsProtocols = conversion.StringValueToPointer(parameters.TlsProtocols)
|
||||
payloadParams.TlsProtocols = redis.InstanceParametersGetTlsProtocolsAttributeType(conversion.StringValueToPointer(parameters.TlsProtocols))
|
||||
|
||||
var err error
|
||||
payloadParams.Syslog, err = conversion.StringListToPointer(parameters.Syslog)
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ var fixtureModelParameters = types.ObjectValueMust(parametersTypes, map[string]a
|
|||
"enable_monitoring": types.BoolValue(true),
|
||||
"failover_timeout": types.Int64Value(10),
|
||||
"graphite": types.StringValue("1.1.1.1:91"),
|
||||
"lazyfree_lazy_eviction": types.StringValue("lazy_eviction"),
|
||||
"lazyfree_lazy_expire": types.StringValue("lazy_expire"),
|
||||
"lazyfree_lazy_eviction": types.StringValue(string(redis.INSTANCEPARAMETERSLAZYFREE_LAZY_EVICTION_NO)),
|
||||
"lazyfree_lazy_expire": types.StringValue(string(redis.INSTANCEPARAMETERSLAZYFREE_LAZY_EXPIRE_NO)),
|
||||
"lua_time_limit": types.Int64Value(10),
|
||||
"max_disk_threshold": types.Int64Value(100),
|
||||
"maxclients": types.Int64Value(10),
|
||||
"maxmemory_policy": types.StringValue("policy"),
|
||||
"maxmemory_policy": types.StringValue(string(redis.INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_LRU)),
|
||||
"maxmemory_samples": types.Int64Value(10),
|
||||
"metrics_frequency": types.Int64Value(10),
|
||||
"metrics_prefix": types.StringValue("prefix"),
|
||||
|
|
@ -40,7 +40,7 @@ var fixtureModelParameters = types.ObjectValueMust(parametersTypes, map[string]a
|
|||
types.StringValue("ciphers2"),
|
||||
}),
|
||||
"tls_ciphersuites": types.StringValue("ciphersuites"),
|
||||
"tls_protocols": types.StringValue("protocol1"),
|
||||
"tls_protocols": types.StringValue(string(redis.INSTANCEPARAMETERSTLS_PROTOCOLS__2)),
|
||||
})
|
||||
|
||||
var fixtureInstanceParameters = redis.InstanceParameters{
|
||||
|
|
@ -49,12 +49,12 @@ var fixtureInstanceParameters = redis.InstanceParameters{
|
|||
EnableMonitoring: utils.Ptr(true),
|
||||
FailoverTimeout: utils.Ptr(int64(10)),
|
||||
Graphite: utils.Ptr("1.1.1.1:91"),
|
||||
LazyfreeLazyEviction: utils.Ptr("lazy_eviction"),
|
||||
LazyfreeLazyExpire: utils.Ptr("lazy_expire"),
|
||||
LazyfreeLazyEviction: redis.INSTANCEPARAMETERSLAZYFREE_LAZY_EVICTION_NO.Ptr(),
|
||||
LazyfreeLazyExpire: redis.INSTANCEPARAMETERSLAZYFREE_LAZY_EXPIRE_NO.Ptr(),
|
||||
LuaTimeLimit: utils.Ptr(int64(10)),
|
||||
MaxDiskThreshold: utils.Ptr(int64(100)),
|
||||
Maxclients: utils.Ptr(int64(10)),
|
||||
MaxmemoryPolicy: utils.Ptr("policy"),
|
||||
MaxmemoryPolicy: redis.INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_LRU.Ptr(),
|
||||
MaxmemorySamples: utils.Ptr(int64(10)),
|
||||
MetricsFrequency: utils.Ptr(int64(10)),
|
||||
MetricsPrefix: utils.Ptr("prefix"),
|
||||
|
|
@ -65,7 +65,7 @@ var fixtureInstanceParameters = redis.InstanceParameters{
|
|||
Syslog: &[]string{"syslog", "syslog2"},
|
||||
TlsCiphers: &[]string{"ciphers1", "ciphers2"},
|
||||
TlsCiphersuites: utils.Ptr("ciphersuites"),
|
||||
TlsProtocols: utils.Ptr("protocol1"),
|
||||
TlsProtocols: redis.INSTANCEPARAMETERSTLS_PROTOCOLS__2.Ptr(),
|
||||
}
|
||||
|
||||
func TestMapFields(t *testing.T) {
|
||||
|
|
@ -110,12 +110,12 @@ func TestMapFields(t *testing.T) {
|
|||
"enable_monitoring": true,
|
||||
"failover-timeout": int64(10),
|
||||
"graphite": "1.1.1.1:91",
|
||||
"lazyfree-lazy-eviction": "lazy_eviction",
|
||||
"lazyfree-lazy-expire": "lazy_expire",
|
||||
"lazyfree-lazy-eviction": string(redis.INSTANCEPARAMETERSLAZYFREE_LAZY_EVICTION_NO),
|
||||
"lazyfree-lazy-expire": string(redis.INSTANCEPARAMETERSLAZYFREE_LAZY_EXPIRE_NO),
|
||||
"lua-time-limit": int64(10),
|
||||
"max_disk_threshold": int64(100),
|
||||
"maxclients": int64(10),
|
||||
"maxmemory-policy": "policy",
|
||||
"maxmemory-policy": string(redis.INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_LRU),
|
||||
"maxmemory-samples": int64(10),
|
||||
"metrics_frequency": int64(10),
|
||||
"metrics_prefix": "prefix",
|
||||
|
|
@ -126,7 +126,7 @@ func TestMapFields(t *testing.T) {
|
|||
"syslog": []string{"syslog", "syslog2"},
|
||||
"tls-ciphers": []string{"ciphers1", "ciphers2"},
|
||||
"tls-ciphersuites": "ciphersuites",
|
||||
"tls-protocols": "protocol1",
|
||||
"tls-protocols": string(redis.INSTANCEPARAMETERSTLS_PROTOCOLS__2),
|
||||
},
|
||||
},
|
||||
Model{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue