이제 모두 설정했으니 HTTP 요청으로 컨피그 서버를 테스트해 보자. 여기에서는 cURL 명령이나 포스트맨 같은 REST 클라이언트를 사용할 수 있다.
$ curl -X "GET" "http://localhost:8071/licensing-service/default" -H "X-Config-Token: myroot"
모두 성공적으로 구성되었다면 다음과 같은 응답이 반환된다.
{
"name": "licensing-service",
"profiles": [
"default"
],
"label": null,
"version": null,
"state": null,
"propertySources": [
{
"name": "vault:licensing-service",
"source": {
"license.vault.property": "Welcome to vault"
}
}
]
}