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

[Platform] Convert Bash script to python script for universe operation #8433

Closed
jaydeepkumara opened this issue May 13, 2021 · 1 comment · Fixed by #8523
Closed

[Platform] Convert Bash script to python script for universe operation #8433

jaydeepkumara opened this issue May 13, 2021 · 1 comment · Fixed by #8523
Assignees
Labels
team/platform-hi Tickets handled by HashedIn team
Projects

Comments

@jaydeepkumara
Copy link
Contributor

We have created a bash script with a python script to do the universe operation. We need to convert that into a python script.

Ref:- #7302
PR for ref for 7302 :- https://github.com/yugabyte/yugabyte-db/pull/7302/files

@jaydeepkumara jaydeepkumara added the team/platform-hi Tickets handled by HashedIn team label May 13, 2021
@jaydeepkumara jaydeepkumara self-assigned this May 13, 2021
@jaydeepkumara jaydeepkumara added this to In progress in Platform May 13, 2021
@jaydeepkumara jaydeepkumara moved this from In progress to In Review in Platform May 24, 2021
@jaydeepkumara
Copy link
Contributor Author

jaydeepkumara commented May 24, 2021

PR Link:- #8523

jaydeepkumara added a commit that referenced this issue Jun 16, 2021
)

Summary: 
Provide a script that creates a universe using these three command line arguments: Platform URL, API token, and path to the file containing the Universe config in JSON format.

We need scripts for the following actions:

Dump json payload for a given universe
Create a universe
Destroy an existing universe

The shell script is written in such a way that clients don't require any external library.
Tech:-vanilla python.

Test Plan (with python2 and python3):
1. Get existing universe list.
2. Get existing universe details by universe name in json format.
3. Get existing universe details by universe UUID in json format.
4. Delete existing universe by universe name.
5. Delete existing universe by universe UUID.
6. Create a new universe from a json config file.
7. Get task progress.
8. Get list of available regions with availability zones.
9. Get list of available providers.
10. Delete universe with force and yes as default.
11. create and delete universe with no wait.
12. Create a new universe from a json config file. and passing custom universe name.
13. Command without setting up any env values.
14. command with duplicate universe name.
15. Pass by invalid auth token an invalid customer uuid.
16. delete universe with an invalid name.
17. Using invalid params.
18. Create a script with file locations, outside bin folder with having .. in a relative path.

Reviewers: skorobogatydmitry, Arnav15, jitendra-12113, svarnau, SergeyPotachev, mbautin, mahendranbhat

Reviewed By: skorobogatydmitry, Arnav15


Differential Revision: #8523
@jaydeepkumara jaydeepkumara moved this from In Review to Needs QA/Docs in Platform Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team/platform-hi Tickets handled by HashedIn team
Projects
Platform
  
Needs QA/Docs
Development

Successfully merging a pull request may close this issue.

1 participant