Skip to content

Commit

Permalink
Add test for Webpack 5 presence
Browse files Browse the repository at this point in the history
  • Loading branch information
lhellebr committed Mar 12, 2024
1 parent 22180e7 commit 56205ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/foreman/sys/test_webpack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""Test class for Webpack
:CaseAutomation: Automated
:CaseComponent: Installation
:Requirement: Installation
:Team: Endeavour
:CaseImportance: High
"""
import pytest


@pytest.mark.tier2
def test_positive_webpack5(target_sat):
"""Check whether Webpack 5 was used at packaging time
:id: b7f3fbb2-ef4b-4634-877f-b8ea10373e04
:expectedresults: There is a file "public/webpack/foreman_tasks/foreman_tasks_remoteEntry.js" when Webpack 5 has been used. It used to be "public/webpack/foreman-tasks-<ID>.js" before.
"""
assert (
target_sat.execute(
"find /usr/share/gems | grep public/webpack/foreman_tasks/foreman_tasks_remoteEntry.js"
).status
== 0
)

0 comments on commit 56205ae

Please sign in to comment.