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

Fix create-ns.sh error (fix #1085) #1108

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

seokho-son
Copy link
Member

Fix #1085

Test

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/2.configureTumblebug$ ./create-ns.sh -x t01-ns-with-x

####################################################################
## 2. Namespace: Create (-x option for NameSpace Name)
####################################################################

{
  "id": "t01-ns-with-x",
  "name": "t01-ns-with-x",
  "description": "NameSpace for General Testing"
}

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/2.configureTumblebug$ ./create-ns.sh -f ../testSet.env -x t02-ns-with-f-x

####################################################################
## 2. Namespace: Create (-x option for NameSpace Name)
####################################################################

{
  "id": "t02-ns-with-f-x",
  "name": "t02-ns-with-f-x",
  "description": "NameSpace for General Testing"
}

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/2.configureTumblebug$ ./create-ns.sh -f ../testSet.env t03-ns-without-x

####################################################################
## 2. Namespace: Create (-x option for NameSpace Name)
####################################################################

{
  "message": "CreateNs(); The namespace ns01 already exists."
}

son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/src/testclient/scripts/2.configureTumblebug$ ./create-ns.sh t04-ns-no-param

####################################################################
## 2. Namespace: Create (-x option for NameSpace Name)
####################################################################

[Warrning] Invalid option [t04-ns-no-param]

[Usage] ./create-ns.sh -param value -param value
[Example] ./create-ns.sh -n myname01 -f ../testSet.env

 -n [postfix of resources to generate and retrieve] (ex: -n myname01, default: dev01)
 -f [file path to describe a cloud test set] (ex: -f ../testSet01.env, default: ../testSet.env)

 -c [specific cloud type] (ex: -c aws, optional)
 -r [index of a specific zone of the cloud type] (ex: -r 3, optional)

 -x [any value passed to a parameter of the command] (ex: -x vmid01, optional)
 -y [any value passed to a parameter of the command] (ex: -y 3, optional)
 -z [any value passed to a parameter of the command] (ex: -z file, optional)

@seokho-son seokho-son requested a review from jihoon-seo as a code owner May 12, 2022 07:43
@jihoon-seo jihoon-seo merged commit b036959 into cloud-barista:main May 12, 2022
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.

Param passed to create-ns.sh does not work
2 participants