Skip to content

Commit

Permalink
fix: typo in apisix config to route to the right endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
  • Loading branch information
yshyn-iohk committed May 8, 2024
1 parent fafc62d commit ac706ef
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion cloud-agent/client/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperledger/cloud-agent-client-ts",
"name": "@hyperledger/identus-cloud-agent-client-ts",
"version": "0.0.1",
"description": "TypeScript OpenAPI client for Identus Cloud Agent",
"author": "allain.magyar@iohk.io",
Expand Down
16 changes: 2 additions & 14 deletions infrastructure/shared/apisix/conf/apisix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,13 @@ plugins:
- name: cors

routes:
- uri: /prism-agent/*
upstream_id: 4
plugins:
cors:
allow_origins: "*"
proxy-rewrite:
regex_uri: ["^/prism-agent/(.*)", "/$1"]
- uri: /cloud-agent/*
upstream_id: 4
plugins:
cors:
allow_origins: "*"
proxy-rewrite:
regex_uri: ["^/cloud-agent/(.*)", "/$1"]
- uri: /docs/prism-agent/api/*
upstream_id: 4
plugins:
proxy-rewrite:
regex_uri: ["^/docs/prism-agent/api/(.*)", "/docs/$1"]
- uri: /docs/cloud-agent/api/*
upstream_id: 4
plugins:
Expand All @@ -43,11 +31,11 @@ routes:
upstreams:
- id: 3
nodes:
"prism-agent:8090": 1 # didcom and system
"cloud-agent:8090": 1 # didcom and system
type: roundrobin
- id: 4
nodes:
"prism-agent:8085": 1 # tapir
"cloud-agent:8085": 1 # tapir
type: roundrobin
- id: 5
nodes:
Expand Down
2 changes: 1 addition & 1 deletion tests/performance-tests/agent-performance-tests-k6/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PRISM_AGENT_VERSION=1.30.1-SNAPSHOT
AGENT_VERSION=1.32.1-SNAPSHOT
PRISM_NODE_VERSION=2.2.1
VAULT_DEV_ROOT_TOKEN_ID=root
4 changes: 2 additions & 2 deletions tests/performance-tests/agent-performance-tests-k6/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ echo "K6 downloaded"
cd "$AGENT_DIR"

##sbt docker:publishLocal
PRISM_AGENT_VERSION=$(cut -d '"' -f 2 version.sbt)
AGENT_VERSION=$(cut -d '"' -f 2 version.sbt)

## back to performance folder
cd "$PERF_DIR"

# set version to env file
sed -i.bak "s/PRISM_AGENT_VERSION=.*/PRISM_AGENT_VERSION=${PRISM_AGENT_VERSION}/" "${ENV_FILE}" && rm -f "${ENV_FILE}.bak"
sed -i.bak "s/AGENT_VERSION=.*/AGENT_VERSION=${AGENT_VERSION}/" "${ENV_FILE}" && rm -f "${ENV_FILE}.bak"

# create agents in parallel
createIssuer &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const WAITING_LOOP_PAUSE_INTERVAL = Number(__ENV.WAITING_LOOP_PAUSE_INTER

/**
* URL for the Issuer agent.
* If not provided, the default value is "http://localhost:8080/prism-agent".
* If not provided, the default value is "http://localhost:8080/cloud-agent".
*/
export const ISSUER_AGENT_URL = __ENV.ISSUER_AGENT_URL || "http://localhost:8080/prism-agent";
export const ISSUER_AGENT_URL = __ENV.ISSUER_AGENT_URL || "http://localhost:8080/cloud-agent";

/**
* API key for the Issuer agent.
Expand All @@ -26,9 +26,9 @@ export const ISSUER_AGENT_API_KEY = __ENV.ISSUER_AGENT_API_KEY || "";

/**
* URL for the Holder agent.
* If not provided, the default value is "http://localhost:8090/prism-agent".
* If not provided, the default value is "http://localhost:8090/cloud-agent".
*/
export const HOLDER_AGENT_URL = __ENV.HOLDER_AGENT_URL || "http://localhost:8090/prism-agent";
export const HOLDER_AGENT_URL = __ENV.HOLDER_AGENT_URL || "http://localhost:8090/cloud-agent";

/**
* API key for the Holder agent.
Expand All @@ -38,9 +38,9 @@ export const HOLDER_AGENT_API_KEY = __ENV.HOLDER_AGENT_API_KEY || "";

/**
* URL for the Verifier agent.
* If not provided, the default value is "http://localhost:8100/prism-agent".
* If not provided, the default value is "http://localhost:8100/cloud-agent".
*/
export const VERIFIER_AGENT_URL = __ENV.VERIFIER_AGENT_URL || "http://localhost:8100/prism-agent";
export const VERIFIER_AGENT_URL = __ENV.VERIFIER_AGENT_URL || "http://localhost:8100/cloud-agent";

/**
* API key for the Verifier agent.
Expand Down

0 comments on commit ac706ef

Please sign in to comment.