mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
test-e2e: no need to run vaultcomat tests as root (#18215)
6747ef8803 fixes the Nomad client to support using the raw_exec
driver while running as a non-root user. Remove the use of sudo
in the test-e2e workflow for running integration (vaultcompat)
tests.
This commit is contained in:
5
.github/workflows/test-e2e.yml
vendored
5
.github/workflows/test-e2e.yml
vendored
@@ -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
|
||||
|
||||
@@ -134,7 +134,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 = testlog.HCLoggerTestLevel().String()
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user