Project

General

Profile

Actions

Architecture #24985

open

Architecture #24814: Scala 3 migration

Migrate rest test from yaml file to zio-test

Added by François ARMAND 5 months ago. Updated about 2 months ago.

Status:
Pending release
Priority:
N/A
Category:
Architecture - Test
Target version:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No

Description

AFAIK, there's no version of Specs2 that support both Scala 2 and Scala 3 and the dynamic generation of tests used in RestTestFromFile test.

So we need to port that test toward an other framework. It's not self-evident how you do that in Junit4 (the other framework we use), so it should be done in zio-test

Note: we absolutly need a way to get an usable diff for these tests, because we are diffing big json and finding an error is horrible without diff, if possible integrated with IDEs.


Subtasks 4 (1 open3 closed)

Architecture #24991: Fix Migrate rest test from yaml file to zio-testPending releaseFrançois ARMANDActions
Architecture #25015: Plugins need to be ported, tooReleasedClark ANDRIANASOLOActions
Architecture #25020: Plugins private need to be ported to new yaml testReleasedClark ANDRIANASOLOActions
Architecture #25021: Forgot to port DSC pluginReleasedFélix DALLIDETActions

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #24992: API tests could fail because yaml files execute concurrentlyReleasedFrançois ARMANDActions
Related to Rudder - Bug #25017: TraitTestApiFromYamlFiles must allow to customize liftRulesReleasedClark ANDRIANASOLOActions
Actions #1

Updated by François ARMAND 5 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #2

Updated by François ARMAND 5 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/5717
Actions #3

Updated by Anonymous 5 months ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Clark ANDRIANASOLO 5 months ago

  • Subtask #24991 added
Actions #5

Updated by Clark ANDRIANASOLO 5 months ago

  • Related to Bug #24992: API tests could fail because yaml files execute concurrently added
Actions #6

Updated by François ARMAND 4 months ago

  • Related to Bug #25017: TraitTestApiFromYamlFiles must allow to customize liftRules added
Actions #7

Updated by Alexis Mousset 3 months ago

This bug has been fixed in Rudder 8.2.0~alpha1 which was released today.

Actions

Also available in: Atom PDF