Commit graph

2379 commits

Author SHA1 Message Date
regexowl
edeee97577 test: Cleanup Custom repositories tests
This moves code blocks to helper functions where possible and cleans up the tests a bit.
2024-10-07 14:14:18 +03:00
regexowl
512d6f8859 test: Move Custom repositories tests to Repositories.test.tsx
This moves Custom repositories tests from `CreateImageWizard.content.test.tsx` to `Repositories.test.tsx`.
2024-10-07 14:14:18 +03:00
regexowl
ae5074a83d test: Update test naming
The incorrect "registration" name is bothering me. Also updated the name of the first describe block to match the pattern we have in other test files.
2024-10-07 13:06:13 +03:00
regexowl
bde02b7eec Wizard: Fix incorrect aria labels
This updates previously incorrect aria labels for VMware popovers.
2024-10-07 10:48:55 +03:00
regexowl
5ad7470031 src: Prefetch list of targets on hover of Create blueprint button
This prefetches list of possible targets based on distribution for `onMouseEnter` event of Create blueprint button.
2024-10-06 11:38:57 +03:00
dependabot[bot]
f75d1ad45d build(deps-dev): bump @redhat-cloud-services/frontend-components-config
Bumps [@redhat-cloud-services/frontend-components-config](https://github.com/RedHatInsights/frontend-components) from 6.2.9 to 6.3.0.
- [Commits](https://github.com/RedHatInsights/frontend-components/commits)

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/frontend-components-config"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 09:25:47 +02:00
dependabot[bot]
46b91a3237 build(deps-dev): bump eslint-plugin-import from 2.30.0 to 2.31.0
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.30.0...v2.31.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 08:22:52 +02:00
dependabot[bot]
ab8b690e34 build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.7.0 to 8.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.8.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 09:28:09 +02:00
dependabot[bot]
0e065ef7be build(deps-dev): bump @types/react from 18.3.10 to 18.3.11
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.10 to 18.3.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 09:20:19 +02:00
dependabot[bot]
e5e8e749a2 build(deps-dev): bump eslint-plugin-react from 7.37.0 to 7.37.1
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.37.0 to 7.37.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.37.0...v7.37.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 09:12:23 +02:00
dependabot[bot]
856d84dc53 build(deps): bump @patternfly/patternfly from 5.4.0 to 5.4.1
Bumps [@patternfly/patternfly](https://github.com/patternfly/patternfly) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/patternfly/patternfly/releases)
- [Changelog](https://github.com/patternfly/patternfly/blob/main/release.config.js)
- [Commits](https://github.com/patternfly/patternfly/compare/v5.4.0...v5.4.1)

---
updated-dependencies:
- dependency-name: "@patternfly/patternfly"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 09:09:35 +02:00
dependabot[bot]
db38f81b93 build(deps-dev): bump @typescript-eslint/parser from 8.7.0 to 8.8.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.7.0 to 8.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.8.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 08:11:54 +02:00
regexowl
c30c499a2b devDeps: Manually bump msw from 2.4.4 to 2.4.9
This bumps msw from 2.4.4 to 2.4.9
2024-10-01 17:40:33 +03:00
regexowl
1e9f2f85d7 deps: Bump @scalprum/react-core from 0.9.1 to 0.9.3
This bumps @scalprum/react-core from 0.9.1 to 0.9.3.
2024-10-01 16:38:18 +03:00
regexowl
7692445572 test: Add a test for combination of OpenSCAP and first boot
This adds a test to check that blueprint request includes enabled services from both OpenSCAP profile and first boot script.
2024-10-01 12:34:30 +02:00
regexowl
ec96df5527 test: Re-enable "First boot request generated correctly" test
This re-enables test that checks whether the request was generated correctly after creating a blueprint that includes a first boot script.
2024-10-01 12:34:30 +02:00
regexowl
d8c3a49c19 vitest.config: Inline @monaco-editor
`@monaco-editor` needs to be inlined in order to run the tests smoothly without any errors.

Note: dependencies include both `@monaco-editor` and `monaco-editor`, only the `@` one needs to be inlined in test dependencies.
2024-10-01 12:34:30 +02:00
dependabot[bot]
525e456bd0 build(deps): bump @patternfly/react-table from 5.4.0 to 5.4.1
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.4.0...@patternfly/react-table@5.4.1)

---
updated-dependencies:
- dependency-name: "@patternfly/react-table"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 11:22:28 +02:00
dependabot[bot]
b1c5c6289d build(deps): bump @patternfly/react-code-editor from 5.4.1 to 5.4.3
Bumps [@patternfly/react-code-editor](https://github.com/patternfly/patternfly-react) from 5.4.1 to 5.4.3.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.4.1...@patternfly/react-code-editor@5.4.3)

---
updated-dependencies:
- dependency-name: "@patternfly/react-code-editor"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 09:37:41 +02:00
dependabot[bot]
2f5d5cfcdf build(deps): bump @patternfly/react-core from 5.4.0 to 5.4.1
Bumps [@patternfly/react-core](https://github.com/patternfly/patternfly-react) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.4.0...@patternfly/react-core@5.4.1)

---
updated-dependencies:
- dependency-name: "@patternfly/react-core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 08:37:07 +02:00
Dominik Vagner
2ef545111f Wizard: remove no repos selected message 2024-09-30 16:58:08 +02:00
dependabot[bot]
13892718cd build(deps-dev): bump @vitejs/plugin-react from 4.3.1 to 4.3.2
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.3.2/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 10:41:56 +02:00
dependabot[bot]
ed6915cd4b build(deps-dev): bump @types/react from 18.3.9 to 18.3.10
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.9 to 18.3.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 10:33:59 +02:00
dependabot[bot]
1b9fb747bc build(deps-dev): bump sass from 1.79.3 to 1.79.4
Bumps [sass](https://github.com/sass/dart-sass) from 1.79.3 to 1.79.4.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.79.3...1.79.4)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 10:22:21 +02:00
Florian Schüller
faa3385054 CreateImageWizard/requestMapper: fix enabling firstboot
Reorder the code to be easier to read:

when there none of service.{enabled|masked|disabled}
firstboot also is not enabled (if requested)
this patch fixes this bug
2024-09-30 10:14:11 +02:00
Florian Schüller
bd8eaaf8b9 CreateImageWizard/requestMapper: fix enabling firstboot
when there none of service.{enabled|masked|disabled}
firstboot also is not enabled (if requested)
this patch fixes this bug
2024-09-30 10:14:11 +02:00
Gianluca Zuccarelli
506e18af77 api: update image-builder api
Adds the new CCN profiles for RHEL9 & Centos 9
2024-09-30 08:50:08 +02:00
Gianluca Zuccarelli
4ff13d7c13 api: update compliance api 2024-09-30 08:50:08 +02:00
dependabot[bot]
aa02ad4e38 build(deps-dev): bump @types/react-redux from 7.1.33 to 7.1.34
Bumps [@types/react-redux](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-redux) from 7.1.33 to 7.1.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-redux)

---
updated-dependencies:
- dependency-name: "@types/react-redux"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 09:16:18 +02:00
dependabot[bot]
26a972342e build(deps-dev): bump eslint-plugin-react from 7.36.1 to 7.37.0
Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.36.1 to 7.37.0.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.36.1...v7.37.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 08:08:55 +02:00
dependabot[bot]
1b775f50c4 build(deps-dev): bump eslint from 8.57.0 to 8.57.1
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 8.57.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v8.57.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 09:29:05 +02:00
dependabot[bot]
3c542b70af build(deps-dev): bump @typescript-eslint/parser from 8.6.0 to 8.7.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.6.0 to 8.7.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.7.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 08:28:45 +02:00
regexowl
acbb07ad53 Wizard: OpenSCAP profile is not a mandatory field
OpenSCAP profile was marked as a mandatory field, this removes the red asterisk as the profile is optional.
2024-09-25 17:37:33 +02:00
Sanne Raymaekers
cbb9598f1d Wizard: clear compliance data when switching between types
When switching between openscap and insights compliance, clear the data
so the profile information isn't showing anymore.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
4c6d277ff1 test: add test for insights compliance step 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
5d2525b7eb test: add mocks and fixtures for compliance 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
70635c8445 Wizard: adapt file system step to new compliance state 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
0908cd2ae9 Wizard: add compliance step to the wizard
The title is changed depending on the flag, to make it easier to change
the IQE tests.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
e43357bf55 Wizard: add compliance step
The Insights compliance support reuses most of the existing OpenSCAP
step.

Depending on the state of the feature flag, it will show radio buttons
allowing users to switch between regular openscap and Insights
compliance.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
571fe18861 Wizard: support compliance in Oscap/OscapProfileInformation
Let's reuse this component for the compliance step.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
1a19684d97 Wizard: support compliance in review step
Reuses the existing oscap profile information.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
110e1d7d75 Wizard: support openscap compliance customisation in state
Merges all the compliance related state into a single compliance object.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
c6a9d0a17a Wizard: adapt Oscap step to new openscap customisations 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
49829d5662 .eslintignore: ignore generated compliance api during linting 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
29b57cf9da api: update image-builder api
Includes new compliance openscap customisation.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
1f5790579a store: add compliance api as store middleware 2024-09-25 15:26:09 +02:00
Sanne Raymaekers
e16348eda4 api/compliance: add endpoints
Policies to query the list of policies, and policy to get the details of
a single policy.
2024-09-25 15:26:09 +02:00
Sanne Raymaekers
f5443ec819 api: add compliance api 2024-09-25 15:26:09 +02:00
dependabot[bot]
a796630de4 build(deps): bump rollup from 4.21.3 to 4.22.4
Bumps [rollup](https://github.com/rollup/rollup) from 4.21.3 to 4.22.4.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.21.3...v4.22.4)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 10:11:46 +02:00
dependabot[bot]
19ea97d871 build(deps-dev): bump sass-loader from 16.0.1 to 16.0.2
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 16.0.1 to 16.0.2.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v16.0.1...v16.0.2)

---
updated-dependencies:
- dependency-name: sass-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 10:03:53 +02:00