Skip to content

Commit

Permalink
DQA-9707: Align tests with mock 0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocsilva committed Jul 10, 2024
1 parent 0d058a1 commit 0e5d734
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
28 changes: 16 additions & 12 deletions tests/fixtures/commands/component-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
Checking Recommended components.
================================
Package drupal/config_readonly is recommended but is not present on the project.
> See the list of recommended packages at
https://digit-dqa.fpfis.tech.ec.europa.eu/requirements.
> This step is in reporting mode, skipping.
Checking Insecure components.
Expand Down Expand Up @@ -56,7 +59,7 @@
Packages rejected/restricted:
The use of drupal/codesnippet:1.8 is restricted.
The use of drupal/responsive_tables_filter:1.17 is restricted.
The use of drupal/restui:1.21 is rejected.
The use of drupal/restui:1.21 is restricted.
In the case you want to use one of the modules listed as restricted, please open a ticket to Quality Assurance indicating the use case for evaluation and more information.
Package's version constraints:
Package drupal/github_connect:2.0.0-alpha1 does not meet the whitelist version constraint: ^1.0.
Expand All @@ -83,9 +86,9 @@
Results:
========
----------------------------- --------
----------------------------- -----------
Mandatory module check failed
Recommended module check passed
Recommended module check 1 warning
Insecure module check passed
Outdated module check passed
Abandoned module check passed
Expand All @@ -94,7 +97,7 @@
Development module check passed
Composer validation check passed
Project configuration check passed
----------------------------- --------
----------------------------- -----------
[ERROR] Failed the components check, please verify the report and update the
project.
Expand Down Expand Up @@ -185,8 +188,9 @@
- from: sample-composer.lock
to: composer.lock
expectations:
- string_contains: Package drupal/config_readonly is recommended but is not present on the project
- string_contains: Mandatory module check passed
- string_contains: Recommended module check passed
- string_contains: Recommended module check 1 warning
- string_contains: Insecure module check passed
- string_contains: Outdated module check passed
- string_contains: Abandoned module check passed
Expand Down Expand Up @@ -382,13 +386,13 @@
- file: composer.lock
content: |
{ "packages": [ { "name": "drupal/pipeline", "type": "drupal-module", "version": "1.0.0" } ] }
- file: .toolkit-mock/0.0.7/api/v1/project/ec-europa/toolkit/information.json
- file: .toolkit-mock/0.0.11/api/v1/project/ec-europa/toolkit/information.json
content: |
[ { "name":"toolkit", "type": "Openeuropa", "environments": [{ "profile": "minimal", "type": "Production" }] }]
- file: .toolkit-mock/0.0.7/api/v1/toolkit-requirements.json
- file: .toolkit-mock/0.0.11/api/v1/toolkit-requirements.json
content: |
{ "php_version":"8.1", "toolkit": "^3.7.2|^9.14|^10.4", "drupal": "^7.96|^10.1.4|^10.0.11", "vendor_list": [ "drupal" ] }
- file: .toolkit-mock/0.0.7/api/v1/package-reviews.json
- file: .toolkit-mock/0.0.11/api/v1/package-reviews.json
content: |
[ {
"type": "drupal-module",
Expand Down Expand Up @@ -423,13 +427,13 @@
- file: composer.lock
content: |
{ "packages": [ { "name": "drupal/pipeline", "type": "drupal-module", "version": "1.0.0" } ] }
- file: .toolkit-mock/0.0.7/api/v1/project/ec-europa/toolkit/information.json
- file: .toolkit-mock/0.0.11/api/v1/project/ec-europa/toolkit/information.json
content: |
[ { "name": "toolkit", "type": "Openeuropa", "environments": [{ "profile":"minimal", "type":"Production" }] } ]
- file: .toolkit-mock/0.0.7/api/v1/toolkit-requirements.json
- file: .toolkit-mock/0.0.11/api/v1/toolkit-requirements.json
content: |
{ "php_version": "8.1", "toolkit": "^3.7.2|^9.14|^10.4", "drupal": "^7.96|^10.1.4|^10.0.11", "vendor_list": [ "drupal" ] }
- file: .toolkit-mock/0.0.7/api/v1/package-reviews.json
- file: .toolkit-mock/0.0.11/api/v1/package-reviews.json
content: |
[ {
"type": "drupal-module",
Expand Down Expand Up @@ -463,7 +467,7 @@
- file: composer.lock
content: |
{ "packages": [ { "name": "ec-europa/toolkit" } ] }
- file: .toolkit-mock/0.0.7/api/v1/package-reviews.json
- file: .toolkit-mock/0.0.11/api/v1/package-reviews.json
content: |
[ {
"type": "drupal-module",
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/commands/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- CI=false
- QA_WEBSITE_URL=http://ec-behat.com
resources:
- file: .toolkit-mock/0.0.7/api/v1/notifications.json
- file: .toolkit-mock/0.0.11/api/v1/notifications.json
content: |
[{
"title": "Notification title 1",
Expand Down Expand Up @@ -44,7 +44,7 @@
- CI=false
- QA_WEBSITE_URL=http://ec-behat.com
resources:
- file: .toolkit-mock/0.0.7/api/v1/notifications.json
- file: .toolkit-mock/0.0.11/api/v1/notifications.json
content: |
[{
"title": "Notification title 1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
{
"name": "drupal/core",
"version": "10.1.8",
"version": "10.2.2",
"source": {
"type": "git",
"url": "https://github.com/drupal/core.git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packages": [
{
"name": "drupal/core",
"version": "10.1.8",
"version": "10.2.2",
"source": {
"type": "git",
"url": "https://github.com/drupal/core.git",
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/samples/sample-composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e5d734

Please sign in to comment.