backport of commit 6fca4fa715fcfe5c4a214e90f72c54cda7da6efd (#18490)

Co-authored-by: Seth Hoenig <shoenig@duck.com>
This commit is contained in:
hc-github-team-nomad-core 2023-09-13 16:38:21 -05:00 committed by GitHub
parent 8309505987
commit 6a4a3f6d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View File

@ -49,10 +49,7 @@ jobs:
- uses: hashicorp/setup-golang@v1
- run: make deps
- name: Vault Compatability
run: |
sudo sed -i 's!Defaults!#Defaults!g' /etc/sudoers
sudo -E env "PATH=$PATH" make integration-test
sudo -E env "PATH=$PATH" make clean
run: make integration-test
- run: make e2e-test
permissions:
contents: read

View File

@ -133,7 +133,8 @@ func startNomad(t *testing.T, vc *vaultapi.Client) (func(), *nomadapi.Client) {
}
c.DevMode = true
c.Client = &testutil.ClientConfig{
Enabled: true,
Enabled: true,
TotalCompute: 1000,
}
c.LogLevel = "off"
})

View File

@ -78,7 +78,8 @@ type ServerConfig struct {
// ClientConfig is used to configure the client
type ClientConfig struct {
Enabled bool `json:"enabled"`
Enabled bool `json:"enabled"`
TotalCompute int `json:"cpu_total_compute"`
}
// VaultConfig is used to configure Vault