Merge pull request #12597 from hashicorp/ma/fix-bad-test
Fixup dropped SecretID usage
This commit is contained in:
commit
5579f4e94c
|
@ -875,12 +875,11 @@ func TestTxn_Read_ACLDeny(t *testing.T) {
|
||||||
state.EnsureCheck(4, &check)
|
state.EnsureCheck(4, &check)
|
||||||
|
|
||||||
token := createTokenFull(t, codec, testTxnRules)
|
token := createTokenFull(t, codec, testTxnRules)
|
||||||
id := token.AccessorID
|
|
||||||
|
|
||||||
t.Run("simple read operations (results get filtered out)", func(t *testing.T) {
|
t.Run("simple read operations (results get filtered out)", func(t *testing.T) {
|
||||||
arg := structs.TxnReadRequest{
|
arg := structs.TxnReadRequest{
|
||||||
Datacenter: "dc1",
|
Datacenter: "dc1",
|
||||||
QueryOptions: structs.QueryOptions{Token: id},
|
QueryOptions: structs.QueryOptions{Token: token.SecretID},
|
||||||
Ops: structs.TxnOps{
|
Ops: structs.TxnOps{
|
||||||
{
|
{
|
||||||
KV: &structs.TxnKVOp{
|
KV: &structs.TxnKVOp{
|
||||||
|
@ -912,7 +911,7 @@ func TestTxn_Read_ACLDeny(t *testing.T) {
|
||||||
t.Run("complex operations (return permission denied errors)", func(t *testing.T) {
|
t.Run("complex operations (return permission denied errors)", func(t *testing.T) {
|
||||||
arg := structs.TxnReadRequest{
|
arg := structs.TxnReadRequest{
|
||||||
Datacenter: "dc1",
|
Datacenter: "dc1",
|
||||||
QueryOptions: structs.QueryOptions{Token: id},
|
QueryOptions: structs.QueryOptions{Token: token.SecretID},
|
||||||
Ops: structs.TxnOps{
|
Ops: structs.TxnOps{
|
||||||
{
|
{
|
||||||
KV: &structs.TxnKVOp{
|
KV: &structs.TxnKVOp{
|
||||||
|
|
Loading…
Reference in New Issue