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

Implements AASX File Integration in Submodel Repository #149

Merged
merged 6 commits into from
Dec 1, 2023

Conversation

mdanish98
Copy link
Contributor

  • Adds logging for file deletion due to invalid path in InMemorySubmodelRepository
  • Replaces InputStreamResource with FileSystemResource in SubmodelRepositoryApiHTTPController (Fixes file appearance issue when requesting over HTTP )

Signed-off-by: Mohammad Ghazanfar Ali Danish [email protected]

- Adds logging for file deletion due to invalid path in InMemorySubmodelRepository
- Replaces InputStreamResource with FileSystemResource in SubmodelRepositoryApiHTTPController
    (Fixes file appearance issue when requesting over HTTP )

Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>
Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>
Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>

File actualFile = submodelRepo.getFileByPathSubmodel("http://i40.customer.com/type/1/1/1A7B62B529F19152", "OperatingManual.DigitalFile_PDF");

assertEquals(expectedFileExtension, getExtension(actualFile.getName()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use assertFileContents here?

@@ -0,0 +1,116 @@
package org.eclipse.digitaltwin.basyx.aasenvironment;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing license header

@@ -0,0 +1,165 @@
package org.eclipse.digitaltwin.basyx.aasenvironment;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing license header

Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>
Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>
@mateusmolina-iese
Copy link
Member

Approved!

@FrankSchnicke FrankSchnicke merged commit 745b31f into eclipse-basyx:main Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants