mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 15:39:33 -05:00
fix e2e upgrade config migration (#2179)
This commit is contained in:
parent
81a13319b7
commit
d1febd7276
7
.github/workflows/e2e-upgrade.yml
vendored
7
.github/workflows/e2e-upgrade.yml
vendored
@ -183,9 +183,10 @@ jobs:
|
||||
uses: ./.github/actions/login_azure
|
||||
with:
|
||||
azure_credentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
||||
|
||||
|
||||
## IAM upgrade
|
||||
- name: Migrate config
|
||||
id: constellation-config-migrate
|
||||
run: |
|
||||
./build/constellation config migrate --debug
|
||||
- name: Upgrade IAM configuration
|
||||
id: constellation-iam-upgrade
|
||||
uses: ./.github/actions/constellation_iam_upgrade
|
||||
|
@ -78,18 +78,11 @@ func TestUpgrade(t *testing.T) {
|
||||
cli, err := getCLIPath(*cliPath)
|
||||
require.NoError(err)
|
||||
|
||||
// Migrate config if necessary.
|
||||
log.Println("Migrating config if needed.")
|
||||
cmd := exec.CommandContext(context.Background(), cli, "config", "migrate", "--debug")
|
||||
stdout, stderr, err := runCommandWithSeparateOutputs(cmd)
|
||||
require.NoError(err, "Stdout: %s\nStderr: %s", string(stdout), string(stderr))
|
||||
log.Println(string(stdout))
|
||||
|
||||
targetVersions := writeUpgradeConfig(require, *targetImage, *targetKubernetes, *targetMicroservices)
|
||||
|
||||
log.Println("Fetching measurements for new image.")
|
||||
cmd = exec.CommandContext(context.Background(), cli, "config", "fetch-measurements", "--insecure", "--debug")
|
||||
stdout, stderr, err = runCommandWithSeparateOutputs(cmd)
|
||||
cmd := exec.CommandContext(context.Background(), cli, "config", "fetch-measurements", "--insecure", "--debug")
|
||||
stdout, stderr, err := runCommandWithSeparateOutputs(cmd)
|
||||
require.NoError(err, "Stdout: %s\nStderr: %s", string(stdout), string(stderr))
|
||||
log.Println(string(stdout))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user