mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 05:24:16 -04:00
fix e2e upgrade config migration (#2179)
This commit is contained in:
parent
81a13319b7
commit
d1febd7276
2 changed files with 6 additions and 12 deletions
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…
Add table
Add a link
Reference in a new issue