Files
nomad/nomad
Michael Schurter 1610f18500 test: set AuthToken in tests to match Client code (#24792)
tl;dr - runtime code is fine but tests should match reality

The Nomad Client Agent is the only consumer of the
`Node.Derive{SI,Vault}Token` RPCs, therefore tests of the RPCs should
match Nomad Client behavior.

- DeriveVaultToken code: a9ee66a6ef/client/client.go (L2904-L2917)
- DeriveSIToken code: a9ee66a6ef/client/client.go (L2988-L2997)

Both of those client code paths include the Node SecretID in both the
request's SecretID field as well as the embedded
`QueryOptions.AuthToken` field.

This patch updates server tests to match that behavior. The tests pass
either way.
2025-01-07 09:28:05 -08:00
..
2024-09-19 13:56:42 -04:00
2024-03-21 11:44:23 -07:00
2024-03-11 08:52:08 +00:00