Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Create module antivirus #11926

Draft
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

FranckRio
Copy link

@FranckRio FranckRio commented Apr 1, 2025

🌸 Problème

Intégration d'un modulix sur les antivirus.

🌳 Proposition

Merci

🐝 Remarques

🤧 Pour tester

https://app-pr11926.review.pix.fr/modules/antivirus/details

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.76.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.76.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ...!....................................................
  ......!

  61 passing (11s)
  2 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "antivirus" should contain a valid structure:
     AssertionError: 
============================================================

Error: "details.image" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "details.objectives[0]" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[1].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[2].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[7].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_1.html"

────────────────────────────────────────────────────────────

Error: "grains[7].components[1].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[8].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[9].components[1].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[13].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_2.html"

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[14].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[15].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[15].components[1].element.title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[15].components[1].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[16].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[1].element.title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[1].element.instruction" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[1].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[3].element.proposals[1].ariaLabel" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[3].element.proposals[1].solutions" does not contain 1 required value(s).
Valeur concernée à rechercher : []

────────────────────────────────────────────────────────────

Error: "grains[17].components[4].element.proposals[1].ariaLabel" is not allowed to be empty.
Valeur concernée à rechercher : ""

============================================================
: expected ValidationError: "details.image" is not a… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)

  2) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.76.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.76.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ...!....................................................
  ......!

  61 passing (10s)
  2 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "antivirus" should contain a valid structure:
     AssertionError: 
============================================================

Error: "details.image" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "details.objectives[0]" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[7].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_1.html"

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_2.html"

────────────────────────────────────────────────────────────

Error: "grains[17].components[1].element.title" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[1].element.instruction" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[1].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[17].components[4].element.proposals[1].ariaLabel" is not allowed to be empty.
Valeur concernée à rechercher : ""

============================================================
: expected ValidationError: "details.image" is not a… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)

  2) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



Copy link
Contributor

github-actions bot commented Apr 1, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.76.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.76.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ...!....................................................
  ......!

  61 passing (13s)
  2 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "antivirus" should contain a valid structure:
     AssertionError: 
============================================================

Error: "details.image" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "details.objectives[0]" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[7].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_1.html"

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_2.html"

============================================================
: expected ValidationError: "details.image" is not a… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)

  2) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



Copy link
Contributor

github-actions bot commented Apr 1, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.76.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.76.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ...!....................................................
  ......!

  61 passing (10s)
  2 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "antivirus" should contain a valid structure:
     AssertionError: 
============================================================

Error: "grains[7].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_1.html"

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_2.html"

============================================================
: expected ValidationError: "grains[7].components[1]… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)

  2) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



Copy link
Contributor

github-actions bot commented Apr 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.80.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.80.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ...!....................................................
  ......!

  61 passing (12s)
  2 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "antivirus" should contain a valid structure:
     AssertionError: 
============================================================

Error: "grains[7].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_1.html"

────────────────────────────────────────────────────────────

Error: "grains[13].components[1].element.url" must be a valid uri.
Valeur concernée à rechercher : "https://1024pix.github.io/atelier-contenus/FRI/détection_specifique_2.html"

────────────────────────────────────────────────────────────

Error: "grains[18].components[0].element.proposals[0].feedback" must contain at least one of [state, diagnosis].
Valeur concernée à rechercher : {"state":"","diagnosis":""}

────────────────────────────────────────────────────────────

Error: "grains[18].components[0].element.proposals[1].feedback" must contain at least one of [state, diagnosis].
Valeur concernée à rechercher : {"state":"","diagnosis":""}

============================================================
: expected ValidationError: "grains[7].components[1]… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)

  2) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



Copy link
Contributor

github-actions bot commented Apr 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.80.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.80.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ........................................................
  ......!

  62 passing (13s)
  1 failing

  1) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



@FranckRio FranckRio force-pushed the FRI-integration-modulix-antivirus branch from 7f6870a to 28f0255 Compare April 4, 2025 08:54
Copy link
Contributor

github-actions bot commented Apr 4, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.82.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/integration/repositories/module-repository_test.js'


> pix-api@5.82.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/integration/repositories/module-repository_test.js



  ........................................................
  ......!

  62 passing (13s)
  1 failing

  1) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "559c8ed7-5337-42d7-a874-b14930f3c52c"
      -  "03323b85-8f8b-4a15-8562-26faff012aa7"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:177:45)



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants