Skip to content

Add Declarative Networking e2e test #1523

@anmazzotti

Description

@anmazzotti

Docs:

This feature could use e2e testing.
As bare minimum, we can:

  1. Provision a new Machine using Declarative Networking
  2. Verify it got the desired IP assigned
  3. Reset the Machine (by deleting the MachineInventory for example)
  4. Verify it got the desired IP assigned (after reset)

There is no need to test k8s provisioning, as we expect nothing to change during or due to provisioning.

The test environment will require 2 IPAM CRDs and the InCluster IPAM provider:

kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/config/crd/bases/ipam.cluster.x-k8s.io_ipaddressclaims.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/cluster-api/main/config/crd/bases/ipam.cluster.x-k8s.io_ipaddresses.yaml
kubectl apply -f https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/download/v0.1.0/ipam-components.yaml

Also note the OS image used need to have nmstatectl installed, so possibly this issue is a pre-requisite: #1519
Alternatively the nmstatectl can be simply installed from the released binaries: https://github.com/nmstate/nmstate/releases

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    💡 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions