Skip to content

Commit

Permalink
Merge branch 'IMN-896_Supertest-tenant' into IMN-893_Supertest-attrib…
Browse files Browse the repository at this point in the history
…ute-registry
  • Loading branch information
rGregnanin committed Nov 19, 2024
2 parents cd02696 + ea8115b commit 6a2452c
Show file tree
Hide file tree
Showing 365 changed files with 35,452 additions and 5,997 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: "Build & Push"
on:
push:
branches:
- "main"
- "develop"
- "hotfix/*"
tags:
- "*"
paths:
Expand Down Expand Up @@ -55,8 +56,16 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2

- name: (latest) Docker metadata
id: meta_latest
- name: Normalize ref name
id: norm_ref
run: |
set -euo pipefail
NORM_REF="$(echo ${{ github.ref_name }} | sed -e 's/\//-/g')"
echo "NORM_REF=$NORM_REF" >> $GITHUB_ENV
- name: (branch) Docker metadata
id: meta_branch
if: ${{ github.ref_type == 'branch' }}
uses: docker/metadata-action@60a0d343a0d8a18aedee9d34e62251f752153bdb
with:
Expand All @@ -66,7 +75,7 @@ jobs:
prefix=
suffix=
tags: |
type=raw,value=2.x-latest
type=raw,value=${{ env.NORM_REF }}
- name: (tag) Docker metadata
id: meta_tag
Expand All @@ -88,5 +97,5 @@ jobs:
context: .
file: packages/${{ matrix.package }}/Dockerfile
push: true
tags: ${{ github.ref_type == 'branch' && steps.meta_latest.outputs.tags || steps.meta_tag.outputs.tags }}
labels: ${{ github.ref_type == 'branch' && steps.meta_latest.outputs.labels || steps.meta_tag.outputs.labels }}
tags: ${{ github.ref_type == 'branch' && steps.meta_branch.outputs.tags || steps.meta_tag.outputs.tags }}
labels: ${{ github.ref_type == 'branch' && steps.meta_branch.outputs.labels || steps.meta_tag.outputs.labels }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
save-prefix=
auto-install-peers = false
strict-peer-dependencies = true
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ headers {
body:multipart-form {
name: testone 2
prettyName: testone 2
doc: @file(/Users/ecamel/Downloads/Backend for Frontend Micro Service.postman_collection.json)
doc: @file()
}

docs {
Expand Down
2 changes: 1 addition & 1 deletion collections/bff/authorization/get Session Token.bru
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ headers {

body:json {
{
"identity_token": {{JWT}}
"identity_token": "{{process.env.JWT}}"
}
}

Expand Down
8 changes: 3 additions & 5 deletions collections/bff/catalog/Add new e-service document.bru
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ post {
}

params:path {
eServiceId: 26f433e1-2c3c-4022-a14e-3c300baefc51
descriptorId: abafb202-4f61-42bf-be2f-4efa5d4d0bc4
eServiceId: {{eserviceId}}
descriptorId: {{descriptorId}}
}

headers {
Expand All @@ -21,10 +21,8 @@ headers {
Content-Type: multipart/form-data
}



body:multipart-form {
kind: INTERFACE
prettyName: asdasd
doc: @file(/Users/ecamel/Downloads/Interfaccia.yaml)
doc: @file()
}
6 changes: 2 additions & 4 deletions collections/bff/catalog/Publish the selected descriptor.bru
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ post {
}

params:path {
eServiceId: <uuid>
descriptorId: <uuid>
eServiceId: {{eserviceId}}
descriptorId: {{descriptorId}}
}

headers {
Authorization: {{JWT}}
x-correlation-id: {{correlation-id}}
}


20 changes: 20 additions & 0 deletions collections/bff/delegation/Approve Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Approve delegation
type: http
seq: 1
}

post {
url: {{host-bff}}/producer/delegations/:delegationId/approve
body: none
auth: none
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
23 changes: 23 additions & 0 deletions collections/bff/delegation/Create Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Create new delegation
type: http
seq: 1
}

post {
url: {{host-bff}}/producer/delegations
body: json
auth: none
}

body:json {
{
"eserviceId": "2f19b864-0fdc-4d2d-b01f-52bfad74fd34",
"delegateId": "aada3e71-c544-4fa0-beb8-81274ae0addf"
}
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
20 changes: 20 additions & 0 deletions collections/bff/delegation/Get Delegation ById.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Retrieves a delegation by ID
type: http
seq: 1
}

get {
url: {{host-bff}}/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
26 changes: 26 additions & 0 deletions collections/bff/delegation/Get Delegations.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: List delegations
type: http
seq: 1
}

get {
url: {{host-bff}}/delegations?offset=0&limit=50
body: none
auth: none
}

params:query {
offset: 0
limit: 50
~kind: DELEGATED_PRODUCER
~states: WAITING_FOR_APPROVAL
~delegatorIds:
~delegateIds:
~eserviceIds:
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
26 changes: 26 additions & 0 deletions collections/bff/delegation/Reject Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: Reject delegation
type: http
seq: 1
}

post {
url: {{host-bff}}/producer/delegations/:delegationId/reject
body: json
auth: none
}

body:json {
{
"rejectionReason": "I'm not feel comfortable with this delegation"
}
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
20 changes: 20 additions & 0 deletions collections/bff/delegation/Revoke Delegation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Revoke a delegation by ID
type: http
seq: 1
}

delete {
url: {{host-bff}}/producer/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: dd10132c-f3c9-45cf-994c-3a312bc4ab4e
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Health status endpoint
type: http
seq: 1
}

get {
url: {{host-delegation}}/status
body: none
auth: none
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Approves a delegation
type: http
seq: 4
}

post {
url: {{host-delegation}}/producer/delegations/:delegationId/approve
body: none
auth: none
}

params:path {
delegationId:
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Delegation Creation
type: http
seq: 3
}

post {
url: {{host-delegation}}/producer/delegations
body: json
auth: none
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}

body:json {
{
"eserviceId": "",
"delegateId": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: List producer delegations
type: http
seq: 1
}

get {
url: {{host-delegation}}/delegations?offset=0&limit=50
body: none
auth: none
}

params:query {
offset: 0
limit: 50
~kind: DELEGATED_PRODUCER
~delegationStates: WAITING_FOR_APPROVAL
~delegatorIds:
~delegateIds:
~eserviceIds:
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: Rejects a delegation
type: http
seq: 5
}

post {
url: {{host-delegation}}/producer/delegations/:delegationId/reject
body: json
auth: none
}

params:path {
delegationId:
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}

body:json {
{
"rejectionReason": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Retrieves a delegation
type: http
seq: 2
}

get {
url: {{host-delegation}}/delegations/:delegationId
body: none
auth: none
}

params:path {
delegationId: 123e4567-e89b-12d3-a456-426614174000
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
meta {
name: Revoke a delegation
type: http
seq: 6
}

delete {
url: {{host-delegation}}/producer/delegations/:delegationId
body: none
auth: none
}

headers {
Authorization: {{JWT}}
X-Correlation-Id: {{correlation-id}}
}
Loading

0 comments on commit 6a2452c

Please sign in to comment.