Skip to content

Commit c9d2e48

Browse files
adding orderer
1 parent c203c9a commit c9d2e48

19 files changed

+254
-15
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: "3.7"
2+
3+
volumes:
4+
orderer.example.com:
5+
6+
networks:
7+
supply_chain_carbon:
8+
name: supply_chain_carbon
9+
external: true
10+
11+
services:
12+
orderer.example.com:
13+
container_name: orderer2.example.com
14+
extends:
15+
file: docker-compose-base.yaml
16+
service: orderer-base
17+
environment:
18+
- ORDERER_GENERAL_LISTENPORT=8050
19+
- ORDERER_ADMIN_LISTENADDRESS=0.0.0.0:8053
20+
- ORDERER_OPERATIONS_LISTENADDRESS=orderer2.example.com:10443
21+
working_dir: /root
22+
command: orderer
23+
volumes:
24+
- ../../channel-artifacts/carbonchannel.block:/etc/hyperledger/orderer/orderer.genesis.block
25+
- ../../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/etc/hyperledger/orderer/msp
26+
- ../../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/etc/hyperledger/orderer/tls
27+
- orderer2.example.com:/var/hyperledger/production/orderer
28+
ports:
29+
- 8050:8050
30+
- 8053:8053
31+
- 10443:10443
32+
networks:
33+
- supply_chain_carbon
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: "3.7"
2+
3+
volumes:
4+
orderer.example.com:
5+
6+
networks:
7+
supply_chain_carbon:
8+
name: supply_chain_carbon
9+
external: true
10+
11+
services:
12+
orderer.example.com:
13+
container_name: orderer3.example.com
14+
extends:
15+
file: docker-compose-base.yaml
16+
service: orderer-base
17+
environment:
18+
- ORDERER_GENERAL_LISTENPORT=9050
19+
- ORDERER_ADMIN_LISTENADDRESS=0.0.0.0:9053
20+
- ORDERER_OPERATIONS_LISTENADDRESS=orderer2.example.com:11443
21+
working_dir: /root
22+
command: orderer
23+
volumes:
24+
- ../../channel-artifacts/carbonchannel.block:/etc/hyperledger/orderer/orderer.genesis.block
25+
- ../../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/msp:/etc/hyperledger/orderer/msp
26+
- ../../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/:/etc/hyperledger/orderer/tls
27+
- orderer3.example.com:/var/hyperledger/production/orderer
28+
ports:
29+
- 9050:9050
30+
- 9053:9053
31+
- 11443:11443
32+
networks:
33+
- supply_chain_carbon

network/config/configtx.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Organizations:
3939

4040
OrdererEndpoints:
4141
- 10.184.0.5:7050
42+
- 10.184.0.6:8050
43+
- 10.184.0.7:9050
4244

4345
- &Kementrian
4446
# DefaultOrg defines the organization which is used in the sampleconfig
@@ -202,13 +204,25 @@ Orderer: &OrdererDefaults
202204
# to include the OrdererEndpoints item in your org definition
203205
Addresses:
204206
- 10.184.0.5:7050
207+
- 10.184.0.6:8050
208+
- 10.184.0.7:9050
205209

206210
EtcdRaft:
207211
Consenters:
208212
- Host: 10.184.0.5
209213
Port: 7050
210214
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
211215
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
216+
217+
- Host: 10.184.0.6
218+
Port: 8050
219+
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt
220+
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt
221+
222+
- Host: 10.184.0.7
223+
Port: 9050
224+
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
225+
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
212226
# Batch Timeout: The amount of time to wait before creating a batch
213227
BatchTimeout: 2s
214228
# Batch Size: Controls the number of messages batched into a block
@@ -293,6 +307,16 @@ Profiles:
293307
Port: 7050
294308
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
295309
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
310+
311+
- Host: orderer2.example.com
312+
Port: 8050
313+
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt
314+
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt
315+
316+
- Host: orderer3.example.com
317+
Port: 9050
318+
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
319+
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
296320
Organizations:
297321
- *OrdererOrg
298322
Capabilities: *OrdererCapabilities

