error format 변경 , token 발급 url 변경
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ class OAuth2BearerAuth404ErrorTest {
|
|||||||
@Test
|
@Test
|
||||||
void testCase001_Bearer인증_존재하지않는API_404에러() throws Exception {
|
void testCase001_Bearer인증_존재하지않는API_404에러() throws Exception {
|
||||||
// Step 1: 토큰 발급
|
// Step 1: 토큰 발급
|
||||||
String tokenUrl = TestConfig.getBaseUrl("/oauth/token");
|
String tokenUrl = TestConfig.getBaseUrl("/oauth2/token");
|
||||||
String accessToken;
|
String accessToken;
|
||||||
|
|
||||||
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class OAuth2BearerAuthTest {
|
|||||||
@Test
|
@Test
|
||||||
void testCase001_Bearer인증_성공() throws Exception {
|
void testCase001_Bearer인증_성공() throws Exception {
|
||||||
// Step 1: 토큰 발급
|
// Step 1: 토큰 발급
|
||||||
String tokenUrl = TestConfig.getBaseUrl("/oauth/token");
|
String tokenUrl = TestConfig.getBaseUrl("/oauth2/token");
|
||||||
String accessToken;
|
String accessToken;
|
||||||
|
|
||||||
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class OAuth2TokenSuccessTest {
|
|||||||
@Test
|
@Test
|
||||||
void testCase001_토큰발급성공() throws Exception {
|
void testCase001_토큰발급성공() throws Exception {
|
||||||
// given
|
// given
|
||||||
String url = TestConfig.getBaseUrl("/oauth/token");
|
String url = TestConfig.getBaseUrl("/oauth2/token");
|
||||||
|
|
||||||
List<NameValuePair> params = new ArrayList<>();
|
List<NameValuePair> params = new ArrayList<>();
|
||||||
params.add(new BasicNameValuePair("grant_type", "client_credentials"));
|
params.add(new BasicNameValuePair("grant_type", "client_credentials"));
|
||||||
|
|||||||
Reference in New Issue
Block a user