mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 16:35:44 +03:00
With mTLS enabled, using `curl` in a bash script for validation involves having to configure arguments to `curl` based on whether or not the test infrastructure is using mTLS, whether ACLs are enabled, etc. Use the new `operator api` command instead to pick up the client configuration from the test environment automatically.
4 lines
106 B
Bash
Executable File
4 lines
106 B
Bash
Executable File
#!/bin/bash
|
|
|
|
nomad operator api "/v1/allocation/${NOMAD_ALLOC_ID}" | jq '.NetworkStatus.Address | length'
|