network/organizations/fabric-ca/registerEnroll.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ function createOrderer() {
234234
fabric-ca-client register --caname ca.orderer.example.com --id.name orderer --id.secret ordererpw --id.type orderer --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
235235
{ set +x; } 2>/dev/null
236236

237+
infoln "Registering orderer2"
238+
set -x
239+
fabric-ca-client register --caname ca.orderer.example.com --id.name orderer2 --id.secret ordererpw --id.type orderer --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
240+
{ set +x; } 2>/dev/null
241+
242+
infoln "Registering orderer3"
243+
set -x
244+
fabric-ca-client register --caname ca.orderer.example.com --id.name orderer3 --id.secret ordererpw --id.type orderer --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
245+
{ set +x; } 2>/dev/null
246+
237247
infoln "Registering the orderer admin"
238248
set -x
239249
fabric-ca-client register --caname ca.orderer.example.com --id.name ordererAdmin --id.secret ordererAdminpw --id.type admin --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
@@ -244,22 +254,58 @@ function createOrderer() {
244254
fabric-ca-client enroll -u https://orderer:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp" --csr.hosts orderer.example.com --csr.hosts 10.184.0.5 --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
245255
{ set +x; } 2>/dev/null
246256

257+
infoln "Generating the orderer2 msp"
258+
set -x
259+
fabric-ca-client enroll -u https://orderer2:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp" --csr.hosts orderer2.example.com --csr.hosts 10.184.0.6 --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
260+
{ set +x; } 2>/dev/null
261+
262+
infoln "Generating the orderer3 msp"
263+
set -x
264+
fabric-ca-client enroll -u https://orderer3:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/msp" --csr.hosts orderer3.example.com --csr.hosts 10.184.0.7 --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
265+
{ set +x; } 2>/dev/null
266+
247267
cp "${PWD}/organizations/ordererOrganizations/example.com/msp/config.yaml" "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/config.yaml"
268+
cp "${PWD}/organizations/ordererOrganizations/example.com/msp/config.yaml" "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp/config.yaml"
269+
cp "${PWD}/organizations/ordererOrganizations/example.com/msp/config.yaml" "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/msp/config.yaml"
248270

249271
infoln "Generating the orderer-tls certificates"
250272
set -x
251273
fabric-ca-client enroll -u https://orderer:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls" --enrollment.profile tls --csr.hosts orderer.example.com --csr.hosts 10.184.0.5 --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
252274
{ set +x; } 2>/dev/null
253275

276+
infoln "Generating the orderer2-tls certificates"
277+
set -x
278+
fabric-ca-client enroll -u https://orderer2:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls" --enrollment.profile tls --csr.hosts orderer2.example.com --csr.hosts 10.184.0.6 --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
279+
{ set +x; } 2>/dev/null
280+
281+
infoln "Generating the orderer3-tls certificates"
282+
set -x
283+
fabric-ca-client enroll -u https://orderer3:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls" --enrollment.profile tls --csr.hosts orderer3.example.com --csr.hosts 10.184.0.7 --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
284+
{ set +x; } 2>/dev/null
285+
254286
# Copy the tls CA cert, server cert, server keystore to well known file names in the orderer's tls directory that are referenced by orderer startup config
255287
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"
256288
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/signcerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt"
257289
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/keystore/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.key"
258290

291+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/tlscacerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/ca.crt"
292+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/signcerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt"
293+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/keystore/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.key"
294+
295+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/tlscacerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/ca.crt"
296+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/signcerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt"
297+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/keystore/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.key"
298+
259299
# Copy orderer org's CA cert to orderer's /msp/tlscacerts directory (for use in the orderer MSP definition)
260300
mkdir -p "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts"
261301
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.orderer.example.com-cert.pem"
262302

303+
mkdir -p "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp/tlscacerts"
304+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/tlscacerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/msp/tlscacerts/tlsca.orderer2.example.com-cert.pem"
305+
306+
mkdir -p "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/msp/tlscacerts"
307+
cp "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/tlscacerts/"* "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/msp/tlscacerts/tlsca.orderer3.example.com-cert.pem"
308+
263309
infoln "Generating the admin msp"
264310
set -x
265311
fabric-ca-client enroll -u https://ordererAdmin:[email protected]:9054 --caname ca.orderer.example.com -M "${PWD}/organizations/ordererOrganizations/example.com/users/[email protected]/msp" --tls.certfiles "${PWD}/organizations/fabric-ca/ordererOrg/ca-cert.pem"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

network/scripts/createChannel.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ createChannel() {
5050
sleep $DELAY
5151
set -x
5252
. scripts/orderer.sh ${CHANNEL_NAME}> /dev/null 2>&1
53+
. scripts/orderer2.sh ${CHANNEL_NAME}> /dev/null 2>&1
54+
. scripts/orderer3.sh ${CHANNEL_NAME}> /dev/null 2>&1
5355

5456
res=$?
5557
{ set +x; } 2>/dev/null

network/scripts/networkStart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function runHost2OrgContainer() {
4949
infoln "Starting docker container for All Organizations"
5050
println ""
5151

52-
COMPOSE_FILES="-f compose/multi-host/docker-compose-host2-supplychain.yaml"
52+
COMPOSE_FILES="-f compose/multi-host/docker-compose-host2-supplychain.yaml -f compose/multi-host/docker-compose-host2-orderer.yaml"
5353
docker-compose ${COMPOSE_FILES} up -d 2>&1
5454

5555
println ""
@@ -59,7 +59,7 @@ function runHost3OrgContainer() {
5959
infoln "Starting docker container for All Organizations"
6060
println ""
6161

62-
COMPOSE_FILES="-f compose/multi-host/docker-compose-host3-supplychain.yaml"
62+
COMPOSE_FILES="-f compose/multi-host/docker-compose-host3-supplychain.yaml -f compose/multi-host/docker-compose-host3-orderer.yaml"
6363
docker-compose ${COMPOSE_FILES} up -d 2>&1
6464

6565
println ""

network/scripts/orderer2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export PATH=${ROOTDIR}/../bin:${PWD}/../bin:$PATH
77
export ORDERER_ADMIN_TLS_SIGN_CERT=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt /dev/null 2>&1
88
export ORDERER_ADMIN_TLS_PRIVATE_KEY=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.key > /dev/null 2>&1
99

10-
osnadmin channel join --channelID ${channel_name} --config-block ./channel-artifacts/${channel_name}.block -o localhost:7055 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY" >> log.txt 2>&1
10+
osnadmin channel join --channelID ${channel_name} --config-block ./channel-artifacts/${channel_name}.block -o 10.184.0.6:8053 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY" >> log.txt 2>&1

network/scripts/orderer3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export PATH=${ROOTDIR}/../bin:${PWD}/../bin:$PATH
77
export ORDERER_ADMIN_TLS_SIGN_CERT=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt /dev/null 2>&1
88
export ORDERER_ADMIN_TLS_PRIVATE_KEY=${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.key > /dev/null 2>&1
99

10-
osnadmin channel join --channelID ${channel_name} --config-block ./channel-artifacts/${channel_name}.block -o localhost:7057 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY" >> log.txt 2>&1
10+
osnadmin channel join --channelID ${channel_name} --config-block ./channel-artifacts/${channel_name}.block -o 10.184.0.7:9053 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY" >> log.txt 2>&1
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
from locust import HttpUser, task, between
22
import json
33

4-
class TestCreatePerjalanan(HttpUser):
4+
class TestCreatePengajuan(HttpUser):
55
wait_time = between(0.5, 3.0)
66
host = 'http://34.101.232.196:8000/api/v1'
77

88

99

1010
def on_start(self):
1111
""" on_start is called when a Locust start before any task is scheduled """
12-
global ManajerPerusahaan
12+
global token
1313
response = self.client.post("/auth/login", json = {"username": "manager","password": "123"})
14-
ManajerPerusahaan = response.json()['data']['token']
14+
token = response.json()['data']['token']
1515

1616

1717
def on_stop(self):
1818
""" on_stop is called when the TaskSet is stopping """
1919
pass
2020

2121
@task(1)
22-
def create_shipment(self):
22+
def create_dpengajuan(self):
2323
body = {
24-
"idSupplyChain": "7f6df7c0-d55d-44e8-ac5e-f64e34302a69",
25-
"idDivisiPenerima": "7bdcc369-e845-4787-b06a-9a0d90a399d1",
26-
"waktuBerangkat": "2024-08-19T13:00",
27-
"idTransportasi": "ad415dc0-fe41-46e5-a6c5-d343eaa41ef4",
28-
"beratMuatan": "1"
29-
}
24+
"idSertifikat": "856b4063-20e2-4b6d-a3f4-4c3d205f4f0e",
25+
"status": "Menunggu Persetujuan Bank",
26+
"idPembeli": "19d738ba-fe56-4bc1-887e-cc3856238fa7",
27+
"idPenjual": "36cf204f-58f3-44a8-8b9a-49e63d847821"
28+
}
3029

3130

32-
response = self.client.post(f'/company/shipment', json = body, headers = {'Authorization': f'{ManajerPerusahaan}'} )
31+
response = self.client.post(f'/dokumen', json = body, headers = {'Authorization': f'{token}'} )
3332
print(response.json())
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from locust import HttpUser, task, between
2+
3+
class TestIdentifierCarbonTransaction(HttpUser):
4+
wait_time = between(0.5, 3.0)
5+
host = 'http://34.101.232.196:8000/api/v1'
6+
7+
8+
def on_start(self):
9+
""" on_start is called when a Locust start before any task is scheduled """
10+
11+
12+
def on_stop(self):
13+
""" on_stop is called when the TaskSet is stopping """
14+
pass
15+
16+
17+
@task(1)
18+
def identifier_carbon_transaction(self):
19+
headers = {'Authorization': f'{"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImMyYjVmZjA5LWNmMGMtNDI3OS04OGIyLWQ4MjYyZjdhNDgyYiIsInVzZXJuYW1lIjoiY29tcGFueSIsImVtYWlsIjoiY29tcGFueUBnbWFpbC5jb20iLCJ1c2VyVHlwZSI6ImFkbWluLXBlcnVzYWhhYW4iLCJvcmdhbml6YXRpb25OYW1lIjoic3VwcGx5Y2hhaW4iLCJpZFBlcnVzYWhhYW4iOiJlN2Q0N2VhYy1jNTZjLTRjMTAtYjFhOS1hNzY2YmNiMWQ4ZjQiLCJpYXQiOjE3MTYzMzk3ODEsImV4cCI6MTcxNjM0Njk4MX0.dPdD0hti8-1bjaVujzA1fmMW8t0vpDLp8nfI97tfOlk"}'}
20+
idCt='859dbf54-39b3-43cc-8c6a-8b8937b12c9f'
21+
response = self.client.post(f'/carbon_trading/transactions/identifier/{idCt}', headers = headers )
22+
print(response.json())
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from locust import HttpUser, task, between
2+
3+
class TestIdentifierPerjalanan(HttpUser):
4+
wait_time = between(0.5, 3.0)
5+
host = 'http://34.101.232.196:8000/api/v1'
6+
7+
8+
def on_start(self):
9+
""" on_start is called when a Locust start before any task is scheduled """
10+
11+
12+
def on_stop(self):
13+
""" on_stop is called when the TaskSet is stopping """
14+
pass
15+
16+
17+
@task(1)
18+
def identifier_perjalanan(self):
19+
20+
headers = {'Authorization': f'{"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjM5YTY3NWNmLWU5NTktNDIxOC1hZmEzLWUyNTJmNmE3YTU5MyIsInVzZXJuYW1lIjoibWFuYWdlciIsImVtYWlsIjoibWFuYWplckBnbWFpbC5jb20iLCJ1c2VyVHlwZSI6Im1hbmFnZXItcGVydXNhaGFhbiIsIm9yZ2FuaXphdGlvbk5hbWUiOiJzdXBwbHljaGFpbiIsIm5payI6IiIsImlkRGl2aXNpIjoiMzZiZjZiMjgtMDViZi00NDdlLWEyZDctMzgxYWEzYjEzNTliIiwiaWRQZXJ1c2FoYWFuIjoiZTdkNDdlYWMtYzU2Yy00YzEwLWIxYTktYTc2NmJjYjFkOGY0IiwiaWRQZXJqYWxhbmFuIjpbXSwiaWF0IjoxNzE2MzQwMDMxLCJleHAiOjE3MTYzNDcyMzF9.TYwfJQ5ZVxaCMMvbytTyPDa5-jStzeFN-2x3gF-dQ1w"}'}
21+
idPerjalanan='9d98d43f-ef23-4e87-8556-fc60af0778ab'
22+
response = self.client.post(f'/company/shipment/identifier/{idPerjalanan}', headers = headers )
23+
print(response.json())
24+
25+

0 commit comments

Comments
 (0)