Comments (2)
@dev4unet This is a test on AWS.
from cb-spider.
- HTTP req:
GET {{spider_ip}}:{{spider_port}}/keypair/{{spider_keypairId}}?connection_name={{connection_name}}
- JSON res:
{ "message": "InvalidKeyPair.NotFound: The key pair 'mcb-keypair' does not exist\n\tstatus code: 400, request id: 376a433a-b57f-4731-95da-5a9745d97231" }=> We can see that the keypair with that keypairname does not exist.
- HTTP req:
DELETE {{spider_ip}}:{{spider_port}}/keypair/{{spider_keypairId}}?connection_name={{connection_name}}
- HTTP res:
true
(expectedfalse
orfailed
)
AWS API에서 에러로 보지 않고 있어서 저도 True 처리를 했습니다.
보통 키페어 제거는 목록에서 제거할 키페어를 선택 후 삭제를 호출하며...
삭제 요청시 최종 희망사항은 해당 퍼블릭키가 서버에서 제거되는 것을 희망하기 때문에
서버에 요청한 퍼블릭키가 존재하지 않아도 별도의 에러 없이 true를 리턴하고 있는 것 같습니다.
참고로, AWS에서 제공하는 API 자체에서 삭제시 에러가 발생하지 않는...
삭제 요청의 성공 여부를 별도로 알려주지는 않습니다. (리턴 값이 항상 nil입니다.)
즉, 현재는 삭제시 AWS API에서 에러가 발생하지 않은 경우...
삭제 요청은 성공했다고 판단해서 true를 리턴하고 있습니다만...
(요청한 키파일이 서버에 없는 경우에도 삭제 성공으로 간주해서 별도의 에러는 발생하지 않습니다.)
사용자의 키파일의 삭제 요청 시 키파일의 존재를 먼저 체크해서 false를 리턴하도록 수정하겠습니다.
from cb-spider.
Related Issues (20)
- [+Region/Zone] Alibaba Cloud Driver Implementation
- [+Region/Zone] Tencent Cloud Driver Implementation
- [+Region/Zone] Azure Cloud Driver Implementation HOT 1
- [+Region/Zone] IBM-VPC Cloud Driver Implementation
- [+Region/Zone] OpenStack Cloud Driver Implementation HOT 1
- [+Region/Zone] NCP-Classic Cloud Driver Implementation HOT 2
- [+Region/Zone] NCP-VPC Cloud Driver Implementation HOT 1
- [+Region/Zone] NHN Cloud Driver Implementation
- [+Region/Zone] KT-Classic Cloud Driver Implementation HOT 1
- [+Region/Zone] KT-VPC Cloud Driver Implementation HOT 1
- [+Region/Zone] Server Implementation HOT 1
- [+Region/Zone] User API Implementation HOT 1
- [+Region/Zone] Mock Driver Implementation HOT 1
- [+Region/Zone] Server-Driver Integration Test HOT 19
- [+Region/Zone] AdminWeb Implementation HOT 1
- [+Price] CSP Analysis
- GCP CreateVM이 안되는 이슈 HOT 4
- [OPENSTACK] x509: certificate signed by unknown authority HOT 2
- [Mock-NLB] Implement NLB Feature in Mock Driver HOT 1
- [Mock-PMKS] Implement PMKS(K8S Cluster) Feature in Mock Driver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cb-spider.