[E2E] instance lifecycle test scenario

Aperta
#1,665 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@chanchiwai-ray ci sta già lavorando.

Dal 30/11/2026.

  • #1700 di @chanchiwai-ray — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start by locating the repository’s existing end-to-end test scenarios and how they provision MicroCloud clusters and instance types. Implement the described lifecycle scenario for both containers and virtual machines, including cleanup after failed steps. Done means the scenario verifies creation, running and stopped states, IPv4 acquisition, command execution, and deletion from the project’s instance list.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As a user, I expect the instance lifecycle should works on the microcloud cluster.

Example test scenario:

Feature: Instance lifecycle

  Background:
    Given a MicroCloud cluster with all members Online
    And the "e2e-testing" project exists

  Scenario Outline: Create, run, and tear down an instance
    Given a randomly generated instance name prefixed with "e2e-lifecycle-"
    And a randomly selected cluster member as the target
    And the instance is deleted at the end of the scenario, even if a prior step fails

    When I create a "<type>" instance on the target member
    Then the instance is created successfully

    When I start the instance
    Then the instance reaches the "Running" state
    And the instance acquires an IPv4 address
    And I can execute a command inside the instance

    When I stop the instance
    Then the instance reaches the "Stopped" state

    When I start the instance again
    Then the instance reaches the "Running" state
    And the instance re-acquires an IPv4 address

    When I delete the instance
    Then the instance no longer appears in the project's instance list

    Examples type:
      | container       |
      | virtual-machine |
Lingua principale
Go
Stelle
552
Fork
96
Merge medio
4g 10h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di canonical/microcloud

Tutte le issue di canonical/microcloud

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.