Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add test for seedimage cloud-config #877

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

juadk
Copy link
Contributor

@juadk juadk commented Jun 21, 2023

Fix #771

This will make sure we won't hit this bug anymore rancher/elemental-operator#467

The following cloud-config is added to SeedImage:

  cloud-config:
    users:
      - name: root
        passwd: r0s@pwd1
    write_files:
      - append: true
        content: |
          SeedImage cloud-config-test
        path: /etc/elemental-test

Then, when the ISO is booted, we check the ssh connexion with root account and also that the file /etc/elemental-test exists.

Verification runs

CLI-RKE2-OBS_Dev ✔️
CLI-K3s-OBS_Dev ✔️
UI-K3s-Rancher_Stable ✔️
UI-RKE2-Rancher_Stable ✔️
UI-RKE2-OS-Upgrade-Rancher_Stable ✔️

@juadk juadk force-pushed the 771-test_seedimage_cloud_config branch 23 times, most recently from 6c96616 to 8f9849d Compare June 26, 2023 09:02
@juadk juadk marked this pull request as ready for review June 26, 2023 09:03
@juadk juadk requested a review from a team as a code owner June 26, 2023 09:03
@juadk juadk force-pushed the 771-test_seedimage_cloud_config branch from 8f9849d to 888c1f0 Compare June 26, 2023 09:04
@juadk juadk self-assigned this Jun 26, 2023
@juadk juadk added the kind/QA label Jun 26, 2023
@juadk juadk force-pushed the 771-test_seedimage_cloud_config branch from 888c1f0 to 4cb9b1c Compare June 26, 2023 09:14
Copy link
Contributor

@ldevulder ldevulder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR!

@ldevulder ldevulder merged commit 7313c42 into main Jun 27, 2023
@ldevulder ldevulder deleted the 771-test_seedimage_cloud_config branch June 27, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

e2e: Automation to test cloud-init setup for seedimage
2 participants