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 check test config script #714

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Conversation

seokho-son
Copy link
Member

This PR adds a new script to check the test configuration from given configuration file.
This script can be used to verify a current setting before execute ./create-all.sh

input example

~ cb-tumblebug/src/testclient/scripts/sequentialFullTest$ 

./check-test-config.sh -n shson01 -f ../testSet-tmp.env 

output example

####################################################################
## Check test config file (-n deveoperPrefix -f ../testSetCustom.env)
####################################################################

Input parameters
// POSTFIX:shson01 // TestSetFile:../testSet-tmp.env // CSP:all // REGION:1 // OPTION01: // OPTION02: // OPTION03:

[Configuration in (../testSet-tmp.env) & (../conf.env) files]
1) TumblebugServer : localhost:1323 // SpiderServer : localhost:1024
2) NameSpace ID : tb01 // MCIS ID : cb-shson01
3) Enabled CSPs for cb-shson01
[1] aws (enabled regions : 3)
[2] gcp (enabled regions : 1)

[1] aws details
[1,1] aws-ap-southeast-1
- VM SPEC : m4.4xlarge
- VM IMAGE : ami-061eb2b23f9f8839c
[1,2] aws-ca-central-1
- VM SPEC : t2.micro
- VM IMAGE : ami-0d0eaed20348a3389
[1,3] aws-us-west-1
- VM SPEC : t2.micro
- VM IMAGE : ami-0dd655843c87b6930

[2] gcp details
[2,1] gcp-asia-east1
- VM SPEC : e2-small
- VM IMAGE : https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-1804-bionic-v20191024

@jihoon-seo jihoon-seo merged commit 0a7c971 into cloud-barista:main Sep 8, 2021
@jihoon-seo
Copy link
Member

@seokho-son
./check-test-config.sh 스크립트가
-c, -r 옵션이 있는 경우에는
이 arg들도 인식할 수 있으면 좋을 것 같아요 😊

[As-is]
❯ ./check-test-config.sh -n jhseo -c aws -r 1

####################################################################
## Check test config file (-n deveoperPrefix -f ../testSetCustom.env -x numOfVMsInEachVMGroup)
####################################################################

Input parameters
// POSTFIX:jhseo // TestSetFile:../testSet.env // CSP:aws // REGION:1 // OPTION01: // OPTION02: // OPTION03:

[Configuration in (../testSet.env) & (../conf.env) files]
1) Tumblebug Server : localhost:1323 // Spider Server : localhost:1024
2) Enabled CSPs and regions in ../testSet.env
 - [1] testcloud01 (enabled regions : 1)
 - [2] testcloud02 (enabled regions : 1)
 - [3] testcloud03 (enabled regions : 1)

   [1] testcloud01 details
   [1,1] testcloud01-seoul
    - VM SPEC : mock-vmspec-01
    - VM IMAGE : mock-vmimage-01

   [2] testcloud02 details
   [2,1] testcloud02-canada
    - VM SPEC : mock-vmspec-01
    - VM IMAGE : mock-vmimage-01

   [3] testcloud03 details
   [3,1] testcloud03-frankfurt
    - VM SPEC : mock-vmspec-01
    - VM IMAGE : mock-vmimage-01

3) MCIS Configuration
 - NameSpace ID : tb01
 - MCIS ID : cb-jhseo
 - Number of VMs
   - [1] VMs(1) = testcloud01(1) * Region(1) * VMgroup(1)
   - [2] VMs(1) = testcloud02(1) * Region(1) * VMgroup(1)
   - [3] VMs(1) = testcloud03(1) * Region(1) * VMgroup(1)

(-c aws -r 1 arg를 입력했는데,
AWS, Region 1 에 대한 정보가 나오지 않고
../testSet.env 에 설정된 내용이 출력됨)


(이후 ❯ ./create-all.sh -n jhseo -c aws -r 1 명령을 실행하면,
사용자가 의도한 대로 AWS, Region 1 에 대해 스크립트가 실행됩니다.)

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