Skip to content

Commit 9aad14c

Browse files
[debug] delete me
1 parent 47879c8 commit 9aad14c

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
cache: 'npm'
5050
- name: 'Install image builder'
5151
run: 'dnf install -y image-builder'
52-
- name: Install dependencies
53-
run: npm ci
52+
# - name: Install dependencies
53+
# run: npm ci
5454
- name: Run unit tests with cockpit
5555
run: npm run test:cockpit

src/store/cockpit/cockpitApi.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({
8585
{},
8686
);
8787

88-
const output = (res as string) ?? '[]';
89-
const items = JSON.parse(output) as ImageType[];
88+
// eslint-disable-next-line
89+
console.log('Res');
90+
// eslint-disable-next-line
91+
console.log(res || '[hello]', distribution);
92+
93+
const output = res || '[]';
94+
const items = JSON.parse(output as string) as ImageType[];
9095
const map: Record<string, Set<string>> = {};
9196

9297
for (const item of items) {
@@ -114,6 +119,10 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({
114119
})),
115120
};
116121
} catch (error) {
122+
// eslint-disable-next-line
123+
console.log('Distro error');
124+
// eslint-disable-next-line
125+
console.log(error);
117126
return { error };
118127
}
119128
},

src/test/cockpit-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ vitest run -t 'Create Image Wizard renders component' \
99
src/test/Components/CreateImageWizard/CreateImageWizard.test.tsx
1010

1111
vitest run src/test/Components/CreateImageWizard/steps/Hostname/Hostname.test.tsx
12+
13+
image-builder --version
14+
image-builder list --format json
15+
image-builder list

0 commit comments

Comments
 (0)