Skip to content

Commit

Permalink
chore: ci check
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Aug 5, 2024
1 parent c5a9e48 commit 9a5b44c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/dockerfile.rpc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ RUN cargo build --release --bin=rpc

FROM rust:1.79-slim-buster

WORKDIR /fabric

RUN apt update
RUN apt install -y build-essential pkg-config libssl-dev libsasl2-dev cmake

WORKDIR /app

COPY --from=build /app/target/release/rpc .
COPY ./data ./data

Expand Down
9 changes: 6 additions & 3 deletions test/expect
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ while true; do
done

TOKEN=$(curl --verbose --request POST --url https://dev-dflg0ssi.us.auth0.com/oauth/token --header 'content-type: application/json' --data $TEST_CREDENTIAL | jq -r '.access_token')
echo "token -> $TOKEN"

NODE_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')
echo "NODE_IP -> $NODE_IP"

POD_NAME=$(kubectl get pods -n demeter-rpc -o jsonpath='{.items[0].metadata.name}')
kubectl logs -n demeter-rpc $POD_NAME

NAMESPACE=$(./grpcurl -plaintext -vv -H "Authorization: Bearer $TOKEN" -d '{"name": "New Namespace"}' "$NODE_IP":30950 demeter.ops.v1alpha.ProjectService.CreateProject | jq -r '.namespace')

POD_NAME=$(kubectl get pods -n demeter-rpc -o jsonpath='{.items[0].metadata.name}')
kubectl logs -n demeter-rpc $POD_NAME

POD_NAME=$(kubectl get pods -n demeter-daemon -o jsonpath='{.items[0].metadata.name}')
kubectl logs -n demeter-daemon $POD_NAME

ATTEMPT=1
MAX_ATTEMPT=120

Expand Down

0 comments on commit 9a5b44c

Please sign in to comment.