Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#426 [Bug] Swagger api 테스트가 작동하지 않음 #427

Merged
merged 11 commits into from
Nov 7, 2023

Conversation

chlehdwon
Copy link
Contributor

@chlehdwon chlehdwon commented Nov 2, 2023

Summary

It closes #426

swagger에서 servers option을 사용하여 request를 보내고 싶은 base url을 설정 가능합니다.

  • development 환경에서는 http://localhost:port, main 서버, dev 서버에 대해 모두 테스트 가능하고,
  • production 환경에서는 main 서버에 대해서만 테스트 가능하도록 변경하였습니다.

14KGun and others added 10 commits September 16, 2023 02:37
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
@chlehdwon chlehdwon self-assigned this Nov 2, 2023
@chlehdwon chlehdwon added the 😱 bug Something isn't working label Nov 2, 2023
@chlehdwon chlehdwon requested review from withSang and 14KGun November 2, 2023 17:21
Comment on lines +8 to +27
const serverList = [
{
url: `http://localhost:${port}`,
description: "local api server",
development: true,
production: false,
},
{
url: "https://taxi.sparcs.org/api",
description: "taxi main api server",
development: true,
production: true,
},
{
url: "https://taxi.dev.sparcs.org/api",
description: "taxi dev api server",
development: true,
production: false,
},
];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadEnv.js에서 servers 필드의 값을 직접 계산하는 방법도 괜찮다고 생각해요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@withSang 저 serverList를 아예 loadEnv.js에서 정의하자는 말씀이시죠? 다른 코드에서 servers 값을 재사용 할 일이 있으면 그게 나을 것 같은데 어떤 경우일까요??

Copy link
Member

@withSang withSang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 좋아 보입니다! 해결해주셔서 감사해요 👍

Copy link
Member

@14KGun 14KGun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@chlehdwon chlehdwon merged commit f03e0a1 into dev Nov 7, 2023
@chlehdwon chlehdwon deleted the #426-bug-swagger-api-test branch November 7, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😱 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Swagger api 테스트가 작동하지 않음
3 participants