canonical / canonical/training-operator

Unit tests should be migrated to `scenario`

Open
#265 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jinja
Stars
5
Forks
7
Avg merge
17h 15m
Merged PRs (30d)
4

Description

### Context

Current unit tests are using harness to simulate Juju environment. This library has been deprecated in favor of [scenario](https://documentation.ubuntu.com/ops/latest/reference/ops-testing/). Unit tests need to be migrated.

### What needs to get done

1. Migrate unit tests to `scenario`

### Definition of Done

1. Unit tests are passing

Contributor guide

Open the contributing guide

Research direction

Locate the unit tests that currently use the deprecated harness, then read the linked scenario documentation to understand the replacement testing model. Migrate the affected tests to scenario and run the unit test suite; done means all unit tests pass.

Written by the indexing model from the issue text.

Assessment

Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.