[E2E] instance lifecycle test scenario

Abierto
#1,665 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

@chanchiwai-ray ya está trabajando en esto.

Desde el 30/11/2026.

  • #1700 de @chanchiwai-ray — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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 |
Lenguaje dominante
Go
Estrellas
552
Forks
96
Merge medio
4 d 10 h
PR fusionados (30 d)
21

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de canonical/microcloud

Todos los issues de canonical/microcloud

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.