Skip to content

Test: Accommodate latest LXD provider for e2e#1434

Draft
roosterfish wants to merge 3 commits into
canonical:mainfrom
roosterfish:fix_terraform
Draft

Test: Accommodate latest LXD provider for e2e#1434
roosterfish wants to merge 3 commits into
canonical:mainfrom
roosterfish:fix_terraform

Conversation

@roosterfish

Copy link
Copy Markdown
Contributor

Use the latest format required by LXD provider version 3+.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Terraform configuration used by MicroCloud’s end-to-end (e2e) tests to align with the newer terraform-provider-lxd image and instance-waiting semantics (as required by LXD provider v3+).

Changes:

  • Replaces lxd_cached_image resources with lxd_image using the newer source_image format.
  • Updates lxd_instance resources to use wait_for {} blocks (and adds agent waiting for VMs).
  • Refactors locals/for_each values so each instance carries its resolved image fingerprint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/e2e/main.tf
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants