Commit graph

2192 commits

Author SHA1 Message Date
regexowl
68b7444b2f vitest: Enable fileParallelism
This allows paralel file testing, speeding up the tests.
2024-08-05 12:52:06 +02:00
regexowl
9707278d01 src: Disable some linting errors
This disables linting errors that would require more changes.
2024-08-05 11:51:20 +02:00
regexowl
44dc900370 src: Fix new errors after linter bump
This addresses problems caused by dependency updates.
2024-08-05 11:51:20 +02:00
regexowl
21d038f47b devDeps: Manual bump @typescript-eslint/eslint-plugin and parser
This bumps:
- @typescript-eslint/eslint-plugin from 7.18.0 to 8.0.0
- @typescript-eslint/parser from 7.18.0 to 8.0.0
2024-08-05 11:51:20 +02:00
Michal Gold
4b85ad064a createImageWizrad: add scroll to the creation image
this commit change the resoluiton of wizard__outer-wrap to solve
the problem that user should scroll to see the next, backl and cancel buttons
2024-08-05 09:07:48 +02:00
regexowl
9a1d348a77 src: Resolve problems ater updating API
'centos-8' was dropped from Distributions, causing a few problems. This resolves them.
2024-08-02 11:31:20 +02:00
regexowl
434c90a6b8 api: Update image-builder API
This updates image-builder API by running `npm run api`.
2024-08-02 11:31:20 +02:00
dependabot[bot]
e993027f92 build(deps): bump react-router-dom from 6.25.1 to 6.26.0
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.25.1 to 6.26.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.26.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-02 10:26:35 +02:00
regexowl
8a5dea7abf Wizard: Fix On Edit startIndex
With Snapshotting being only hidden startIndex needs to be updated.
2024-08-01 18:05:01 +02:00
regexowl
2febf98e93 test: Update tests
Add mocking to tests where needed.
2024-08-01 18:05:01 +02:00
regexowl
d88cd216a5 Wizard: Add isHidden to snapshotting step
Replace conditional rendering with `isHidden` for snapshotting step.
2024-08-01 18:05:01 +02:00
regexowl
e891b0dc04 test: Add flag mocks
This mocks 'image-builder.snapshots.enabled' where needed.
2024-08-01 17:34:03 +02:00
regexowl
3174dbd706 Wizard: Gate snapshots behind an unleash flag
This gates snapshots behind a 'image-builder.snapshots.enabled' unleash flag instead of `isBeta()`.
2024-08-01 17:34:03 +02:00
regexowl
fc88b09ce6 test: Update tests
This updates tests after gating WSL behind 'image-builder.wsl.enabled'.
2024-08-01 17:24:42 +02:00
regexowl
703a65049f Wizard: Migrate WSL from isBeta() to unleash flag
This gates WSL target behind an 'image-builder.wsl.enabled' unleash flag instead of `isBeta()`.
2024-08-01 17:24:42 +02:00
regexowl
fddf520864 Wizard: Fix nav issues On Edit
Since the FirstBoot step is now always rendered but conditionally hidden, Wizard was opening on the Details step in Edit.
2024-08-01 17:16:36 +02:00
regexowl
8ee2bad55e test: Add flag mocks
This adds mocked 'image-builder.firstboot.enabled' where needed.
2024-08-01 17:16:36 +02:00
regexowl
8dd042aa05 Wizard: Fix death by thousand reviews
When switching between preview and non-preview the Wizard nav got messy. This should fix the problem.
2024-08-01 17:16:36 +02:00
regexowl
b0725c054e Wizard: Replace isBeta() with conditional flag
This replaces `isBeta()` with a constraint added to the 'image-builder.pkgrecs.enabled' unleash flag.
2024-08-01 13:17:59 +02:00
dependabot[bot]
98a179b1cc build(deps-dev): bump sass-loader from 15.0.0 to 16.0.0
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 15.0.0 to 16.0.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/v16.0.0/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v15.0.0...v16.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-01 11:12:23 +02:00
dependabot[bot]
d580defca6 build(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 7.18.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.17.0 to 7.18.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/v7.18.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-08-01 09:53:25 +02:00
Michal Gold
f714ad3440 change the value of SE_NODE_SESSION_TIMEOUT from number to string
this commit change the value of SE_NODE_SESSION_TIMEOUT from number to string
becuase it is blocking auto-promotion test
2024-08-01 07:49:41 +03:00
dependabot[bot]
04bce40bd7 build(deps): bump @unleash/proxy-client-react from 4.3.0 to 4.3.1
Bumps [@unleash/proxy-client-react](https://github.com/Unleash/unleash-proxy-react) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/Unleash/unleash-proxy-react/releases)
- [Changelog](https://github.com/Unleash/proxy-client-react/blob/main/Changelog.md)
- [Commits](https://github.com/Unleash/unleash-proxy-react/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: "@unleash/proxy-client-react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-31 17:38:27 +02:00
Sanne Raymaekers
eab407c09e Wizard: Add tests for repositories and snapshot steps
Tests the bulk select and verifies disabled repositories.
2024-07-31 16:30:01 +02:00
Sanne Raymaekers
90f7ce111a Wizard: Fix bulk select on repositories step
Don't select repositories that are disabled.
2024-07-31 16:30:01 +02:00
regexowl
fee43d8917 ImagesTable: Update wording of CentOS 8 alert
This adds information about CentOS 8 being automatically replaces with CentOS 9 when editing a blueprint.
2024-07-30 16:16:43 +02:00
regexowl
517ff8ccd3 requestMapper: Automatically replace CentOS 8 with CentOS 9
CentOS 8 was deprecated and is no longer used, but 'On Edit' for a no longer valid blueprint with 'centos-8' as their distribution defaulted to RHEL 9.
2024-07-30 16:16:43 +02:00
Jakub Rusz
07dfc66574 templates/testing: Increase timeout for selenium session
I think it's causing issues with test_compose_clone so I want to try
increasing the timeout.
2024-07-30 13:47:55 +02:00
dependabot[bot]
7e0bedbd83 build(deps): bump @reduxjs/toolkit from 2.2.6 to 2.2.7
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.2.6 to 2.2.7.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](https://github.com/reduxjs/redux-toolkit/compare/v2.2.6...v2.2.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 12:27:54 +02:00
regexowl
2bbec0b034 test: Temporarily disable flakey Oscap tests
The disabled tests are flaking for Node 18.x only. I'm quite sure the problem lies within async. Working on a fix.
2024-07-30 12:12:21 +03:00
dependabot[bot]
6c17b1a4d3 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.1.2 to 6.1.3.
- [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-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 09:59:22 +02:00
dependabot[bot]
3a050f21ad 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 7.17.0 to 7.18.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/v7.18.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-07-30 08:39:43 +02:00
regexowl
a9bf175403 test: Disable a test and update few others
Test `Repositories edit mode modal pops up when deselecting previously used repository` is temporarily disabled. Also there were some early exits, the awaiting should do the trick.
2024-07-29 19:20:14 +02:00
regexowl
ece2e1a9da Remove babel
After migrating to typescript and later to vitest, babel is no longer needed. This removes its config and all dependencies that are no longer necessary.
2024-07-29 19:20:14 +02:00
Sanne Raymaekers
4ebd0cec36 Wizard: disable non-snapshot repositories when needed
If a snapshot date is selected, all repositories need to have
snapshotting enabled.
2024-07-29 14:32:09 +02:00
regexowl
802525edbc test: Move compliance On Recreate test to On Edit
This migrates a test from previously used On Recreate to current On Edit.
2024-07-29 13:24:30 +02:00
dependabot[bot]
2f54d2b1f8 build(deps-dev): bump typescript from 5.5.3 to 5.5.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 11:41:03 +02:00
dependabot[bot]
8723b01f85 build(deps-dev): bump @babel/preset-env from 7.24.8 to 7.25.0
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.8 to 7.25.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.25.0/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 10:36:55 +02:00
dependabot[bot]
e13d323acf build(deps-dev): bump @babel/eslint-parser from 7.24.8 to 7.25.1
Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.24.8 to 7.25.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.25.1/eslint/babel-eslint-parser)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 09:01:56 +02:00
Ondrej Ezr
dbfa934b38 Firstboot: validate shebang is defined 2024-07-26 11:57:24 +02:00
regexowl
6e138b5274 lint: Fix linting error 2024-07-26 10:49:36 +02:00
Simon Steinbeiss
3b83a6a72b wizard/registration: Add missing article (typo) 2024-07-26 10:49:36 +02:00
dependabot[bot]
c5f9d23fe5 build(deps-dev): bump @redhat-cloud-services/tsc-transform-imports
Bumps @redhat-cloud-services/tsc-transform-imports from 1.0.11 to 1.0.16.

---
updated-dependencies:
- dependency-name: "@redhat-cloud-services/tsc-transform-imports"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-26 09:36:32 +02:00
dependabot[bot]
fcc1423f59 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 7.16.1 to 7.17.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/v7.17.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-07-26 08:37:59 +02:00
regexowl
cba54c54c6 test: Add retry to the flakiest tests
This adds three possible retries to three of the flakiest tests.
2024-07-25 19:22:05 +02:00
regexowl
fabb24c02d devDeps: Update vitest and add @vitest/coverage-v8
Bumps vitest from 1.6.0 to 2.0.4 and installs @vitest/coverage-v8 to the devDeps for coverage reports.
2024-07-25 19:22:05 +02:00
Jakub Rusz
3fe703e60f Fix typo in Snapshot step
Not actually a radio.
2024-07-25 17:01:53 +02:00
Michal Gold
2c61a70fb4 buildImagesButton: change the name of build selected button <HMS-4066>
this commit  change the name of build selected button to build images
2024-07-25 15:49:23 +02:00
regexowl
c3da0af22c test: Remove deprecated flags from mocking
`image-builder.new-wizard.enabled`, `image-builder.wizard.oscap.enabled` and `image-builder.enable-content-sources` are no longer used in the code base and thus don't need to be mocked in tests.
2024-07-25 14:45:35 +02:00
dependabot[bot]
2633b9c4d6 build(deps-dev): bump sass-loader from 14.2.1 to 15.0.0
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 14.2.1 to 15.0.0.
- [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/v14.2.1...v15.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 12:02:42 +02:00