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

Test Apis Workflow #480

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Test Apis Workflow #480

wants to merge 12 commits into from

Conversation

pranavv0
Copy link
Contributor

@pranavv0 pranavv0 commented May 1, 2023

  1. Workflow for Test Automation
  2. Script of Pytest
  3. Dockerfile

@jenkins-datakaveri
Copy link
Collaborator

Can one of the admins verify this patch?

docker/pytest/Dockerfile Show resolved Hide resolved
.github/workflows/test_apis.yaml Show resolved Hide resolved
.github/workflows/test_apis.yaml Outdated Show resolved Hide resolved
docker/pytest/README.md Outdated Show resolved Hide resolved
"username": "<rmq user>",
"password": "<rmq password>",
"host": "<rmq host>",
"port": "<rmq amq port>",
"hport": "<rmq https port>",
"hport": "<rmq https port, required only if createVhost is true >",
Copy link
Collaborator

Choose a reason for hiding this comment

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

use proper config fields, should be clear by just reading it

  • use httpsPort instead of hport
  • use amqpsPort instead of port --> also its better to connect and test over amqps .

response = requests.put(url, auth=(username, password))
if createVhost:
url = f'https://{host}:{hport}/api/vhosts/{vhost}'
response = requests.put(url, auth=(username, password))

# rabbitmq amqp connection details
connection = pika.BlockingConnection(
pika.URLParameters(f'amqp://{username}:{password}@{host}:{port}/{vhost}'))
Copy link
Collaborator

Choose a reason for hiding this comment

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

its better to connect and test over amqps

@@ -1,9 +1,10 @@
{
"createVhost" : "True or False, if vhost is required to create",
Copy link
Collaborator

Choose a reason for hiding this comment

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

should n't the True or False be without the quotes

@abhi4578
Copy link
Collaborator

Also update readme of the test. There is only one test now for lip

@karun-singh karun-singh requested a review from abhi4578 May 30, 2023 06:41
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.

None yet

3 participants