Skip to content

Commit

Permalink
fix: undo rebase changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 committed Jul 10, 2023
1 parent 1e5942d commit 9f5ea04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ IMAGES := dockerhub/sunbird-rc-core dockerhub/sunbird-rc-nginx dockerhub/sunbird
dockerhub/sunbird-rc-public-key-service dockerhub/sunbird-rc-keycloak dockerhub/sunbird-rc-certificate-api \
dockerhub/sunbird-rc-certificate-signer dockerhub/sunbird-rc-notification-service dockerhub/sunbird-rc-claim-ms \
dockerhub/sunbird-rc-digilocker-certificate-api dockerhub/sunbird-rc-bulk-issuance dockerhub/sunbird-rc-metrics \
dockerhub/sunbird-rc-credentials-service
dockerhub/sunbird-rc-identity-service
dockerhub/sunbird-rc-credentials-service dockerhub/sunbird-rc-identity-service

build: java/registry/target/registry.jar
echo ${SOURCES}
Expand Down Expand Up @@ -43,16 +42,16 @@ test: build
@echo "Starting the test" && sh build/wait_for_port.sh 8081
@docker-compose ps
@curl -v http://localhost:8081/health
@cd java/apitest && ../mvnw -Pe2e test
@cd java/apitest && ../mvnw -Pe2e test || echo 'Tests failed'
@docker-compose down
@rm -rf db-data-1 || echo "no permission to delete"
# test with kafka(async), events, notifications,
@NOTIFICATION_ENABLED=true NOTIFICATION_URL=http://notification-ms:8765/notification-service/v1/notification TRACK_NOTIFICATIONS=true EVENT_ENABLED=true ASYNC_ENABLED=true RELEASE_VERSION=latest KEYCLOAK_IMPORT_DIR=java/apitest/src/test/resources KEYCLOAK_SECRET=a52c5f4a-89fd-40b9-aea2-3f711f14c889 DB_DIR=db-data-2 docker-compose up -d db clickhouse redis es keycloak registry certificate-signer certificate-api kafka zookeeper notification-ms metrics
@NOTIFICATION_ENABLED=true NOTIFICATION_URL=http://notification-ms:8765/notification-service/v1/notification TRACK_NOTIFICATIONS=true EVENT_ENABLED=true ASYNC_ENABLED=true RELEASE_VERSION=latest KEYCLOAK_IMPORT_DIR=java/apitest/src/test/resources KEYCLOAK_SECRET=a52c5f4a-89fd-40b9-aea2-3f711f14c889 DB_DIR=db-data-2 docker-compose up -d db redis es keycloak registry certificate-signer certificate-api kafka zookeeper notification-ms metrics
@echo "Starting the test" && sh build/wait_for_port.sh 8080
@echo "Starting the test" && sh build/wait_for_port.sh 8081
@docker-compose ps
@curl -v http://localhost:8081/health
@cd java/apitest && MODE=async ../mvnw -Pe2e test
@cd java/apitest && MODE=async ../mvnw -Pe2e test || echo 'Tests failed'
@docker-compose down
@rm -rf db-data-2 || echo "no permission to delete"
# test with fusionauth
Expand All @@ -71,8 +70,8 @@ test: build
make -C services/certificate-signer test
make -C services/public-key-service test
make -C services/context-proxy-service test
make -C services/credentials-service test
make -C services/bulk_issuance test
make -C services/credentials-service test
make -C services/identity-service test

clean:
Expand Down
6 changes: 3 additions & 3 deletions java/apitest/src/test/java/e2e/registry/registry.feature
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Feature: Registry api tests
When method post
Then status 200
And response.result.Teacher.transactionId.length > 0
* sleep(7000)
* sleep(3000)
# get teacher info
Given url registryUrl
And path 'api/v1/Teacher/search'
Expand Down Expand Up @@ -468,10 +468,10 @@ Feature: Registry api tests
And response.params.errmsg == "Schema 'Teacher1' not found"
# patch unavailable schema with sign
Given url registryUrl
And path '/api/v1/Teacher1/sign'
And path '/api/v1/Teacher/sign'
And header Authorization = admin_token
And request read('TeacherRequest.json')
When method get
When method patch
Then status 404
Then response.params.status =="UNSUCCESSFUL"
And response.params.errmsg == "Schema 'Teacher1' not found"
Expand Down

0 comments on commit 9f5ea04

Please sign in to comment.