Skip to content

Commit

Permalink
add curl request to check resources
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kiptoon <[email protected]>
  • Loading branch information
KiptoonKipkurui committed Jan 28, 2024
1 parent abc4ef1 commit cc81104
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/e2etests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# - name: System Checks
# run: mesheryctl system check

- name: Build MeshSync docker image
- name: Build MeshSync Docker image
run: |
docker build -t meshery-meshsync:test .
- name: Replace MeshSync
Expand All @@ -87,4 +87,15 @@ jobs:
kubectl scale --replicas=1 deployment ${DEPLOYMENT_NAME} -n meshery
kubectl describe deployment -n $NAMESPACE ${DEPLOYMENT_NAME}
shell: bash
kubectl get pods -A
CLUSTER_ID=kubectl get ns kube-system -o jsonpath'{.metadata.uid}'
# Deploy pod
kubectl run nginx-pod --image=nginx --labels=app=web,tier=frontend,purpose=meshsync-test
curl --location 'http://localhost:9081/api/system/meshsync/resources?kind=Pod&status=true&spec=true&annotations=true&labels=true&clusterIds=%5B"$CLUSTER_ID"%5D&page=0&pagesize=25&search=&order=' \
--header 'meshery-token: ${{ secrets.PROVIDER_TOKEN }}' \
--header 'Cookie: meshery-provider=Meshery; token=${{ secrets.PROVIDER_TOKEN }}'
shell: bash


0 comments on commit cc81104

Please sign in to comment.