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

feat: use metadata prop Bundle-SymbolicName as artifact id. #75

Merged
merged 5 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 5 additions & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: SonarSource/sonarqube-scan-action@v1.1.0
- uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- uses: SonarSource/sonarqube-scan-action@v2.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/client/ManifestReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default class ManifestReader {
getArtifactMetadata(): Artifact {
return {
Id:
(this.manifestEntries.get('Origin-Bundle-SymbolicName') as string) ||
(this.manifestEntries.get('Bundle-SymbolicName') as string).split(';')[0],
(this.manifestEntries.get('Bundle-SymbolicName') as string).split(';')[0] ||
(this.manifestEntries.get('Origin-Bundle-SymbolicName') as string),
Version: this.manifestEntries.get('Bundle-Version') as string,
Name: this.manifestEntries.get('Bundle-Name') as string,
Type: this.manifestEntries.get('SAP-BundleType') as ArtifactType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-Description:
Bundle-SymbolicName: com.sap.SFIHCM03.hcm2bizx.SFSFOffboardingGetOffbo
ardUserRecordWithExpabcd; singleton:=true
ardUserRecordWithExpabcd.EBZ; singleton:=true
Origin-Bundle-SymbolicName: com.sap.SFIHCM03.hcm2bizx.SFSFOffboardingG
etOffboardUserRecordWithExpabcd
Bundle-ManifestVersion: 2
Expand Down
2 changes: 1 addition & 1 deletion src/test/integration/IntegrationFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Integration flow', () => {
});

it('fetch an integration flow ', async () => {
const iFlowId = sciRestClient.getArtifactMetadata(path.join(artiFactDirectory, 'TestPackage', iFlowFolder)).Id;
const iFlowId = sciRestClient.getArtifactMetadata(path.join(artiFactDirectory, 'Testpackage', iFlowFolder)).Id;
const readStream = (await sciRestClient.getArtifact(iFlowId, '1.0.0', 'IntegrationFlow')) as ReadStream;

const writer = fs.createWriteStream(path.join(artiFactDirectory, 'test.zip'));
Expand Down
Loading