Closed jonathanvila closed 3 years ago
Issue : https://github.com/konveyor/tackle-pathfinder/issues/59
Features included :
Rewording file : Pathfinder Assessment Questions and suggestions.ods
Test Case :
using the UI
using CURL
curl
jq
podman run --name keycloak --rm \ -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin \ -e KEYCLOAK_IMPORT=/tmp/keycloak/quarkus-realm.json \ -e DB_VENDOR=h2 -p 8180:8080 -p 8543:8443 -v ./src/main/resources/keycloak:/tmp/keycloak:Z \ jboss/keycloak:12.0.2
podman run -it \ --name petclinic -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=petclinic -e POSTGRES_DB=petclinic \ -p 5433:5432 postgres:10.6
./mvnw clean quarkus:dev
export access_token=$(\ curl -X POST http://localhost:8180/auth/realms/quarkus/protocol/openid-connect/token \ --user backend-service:secret \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'username=alice&password=alice&grant_type=password' | jq --raw-output '.access_token' \ )
curl "http://localhost:8085/pathfinder/assessments" \ -H 'Content-Type: application/json' -H 'Accept: application/json' -H "Authorization: Bearer $access_token" \ -d '{ "applicationId": 340 }' -w "%{http_code}"
{"id":629,"applicationId":340,"status":"STARTED"}201
curl -X GET "http://localhost:8085/pathfinder/assessments/629" -H 'Accept: application/json' \ -H "Authorization: Bearer $access_token" -v | jq .
I have verified the changes against the Googlesheet. I'm happy this PR can be merged.
Issue : https://github.com/konveyor/tackle-pathfinder/issues/59
Features included :
Rewording file : Pathfinder Assessment Questions and suggestions.ods
Test Case :
using the UI
using CURL
curl
andjq