mirror of https://github.com/status-im/consul.git
Fix previous accidental master push 🤦 (#5771)
* Fix previous accidental master push 🤦
* Fix ACL test
This commit is contained in:
parent
6c81f9da0d
commit
6a58527cd8
|
@ -717,15 +717,6 @@ func TestConfigEntry_ResolveServiceConfigNoConfig(t *testing.T) {
|
|||
}
|
||||
var out structs.ServiceConfigResponse
|
||||
require.NoError(msgpackrpc.CallWithCodec(codec, "ConfigEntry.ResolveServiceConfig", &args, &out))
|
||||
// Hack to fix up the string encoding in the map[string]interface{}.
|
||||
// msgpackRPC's codec doesn't use RawToString.
|
||||
var err error
|
||||
out.ProxyConfig, err = lib.MapWalk(out.ProxyConfig)
|
||||
require.NoError(err)
|
||||
for k := range out.UpstreamConfigs {
|
||||
out.UpstreamConfigs[k], err = lib.MapWalk(out.UpstreamConfigs[k])
|
||||
require.NoError(err)
|
||||
}
|
||||
|
||||
expected := structs.ServiceConfigResponse{
|
||||
ProxyConfig: nil,
|
||||
|
@ -795,7 +786,7 @@ operator = "write"
|
|||
Datacenter: s1.config.Datacenter,
|
||||
QueryOptions: structs.QueryOptions{Token: id},
|
||||
}
|
||||
var out struct{}
|
||||
var out structs.ServiceConfigResponse
|
||||
err := msgpackrpc.CallWithCodec(codec, "ConfigEntry.ResolveServiceConfig", &args, &out)
|
||||
if !acl.IsErrPermissionDenied(err) {
|
||||
t.Fatalf("err: %v", err)
|
||||
|
|
Loading…
Reference in New Issue