Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets Api changes to support bom lifecycles #275

Merged
merged 55 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
0c26859
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
65e6085
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
38b35d8
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
eb7a8a5
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
ad30e2c
Merge branch 'main' into feature/TRACEFOSS-1730-bom-as-planned-api
ds-mwesener Aug 25, 2023
9a7186f
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
3d785f8
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
549754b
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
b5d0e95
Revert "feature: TRACEFOSS-1730 preperation for new api assetAsPlanned"
ds-mwesener Aug 25, 2023
0005c5b
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
2a4f242
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
a6db536
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
00662fa
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
8d5fb21
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
94d7160
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
b27dda9
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
71f786f
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
b26fb0c
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
c47938b
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
b95ee8f
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
28a0c4f
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
ca5e579
feature: TRACEFOSS-1730 preperation for new api assetAsPlanned
ds-mwesener Aug 25, 2023
dbc8823
feature: TRACEFOSS-1735 add optional receiver bpn parameter to invest…
ds-lcapellino Aug 28, 2023
1536793
feature: TRACEFOSS-1735 update CHANGELOG.md
ds-lcapellino Aug 28, 2023
b87e687
feature: TRACEFOSS-1735 fix typo
ds-lcapellino Aug 28, 2023
204c134
feature: TRACEFOSS-1735 fix typo
ds-lcapellino Aug 28, 2023
c252797
feature: TRACEFOSS-1735 refactor
ds-lcapellino Aug 28, 2023
c9efe50
feature: TRACEFOSS-1735 added stringutils
ds-mwesener Aug 28, 2023
8aa6557
Merge pull request #531 from catenax-ng/feature/TRACEFOSS-1735-add-op…
ds-mwesener Aug 28, 2023
512f8c6
feature: TRACEFOSS-1730 added response mapper for detailaspectmodel
ds-mwesener Aug 28, 2023
b7ac109
Merge branch 'main' into feature/TRACEFOSS-1730-bom-as-planned-api
ds-mwesener Aug 28, 2023
edecae9
feature: TRACEFOSS-1730 added response mapper for detailaspectmodel
ds-mwesener Aug 28, 2023
208c62a
feature: TRACEFOSS-1730 added response mapper for detailaspectmodel
ds-mwesener Aug 28, 2023
c3d2e77
feature: TRACEFOSS-1730 validated sites before injecting into mapper
ds-mwesener Aug 28, 2023
bec4d40
feature: TRACEFOSS-1730 validated sites before injecting into mapper
ds-mwesener Aug 28, 2023
60b07c8
feature: TRACEFOSS-1730 add TODO; reformat
ds-lcapellino Aug 29, 2023
5a95798
feature: TRACEFOSS-1730 reformat; refactor
ds-lcapellino Aug 29, 2023
2d0c363
feature: TRACEFOSS-1730 validated sites before injecting into mapper
ds-mwesener Aug 29, 2023
85cd1e7
Merge remote-tracking branch 'origin/feature/TRACEFOSS-1730-bom-as-pl…
ds-mwesener Aug 29, 2023
2f5a528
chore: TRACEFOSS-XXX dependency bumps
ds-mwesener Aug 29, 2023
7eb71ce
chore: TRACEFOSS-XXX add seccomp to deployment yaml of frontend.
ds-mwesener Aug 29, 2023
fdabf22
Chore/tracefoss tracefoss 2607 implement release action (#532)
ds-mmaul Aug 29, 2023
157644c
chore: TRACEFOSS-XXX added kics ignore
ds-mwesener Aug 29, 2023
5d2e1bb
chore: TRACEFOSS-XXX added kics ignore
ds-mwesener Aug 29, 2023
352a2b1
feature: TRACEFOSS-1730 add integration tests; refactor
ds-lcapellino Aug 29, 2023
37cd0b3
Merge pull request #539 from catenax-ng/chore/TRACEFOSS-XXX-update-se…
ds-mwesener Aug 29, 2023
63bab48
Merge pull request #538 from catenax-ng/chore/TRACEFOSS-XXX-security-…
ds-mwesener Aug 29, 2023
a12d67e
chore: TRACEFOSS-1730 adapt frontend api to use assets/as-built by de…
ds-mwesener Aug 29, 2023
1365500
Merge remote-tracking branch 'origin/feature/TRACEFOSS-1730-bom-as-pl…
ds-mwesener Aug 29, 2023
8c74a7e
Merge pull request #525 from catenax-ng/feature/TRACEFOSS-1730-bom-as…
ds-mwesener Aug 29, 2023
3674515
chore: TRACEFOSS-1730 adapt frontend api to use assets/as-built by de…
ds-mwesener Aug 29, 2023
b76fc5c
feature: TRACEFOSS-XXX added removeAll and findAll API shellDescriptors
ds-mwesener Aug 29, 2023
6ddb7b4
chore: TRACEFOSS-1730 adapt frontend api to use assets/as-built by de…
ds-mwesener Aug 29, 2023
f411924
chore: TRACEFOSS-1730 adapt frontend api to use assets/as-built by de…
ds-mwesener Aug 29, 2023
952e56a
Merge pull request #540 from catenax-ng/feature/TRACEFOSS-XXX-shellde…
ds-mwesener Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/e2e-tests-xray_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
node-version: 18.x

- name: Cypress run all tests
uses: cypress-io/github-action@v5.8.4 # use the explicit version number
uses: cypress-io/github-action@v6.0.0 # use the explicit version number
with:
start: npm start
wait-on: "http://localhost:4200"
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
node-version: 18.x

- name: Cypress run all tests
uses: cypress-io/github-action@v5.8.4 # use the explicit version number
uses: cypress-io/github-action@v6.0.0 # use the explicit version number
with:
start: npm start
wait-on: "http://localhost:4200"
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
run: npx playwright install --with-deps webkit

- name: Cypress run all tests
uses: cypress-io/github-action@v5.8.4 # use the explicit version number
uses: cypress-io/github-action@v6.0.0 # use the explicit version number
with:
start: npm start
wait-on: "http://localhost:4200"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
# - results-dir/results.json
# - results-dir/results.sarif
output_path: kicsResults/
enable_comments: true
output_formats: "json,sarif"
# If you want KICS to ignore the results and return exit status code 0 unless a KICS engine error happens
# ignore_on_exit: results
Expand Down Expand Up @@ -98,7 +99,8 @@ jobs:
with:
# Scanning directory .
path: "./tx-backend"

exclude_queries: 9f88c88d-824d-4d9a-b985-e22977046042,8c8261c2-19a9-4ef7-ad37-b8bc7bdd4d85,181bd815-767e-4e95-a24d-bb3c87328e19,00b78adf-b83f-419c-8ed8-c6018441dd3a
enable_comments: true
# Fail on HIGH severity results
fail_on: high
# Disable secrets detection - we use GitGuardian
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,41 @@ jobs:
with:
cmd: yq -i eval '.version = "${{ env.HELM_VERSION }}"' charts/traceability-foss/Chart.yaml

- name: Update frontend dependency version in Chart.yaml
uses: mikefarah/yq@v4.34.2
with:
cmd: yq -i eval '.dependencies[0].version = "${{ env.HELM_VERSION }}"' charts/traceability-foss/Chart.yaml

- name: Update backend dependency version in Chart.yaml
uses: mikefarah/yq@v4.34.2
with:
cmd: yq -i eval '.dependencies[1].version = "${{ env.HELM_VERSION }}"' charts/traceability-foss/Chart.yaml

- name: Update frontend version in frontend/Chart.yaml
uses: mikefarah/yq@v4.34.2
with:
cmd: yq -i eval '.version = "${{ env.HELM_VERSION }}"' charts/traceability-foss/charts/frontend/Chart.yaml

- name: Update frontend appVersion in frontend/Chart.yaml
uses: mikefarah/yq@v4.34.2
with:
cmd: yq -i eval '.appVersion = "${{ github.ref_name }}"' charts/traceability-foss/charts/frontend/Chart.yaml

- name: Update backend version in backend/Chart.yaml
uses: mikefarah/yq@v4.34.2
with:
cmd: yq -i eval '.version = "${{ env.HELM_VERSION }}"' charts/traceability-foss/charts/backend/Chart.yaml

- name: Update backend appVersion in frontend/Chart.yaml
uses: mikefarah/yq@v4.34.2
with:
cmd: yq -i eval '.appVersion = "${{ github.ref_name }}"' charts/traceability-foss/charts/backend/Chart.yaml

- name: Update the frontend package.json appVersion
run: |
npm install -g json
json -I -f frontend/package.json -e "this.version='${{ github.ref_name }}'"

- name: Prepare Helm release
uses: peter-evans/create-pull-request@v5
with:
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- ErrorMessage field to investigation and alerts
- Cucumber tests for quality investigations
- Refactored asset structure to allow new API for assets-as-planned
- Optional parameter "receiverBpn" to /investigations endpoint
- NEW API /api/assets/as-planned
- NEW API DELETE /api/registry

### Changed

- API BREAKING CHANGE: /api/assets changed to /api/assets/as-built
- Changed digitalTwinRegistryRestTemplate to use token in requests
- Update asBuild test data to 1.5.3 and asPlanned to 1.5.1
- Changed transfer notification logic not to break iteration loop when sending notifications to bpn with more than 1 connector endpoints
Expand All @@ -25,6 +28,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Readme / Docker Notice information as required in TRGs
- Removed references to GitHub registry and added docker hub for tractusx instead
- Removed UX breaking black status box
- Updated cypress-io/github-action from 5.8.4 to 6.0.0
- Updated asciidoctor-maven-plugin from 2.2.3 to 2.2.4
- Updated owasp:dependency-check from 8.3.1 to 8.4.0
- Updated commons-io from 2.11.0 to 2.13.0
- Updated snakeyaml from 2.0 to 2.1

### Removed

Expand Down
4 changes: 2 additions & 2 deletions DEPENDENCIES_BACKEND
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ maven/mavencentral/com.squareup.okhttp3/okhttp/4.10.0, Apache-2.0 AND MPL-2.0, a
maven/mavencentral/com.squareup.okio/okio-jvm/3.0.0, Apache-2.0, approved, clearlydefined
maven/mavencentral/com.zaxxer/HikariCP/5.0.1, Apache-2.0, approved, clearlydefined
maven/mavencentral/commons-fileupload/commons-fileupload/1.5, Apache-2.0, approved, #7109
maven/mavencentral/commons-io/commons-io/2.11.0, Apache-2.0, approved, CQ23745
maven/mavencentral/commons-io/commons-io/2.13.0, Apache-2.0, approved, #8717
maven/mavencentral/commons-logging/commons-logging/1.2, Apache-2.0, approved, CQ10162
maven/mavencentral/dev.failsafe/failsafe-okhttp/3.3.2, Apache-2.0, approved, #9178
maven/mavencentral/dev.failsafe/failsafe/3.3.2, Apache-2.0, approved, #9268
Expand Down Expand Up @@ -220,4 +220,4 @@ maven/mavencentral/org.thymeleaf/thymeleaf/3.1.1.RELEASE, Apache-2.0, approved,
maven/mavencentral/org.unbescape/unbescape/1.1.6.RELEASE, Apache-2.0, approved, CQ18904
maven/mavencentral/org.webjars/swagger-ui/4.18.1, Apache-2.0, approved, #7850
maven/mavencentral/org.webjars/webjars-locator-core/0.52, MIT, approved, clearlydefined
maven/mavencentral/org.yaml/snakeyaml/2.0, Apache-2.0 AND (Apache-2.0 OR BSD-3-Clause OR EPL-1.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later), approved, #7275
maven/mavencentral/org.yaml/snakeyaml/2.1, Apache-2.0, approved, #9847
15 changes: 12 additions & 3 deletions charts/traceability-foss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Removed

## [6.0.2] - 2023-08-22
## [1.3.13] - 2023-08-22
### Added
- THIS IS A TEST

### Changed
- This is a test changelog entry

## [6.0.0] - 2023-08-21

### Removed

## [1.3.12] - 2023-08-22

### Added
- Initialization of chart changelogs


Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ spec:
namespace: {{ .Values.namespace | default .Release.Namespace }}
{{- with .Values.podAnnotations }}
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { otherPartsAssets } from './otherParts.model';
import { mockCustomerAssets, mockSupplierAssets } from './otherParts.test.model';

export const otherPartsHandlers = [
rest.get(`*${environment.apiUrl}/assets`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built`, (req, res, ctx) => {
const pagination = extractPagination(req);
const owner = req.url.searchParams.get('owner');

Expand All @@ -42,7 +42,7 @@ export const otherPartsHandlers = [
];

export const otherPartsHandlersTest = [
rest.get(`*${environment.apiUrl}/assets`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built`, (req, res, ctx) => {
const owner = req.url.searchParams.get('owner');

switch (owner) {
Expand Down
22 changes: 11 additions & 11 deletions frontend/src/app/mocks/services/parts-mock/parts.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,68 +26,68 @@ import { getAssetById, mockBmwAssets } from './parts.model';
import { mockAssetList, mockAssets } from './parts.test.model';

export const partsHandlers = [
rest.get(`*${environment.apiUrl}/assets`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built`, (req, res, ctx) => {
const pagination = extractPagination(req);

return res(ctx.status(200), ctx.json(applyPagination(mockBmwAssets, pagination)));
}),


rest.post(`*${environment.apiUrl}/assets/detail-information`, async (req, res, ctx) => {
rest.post(`*${environment.apiUrl}/assets/as-built/detail-information`, async (req, res, ctx) => {
const { assetIds } = await req.json();

const response = assetIds.map(id => getAssetById(id));
return res(ctx.status(200), ctx.json(response.filter(data => !!data)));
}),

rest.get(`*${environment.apiUrl}/assets/:partId`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built/:partId`, (req, res, ctx) => {
const { partId } = req.params;
const currentAsset = getAssetById(partId as string);
return res(ctx.status(200), ctx.json(currentAsset));
}),

rest.patch(`*${environment.apiUrl}/assets/:partId`, (req, res, ctx) => {
rest.patch(`*${environment.apiUrl}/assets/as-built/:partId`, (req, res, ctx) => {
const { partId } = req.params;
const currentPart = getAssetById(partId as string);
return res(ctx.status(200), ctx.json({ ...currentPart, ...req.json() }));
}),

rest.get(`*${environment.apiUrl}/assets/:assetId/children/:childId`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built/:assetId/children/:childId`, (req, res, ctx) => {
const { childId } = req.params;
const currentAsset = getAssetById(childId as string);
return res(ctx.status(200), ctx.json(currentAsset));
}),
];

export const partsHandlersTest = [
rest.get(`*${environment.apiUrl}/assets`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built`, (req, res, ctx) => {
return res(ctx.status(200), ctx.json(mockAssets));
}),

rest.get(`*${environment.apiUrl}/assets/my`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built/my`, (req, res, ctx) => {
return res(ctx.status(200), ctx.json(mockAssets));
}),

rest.post(`*${environment.apiUrl}/assets/detail-information`, async (req, res, ctx) => {
rest.post(`*${environment.apiUrl}/assets/as-built/detail-information`, async (req, res, ctx) => {
const { assetIds } = await req.json();

const response = assetIds.map(id => mockAssetList[id] || getAssetById(id));
return res(ctx.status(200), ctx.json(response.filter(data => !!data)));
}),

rest.get(`*${environment.apiUrl}/assets/:partId`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built/:partId`, (req, res, ctx) => {
const { partId } = req.params;
const currentAsset = mockAssetList[partId as string];
return res(ctx.status(200), ctx.json(currentAsset));
}),

rest.patch(`*${environment.apiUrl}/assets/:partId`, (req, res, ctx) => {
rest.patch(`*${environment.apiUrl}/assets/as-built/:partId`, (req, res, ctx) => {
const { partId } = req.params;
const currentPart = mockAssetList[partId as string];
return res(ctx.status(200), ctx.json({ ...currentPart, ...req.json() }));
}),

rest.get(`*${environment.apiUrl}/assets/:assetId/children/:childId`, (req, res, ctx) => {
rest.get(`*${environment.apiUrl}/assets/as-built/:assetId/children/:childId`, (req, res, ctx) => {
const { childId } = req.params;
const currentAsset = mockAssetList[childId as string];
return res(ctx.status(200), ctx.json(currentAsset));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class OtherPartsService {
.set('owner', 'SUPPLIER');

return this.apiService
.getBy<PartsResponse>(`${this.url}/assets`, params)
.getBy<PartsResponse>(`${this.url}/assets/as-built`, params)
.pipe(map(parts => PartsAssembler.assembleOtherParts(parts)));
}

Expand All @@ -58,7 +58,7 @@ export class OtherPartsService {
.set('owner', 'CUSTOMER');

return this.apiService
.getBy<PartsResponse>(`${this.url}/assets`, params)
.getBy<PartsResponse>(`${this.url}/assets/as-built`, params)
.pipe(map(parts => PartsAssembler.assembleOtherParts(parts)));
}
}
8 changes: 4 additions & 4 deletions frontend/src/app/modules/shared/service/parts.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ export class PartsService {
.set('owner', 'OWN');

return this.apiService
.getBy<PartsResponse>(`${this.url}/assets`, params)
.getBy<PartsResponse>(`${this.url}/assets/as-built`, params)
.pipe(map(parts => PartsAssembler.assembleParts(parts)));
}

public getPart(id: string): Observable<Part> {
return this.apiService
.get<PartResponse>(`${this.url}/assets/${id}`)
.get<PartResponse>(`${this.url}/assets/as-built/${id}`)
.pipe(map(part => PartsAssembler.assemblePart(part)));
}

public patchPart({ qualityType, id }: Part): Observable<Part> {
const patchBody = { qualityType };

return this.apiService.patch<Part>(`${this.url}/assets/${id}`, patchBody);
return this.apiService.patch<Part>(`${this.url}/assets/as-built/${id}`, patchBody);
}

public getPartDetailOfIds(assetIds: string[]): Observable<Part[]> {
return this.apiService
.post<PartResponse[]>(`${this.url}/assets/detail-information`, { assetIds })
.post<PartResponse[]>(`${this.url}/assets/as-built/detail-information`, { assetIds })
.pipe(map(parts => PartsAssembler.assemblePartList(parts)));
}

Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ SPDX-License-Identifier: Apache-2.0
<start-class>org.eclipse.tractusx.traceability.TraceabilityApplication</start-class>

<!-- versions for Maven plugin -->
<ascii-doctor.maven.plugin.version>2.2.3</ascii-doctor.maven.plugin.version>
<ascii-doctor.maven.plugin.version>2.2.4</ascii-doctor.maven.plugin.version>
<checkstyle-plugin.version>3.2.1</checkstyle-plugin.version>
<compiler-plugin.version>3.10.1</compiler-plugin.version>
<findsecbugs-plugin.version>1.12.0</findsecbugs-plugin.version>
<gmavenplus-plugin.version>2.1.0</gmavenplus-plugin.version>
<install-plugin.version>3.0.1</install-plugin.version>
<jacoco-plugin.version>0.8.8</jacoco-plugin.version>
<jar-plugin.version>3.3.0</jar-plugin.version>
<owasp-plugin.version>8.3.1</owasp-plugin.version>
<owasp-plugin.version>8.4.0</owasp-plugin.version>
<spotbugs-plugin.version>4.7.3.0</spotbugs-plugin.version>
<spring-boot-maven-plugin.version>3.0.2</spring-boot-maven-plugin.version>
<apache-groovy.version>4.0.11</apache-groovy.version>
Expand Down Expand Up @@ -84,7 +84,7 @@ SPDX-License-Identifier: Apache-2.0
<findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
<swagger-annotation.version>1.6.10</swagger-annotation.version>
<jackson-databind-nullable.version>0.2.6</jackson-databind-nullable.version>
<commons-io.version>2.11.0</commons-io.version>
<commons-io.version>2.13.0</commons-io.version>
<jose4j.version>0.9.3</jose4j.version>
<restito.version>1.1.0</restito.version>
<testcontainer-postgresql.version>1.17.6</testcontainer-postgresql.version>
Expand All @@ -97,7 +97,7 @@ SPDX-License-Identifier: Apache-2.0
<lombok.version>1.18.28</lombok.version>
<json-unit-assertj.version>2.38.0</json-unit-assertj.version>
<cucumber.version>7.12.1</cucumber.version>
<org-snakeyaml.version>2.0</org-snakeyaml.version>
<org-snakeyaml.version>2.1</org-snakeyaml.version>
<jackson.version>2.15.1</jackson.version>
<junit-bom.version>5.9.3</junit-bom.version>
<awaitility.version>3.0.0</awaitility.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package org.eclipse.tractusx.traceability.common.support

import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import org.eclipse.tractusx.traceability.assets.domain.asbuilt.model.Asset
import org.eclipse.tractusx.traceability.assets.domain.base.model.AssetBase
import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.JobDetailResponse

class AssetTestData {
Expand All @@ -29,7 +29,7 @@ class AssetTestData {
.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE, false)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)

List<Asset> readAndConvertAssetsForTests() {
List<AssetBase> readAndConvertAssetsForTests() {
try {
InputStream file = AssetTestData.class.getResourceAsStream("/data/irs_assets_v4.json")
JobDetailResponse response = mapper.readValue(file, JobDetailResponse.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package org.eclipse.tractusx.traceability.qualitynotification.alert.rest
import io.restassured.http.ContentType
import org.apache.commons.lang3.RandomStringUtils
import org.eclipse.tractusx.traceability.IntegrationSpecification
import org.eclipse.tractusx.traceability.assets.domain.asbuilt.model.Asset
import org.eclipse.tractusx.traceability.assets.domain.base.model.AssetBase
import org.eclipse.tractusx.traceability.common.security.JwtRole
import org.eclipse.tractusx.traceability.common.support.*
import org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.model.EDCNotification
Expand Down Expand Up @@ -110,7 +110,7 @@ class PublisherAlertsControllerIT extends IntegrationSpecification implements Ir

then:
partIds.each { partId ->
Asset asset = assetAsBuiltRepository().getAssetById(partId)
AssetBase asset = assetAsBuiltRepository().getAssetById(partId)
assert asset
assert asset.isActiveAlert()
}
Expand Down Expand Up @@ -498,7 +498,7 @@ class PublisherAlertsControllerIT extends IntegrationSpecification implements Ir
.body("id", Matchers.isA(Number.class))
then:
partIds.each { partId ->
Asset asset = assetAsBuiltRepository().getAssetById(partId)
AssetBase asset = assetAsBuiltRepository().getAssetById(partId)
assert asset
assert asset.isActiveAlert()
}
Expand Down
Loading
Loading