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

Add feature for general TB object retrieve #417

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

seokho-son
Copy link
Member

기존 텀블벅은
텀블벅에 등록된 오브젝트(특히 문제가 있는 오브젝트)를 개발자가 확인하는 데 어려움이 있었음.

본 PR은 텀블벅의 오브젝트 리스트를 조회하고,
값을 조회할 수 있는 기능 제공. (관리자 및 개발자를 위한 기능)

  1. objectList
  2. objectValue

예를 들어,

  1. http://localhost:1323/tumblebug/objectList?key=/ns/ns-01/
    /ns/ns-01/ 가 포함된 모든 TB 오브젝트의 ID 리스트를 반환함.

  2. http://localhost:1323/tumblebug/objectValue?key=/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
    /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson 오브젝트의 값을 반환함.

테스트 스크립트:

  1. list-object.sh
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./list-object.sh /ns/ns-01/mcis/
####################################################################
## 0. Object: List
####################################################################
{
   "object" : [
      "/ns/ns-01/mcis/aws-ap-southeast-1-shson",
      "/ns/ns-01/mcis/aws-ap-southeast-1-shson/vm/aws-ap-southeast-1-shson-0",
      "/ns/ns-01/mcis/aws-ap-southeast-1-shson/vm/aws-ap-southeast-1-shson-1",
      "/ns/ns-01/mcis/aws-ap-southeast-1-shson/vm/aws-ap-southeast-1-shson-2",
      "/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson"
   ]
}

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./list-object.sh /ns/ns-01/mcis/
####################################################################
## 0. Object: List
####################################################################
{
   "object" : null
}

  1. get-object.sh
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./get-object.sh /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
####################################################################
## 0. Object: Get value
####################################################################
{
   "id" : "aws-ap-southeast-1-shson",
   "name" : "aws-ap-southeast-1-shson",
   "vmId" : [
      "aws-ap-southeast-1-shson-0",
      "aws-ap-southeast-1-shson-1",
      "aws-ap-southeast-1-shson-2"
   ],
   "vmGroupSize" : "3"
}

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./get-object.sh /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
####################################################################
## 0. Object: Get value
####################################################################
{
   "message" : "Failed to find /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shsonobject"
}

@seokho-son seokho-son requested a review from jihoon-seo as a code owner March 16, 2021 10:20
@seokho-son
Copy link
Member Author

/assign @jihoon-seo

@seokho-son
Copy link
Member Author

@jihoon-seo I think this feature will be helpful for developers ~ :)

@seokho-son seokho-son enabled auto-merge March 16, 2021 10:33
@seokho-son seokho-son merged commit 7250596 into cloud-barista:master Mar 17, 2021
Copy link
Member

@jihoon-seo jihoon-seo left a comment

Choose a reason for hiding this comment

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

Looks good to me!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants