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 6, 2024
1 parent 49f2ee3 commit b0a2628
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docker/dockerfile.daemon
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN cargo build --release --bin=daemon
FROM rust:1.79-slim-buster

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

COPY --from=build /app/target/release/ ./
CMD ["./daemon"]
Expand Down
2 changes: 1 addition & 1 deletion docker/dockerfile.rpc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FROM rust:1.79-slim-buster
WORKDIR /fabric

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

COPY --from=build /app/target/release/rpc .
COPY ./data ./data
Expand Down
10 changes: 0 additions & 10 deletions test/expect
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,8 @@ 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')
NODE_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')

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=12
echo "Checking executation"
Expand Down
8 changes: 4 additions & 4 deletions test/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ spec:
image: daemon:1.0
env:
- name: DAEMON_CONFIG
value: "/fabric/daemon.toml"
value: "/fabric/config/daemon.toml"
volumeMounts:
- name: daemon-vol
mountPath: /fabric
mountPath: /fabric/config
volumes:
- name: daemon-vol
configMap:
Expand Down Expand Up @@ -194,10 +194,10 @@ spec:
- containerPort: 80
env:
- name: RPC_CONFIG
value: "/fabric/rpc.toml"
value: "/fabric/config/rpc.toml"
volumeMounts:
- name: rpc-vol
mountPath: /fabric
mountPath: /fabric/config
volumes:
- name: rpc-vol
configMap:
Expand Down

0 comments on commit b0a2628

Please sign in to comment.