generated from GovStackWorkingGroup/bb-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Mock example #2
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
Open
sreepathysois
wants to merge
47
commits into
main
Choose a base branch
from
mock_example
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mock example #2
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
bba439a
Add files via upload
sreepathysois 26059ac
Add files via upload
sreepathysois eb5e08b
Delete plan.md
sreepathysois 447a46a
Add files via upload
sreepathysois 57b1d73
Delete Scheduler_OpenAPI_17042023_V3.json
sreepathysois 75bc78b
Delete test.txt
sreepathysois 72060ec
Update createaffiliationnew.feature
sreepathysois afaed4a
Update createalertschedulenew.feature
sreepathysois 7fe2b4d
Update createappointmentnew.feature
sreepathysois 0d12ebb
Update createlognew.feature
sreepathysois 0f7dc8c
Update createmessagenew.feature
sreepathysois 909276f
Update createnewentity.feature
sreepathysois 96156c8
Update createnewevent.feature
sreepathysois 4c11d82
Update createresourcenew.feature
sreepathysois d54874e
Update createsubscribernew.feature
sreepathysois 64004b9
Update deleteaffiliationnew.feature
sreepathysois a2d76d8
Update deletealertschedulenew.feature
sreepathysois ceed753
Update deleteappointmentnew.feature
sreepathysois d26ce7b
Update deleteentity.feature
sreepathysois 7e402e5
Update deleteevent.feature
sreepathysois bcade74
Update deletelognew.feature
sreepathysois dbb2ea6
Update deletemessagenew.feature
sreepathysois fa0bff3
Update deleteresourcenew.feature
sreepathysois a28e5e4
Update deletesubscribernew.feature
sreepathysois 9aa9599
Update getaffiliationlistnew.feature
sreepathysois 749a681
Update getalertschedulelistnew.feature
sreepathysois 4e4a894
Update getappointmentlistnew.feature
sreepathysois d1a8ccd
Update getentitylistnew.feature
sreepathysois 0f34c30
Update geteventlistnew.feature
sreepathysois dd5d836
Update geteventlistnew.feature
sreepathysois 452817c
Update getloglistnew.feature
sreepathysois 73f3c41
Update getmessagelistnew.feature
sreepathysois af5d32e
Update getresourceavailabalitydetailsnew.feature
sreepathysois 8dc8ddb
Update getresourceavailabalitydetailsnew.feature
sreepathysois 8ba7ae5
Update getresourcelistnew.feature
sreepathysois f573de3
Update getsubscriberlistnew.feature
sreepathysois 07bfe02
Update updateaffiliationnew.feature
sreepathysois 0a48f64
Update updatealertschedulenew.feature
sreepathysois d67c49e
Update updateappointmentnew.feature
sreepathysois 30776a4
Update updateentitynew.feature
sreepathysois 03ac6bb
Update updateevent.feature
sreepathysois 256a34f
Update updatelognew.feature
sreepathysois 81b4f6a
Update updatemessagenew.feature
sreepathysois f9eeb02
Update updateresourcenew.feature
sreepathysois bc1eff9
Update updatesubscribernew.feature
sreepathysois a2863d7
Create config.yml
sreepathysois 4c9de22
Update config.yml
sreepathysois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| version: 2.1 | ||
|
|
||
| jobs: | ||
| deployment-and-api-tests: | ||
| machine: | ||
| image: ubuntu-2004:202010-01 | ||
| steps: | ||
| - checkout | ||
| - run: | ||
| name: 'Test Scheduler Build Block API' | ||
| command: 'echo testing all examples in /examples against test suite in /test' | ||
| - run: | ||
| name: Deploy Mock APP for Scheduler BB API and PyTest Containers | ||
| command: cd examples/mock && docker-compose up --build -d | ||
| - run: | ||
| name: Check Status of Mock App and API Testing Containers | ||
| command: docker ps | ||
| - run: | ||
| name: Testing Scheduler BB API | ||
| command: 'echo testing using containers' | ||
| - run: | ||
| name: Check Status of Testing Containers are Deployed | ||
| command: docker ps | ||
| - run: | ||
| name: Run Pytest tests against Register BB Mock to generate test result in Junit XML Format for Test Summary | ||
| command: docker exec -i pytest pytest -k smoke -s --junit-xml=/tmp/test-results/pytest-results.xml || true | ||
| - run: | ||
| name: Run cucumber tests against Register BB Mock to generate test result in JSON Format | ||
| command: docker exec -i pytest pytest -k smoke -s --json-report --json-report-indent=4 --json-report-file=/tmp/test-results/smoke_testing_report.json || true | ||
| - run: | ||
| name: Copy test results to host machine | ||
| command: docker cp pytest:/tmp/test-results /tmp | ||
| - store_test_results: | ||
| path: /tmp/test-results | ||
| prefix: junit- | ||
| destination: /test-results/ | ||
| - store_artifacts: | ||
| path: /tmp/test-results | ||
|
|
||
| workflows: | ||
| deployment-and-api-tests: | ||
| jobs: | ||
| - deployment-and-api-tests: | ||
| filters: | ||
| branches: | ||
| only: | ||
| - mock_example | ||
|
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| version: "3" | ||
| services: | ||
| mockoon: | ||
| image: mockoon/cli:latest | ||
| command: -d /data # this is where the change takes place | ||
| container_name: myapi | ||
| ports: | ||
| - "3000:3000" | ||
| networks: | ||
| demo: | ||
| volumes: | ||
| - type: bind | ||
| source: ../../api/Scheduler_OpenAPI_17042023_V3.json | ||
| target: /data | ||
| pytest: | ||
| build: | ||
| context: ../../test/. | ||
| container_name: pytest | ||
| tty: true | ||
| stdin_open: true | ||
| networks: | ||
| demo: | ||
|
|
||
|
|
||
| networks: | ||
| demo: | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #FROM joyzoursky/python-chromedriver:latest | ||
| #FROM qnib/pytest | ||
| FROM python:3.8 | ||
| COPY requirnments.txt requirnments.txt | ||
| RUN pip3 install -r requirnments.txt | ||
| COPY . /test | ||
| WORKDIR /test/ | ||
| CMD /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| @method=POST @endpoint=/affiliation/new/ | ||
| Feature: Create a new affiliation of Scheduler API | ||
|
|
||
| Gherkin feature files for GovStack Scheduler services | ||
|
|
||
| @smoke | ||
| Scenario: Create a new affiliation for Scheduler API Smoke Test | ||
|
|
||
| Given the requestor Id is "healthngo1" with role as "healthworker" to create a new affiliation | ||
| When a POST request for an endpoint /affiliation/new/ is triggered to create new affiliation for scheduler block | ||
| Then the result should return affiliation Id as "1" for smoke testing | ||
| And response code of POST request is "200" for smoke testing | ||
|
|
||
KarolinaKopacz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| @unit @happyregression | ||
| Scenario Outline: Create a new affiliation for Scheduler API Unit and Regression Happy Testing | ||
|
|
||
| Given the requestor id is "<requestor_id>" with role as "<requestor_role>" to create an affiliation with its details "<resource_id>" "<entity_id>" for resource of category "<resource_category>" for a schedule on "<day_of_week>" from "<start_time>" to "<end_time>" | ||
| When a POST request for an endpoint /affiliation/new/ is triggered to create new affiliation for scheduler block | ||
| Then the result should return affiliation details like "<affiliation_id>" and "<affiliation_name>" for requested affiliation | ||
| And response code of POST request is "200" | ||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | resource_id | entity_id | resource_category | day_of_week | start_time | end_time | affiliation_name | affiliation_id | | ||
| | healthngo1 | healthworker | 12345 | 67890 | physician | monday | 09:00:00 | 17:00:00 | xyz hospital | 1 | | ||
|
|
||
|
|
||
| @unit @Negativeregression | ||
| Scenario Outline: Create a new affiliation for Scheduler API Unit and Regression Negative Testing | ||
|
|
||
| Given the invalid inputs for the requestor id is "<requestor_id>" with role as "<requestor_role>" to create an affiliation with its details "<resource_id>" "<entity_id>" for resource of category "<resource_category>" for a schedule on "<day_of_week>" from "<start_time>" to "<end_time>" | ||
| When a POST request for an endpoint /affiliation/new/ is triggered to create new affiliation for scheduler block | ||
| Then response code of negative testing POST request for invalid data is "<status_code>" | ||
|
|
||
|
|
||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | resource_id | entity_id | resource_category | day_of_week | start_time | end_time | status_code | | ||
| | healthngo1 | healthworker | 12345 | 67890 | physician | monday | 09:00:00 | 17:00:00 | 400 | | ||
| | healthngo1 | healthworker | 12345 | 67890 | physician | monday | 17:00:00 | 09:00:00 | 403 | | ||
| | healthngo1 | healthworker | resource | 67890 | nurse | monday | 17:00:00 | 09:00:00 | 404 | | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| @method=POST @endpoint=/alert_schedule/new/ | ||
| Feature: Create a new Alert Schedule for Management of Scheduler API | ||
|
|
||
| Gherkin feature files for GovStack Scheduler services | ||
|
|
||
| @smoke | ||
| Scenario: Create a new Alert Schedule for Management of Scheduler API Smoke Test | ||
|
|
||
| Given the requestor Id is "healthngo1" with role as "healthworker" to create a new alert schedule | ||
| When a POST request for an endpoint /alert_schedule/new/ is triggered to create new alert schedule for scheduler block | ||
| Then the result should return alert schedule Id as "1" for smoke testing | ||
| And response code of POST request is "200" for smoke testing | ||
|
|
||
|
|
||
|
|
||
| @unit @happyregression | ||
| Scenario Outline: Create a new Alert Schedule for Management of Scheduler API Unit and Regression Happy Testing | ||
|
|
||
| Given the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a new alert schedule with event "<event_id>" for "<target_category>" with "<message_id>" within a "<alert_datetime>" | ||
| When a POST request for an endpoint /alert_schedule/new/ is triggered to create new alert schedule for scheduler block | ||
| Then the result should return alert details like "<alert_schedule_name>" and "<alert_schedule_id>" for requested schedule | ||
| And response code of POST request is "200" | ||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | event_id | target_category | message_id | alert_datetime | alert_schedule_name | alert_schedule_id | | ||
| | healthngo1 | healthworker | 12345 | subscriber | 1 | 2018-02-15T09:00:00 | xyz hospital | 1 | | ||
|
|
||
|
|
||
| @unit @Negativeregression | ||
| Scenario Outline: Create a new Alert Schedule for Management of Scheduler API Unit and Regression Negative Testing | ||
|
|
||
| Given the invalid inputs for the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a new alert schedule with event "<event_id>" for "<target_category>" with "<message_id>" within a "<alert_datetime>" | ||
| When a POST request for an endpoint /alert_schedule/new/ is triggered to create new alert schedule for scheduler block | ||
| Then response code of negative testing POST request for invalid data is "<status_code>" | ||
|
|
||
|
|
||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | event_id | target_category | message_id | alert_datetime | status_code | | ||
| | healthngo1 | healthworker | 12345 | subscriber | 1 | 2018-02-15T09:00:00| 400 | | ||
| | healthngo1 | healthworker | 12345 | subscriber | 1 | 2018-02-15T09:00:00| 403 | | ||
| | healthngo1 | healthworker |12345 | subscriber | 1 | 2018-02-15T09:00:00| 404 | | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| @method=POST @endpoint=/appointment/new/ | ||
| Feature: Create a new appointment of Scheduler API | ||
|
|
||
| Gherkin feature files for GovStack Scheduler services | ||
|
|
||
| @smoke | ||
| Scenario: Create a new appointment of Scheduler API Smoke Test | ||
|
|
||
| Given the requestor Id is "healthngo1" with role as "healthworker" to create a new appointment | ||
| When a POST request for an endpoint /appointment/new/ is triggered to create new appointment for scheduler block | ||
| Then the result should return appointment Id as "67890" for smoke testing | ||
| And response code of POST request is "200" for smoke testing | ||
|
|
||
|
|
||
|
|
||
| @unit @happyregression | ||
| Scenario Outline: Create a new appointment of Scheduler API Unit and Regression Happy Testing | ||
|
|
||
| Given the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a new appointment for an entity with "<entity_id>" and "<entity_type>" for participant of "<participant_type>" "<participant_id>" and "<participant_entity_id>" for a time period "<From>" till "<To>" with deadline "<deadline>" | ||
| When a POST request for an endpoint /appointment/new/ is triggered to create new appointment for scheduler block | ||
| Then the result should return appointment details like "<appointment_id>" and "<appointment_name>" for requested appointment | ||
| And response code of POST request is "200" | ||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | entity_id | entity_type | participant_type | participant_id | participant_entity_id | From | To | deadline | appointment_name | appointment_id | | ||
| | healthngo1 | healthworker | 1 | doctor_consultation | subscriber | 12345 | 67890 | 2018-02-15T11:00:00 | 2018-02-15T11:30:00 | 2018-02-15T11:10:00 | doctorconsultation | 1 | | ||
|
|
||
|
|
||
| @unit @Negativeregression | ||
| Scenario Outline: Create a new appointment of Scheduler API Unit and Regression Negative Testing | ||
|
|
||
| Given the invalid inputs for the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a new appointment for an entity with "<entity_id>" and "<entity_type>" for participant of "<participant_type>" "<participant_id>" and "<participant_entity_id>" for a time period "<From>" till "<To>" with deadline "<deadline>" | ||
| When a POST request for an endpoint /appointment/new/ is triggered to create new appointment for scheduler block | ||
| Then response code of negative testing POST request for invalid data is "<status_code>" | ||
|
|
||
|
|
||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | entity_id | entity_type | participant_type | participant_id | participant_entity_id | From | To | deadline | status_code | | ||
| | healthngo1 | healthworker | 1 | doctor_consultation | subscriber | 12345 | 67890 | 2018-02-15T11:00:00 | 2018-03-15T11:30:00 | 2018-02-15T11:10:00 | 400 | | ||
| | healthngo1 | healthworker | 1 | doctor_consultation | subscriber | 12345 | 67890 | 2018-02-15T11:45:00 | 2018-02-15T11:30:00 | 2018-02-15T11:10:00 | 403 | | ||
| | healthngo1 | healthworker | 1 | doctor_consultation | subscriber | 12345 | 67890 | 2018-02-15T11:00:00 | 2018-07-15T11:30:00 | 2018-02-15T11:10:00 | 404 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| @method=POST @endpoint=/log/new/ | ||
| Feature: Create a new Log of Scheduler API | ||
|
|
||
| Gherkin feature files for GovStack Scheduler services | ||
|
|
||
| @smoke | ||
| Scenario: Create a new Log of Scheduler API Smoke Test | ||
|
|
||
| Given the requestor Id is "healthngo1" with role as "healthworker" to create a new log | ||
| When a POST request for an endpoint /log/new/ is triggered to create new log for scheduler block | ||
| Then the result should return log Id as "1" for smoke testing | ||
| And response code of POST request is "200" for smoke testing | ||
|
|
||
|
|
||
|
|
||
| @unit @happyregression | ||
| Scenario Outline: Create a new Log of Scheduler API Unit and Regression Happy Testing | ||
|
|
||
| Given the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a log for role "<logger_role>" with its Id "<logger_id>" "<entity_id>" for category "<log_category>" from time period of "<datetime>" with data as "<log_data>" | ||
| When a POST request for an endpoint /log/new/ is triggered to create new log for scheduler block | ||
| Then the result should return log details like "<log_name>" and "<log_id>" for requested log | ||
| And response code of POST request is "200" | ||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | logger_role | logger_id | entity_id | log_category | datetime | log_data | log_name | log_id | | ||
| | healthngo1 | healthworker | resource | 1 | 67890 | attendence | 2018-02-15T11:00:00 | event_id:12345,subscriber_id:1,token:a2s3x2fer,status:attended | xyz hospital | 1 | | ||
|
|
||
|
|
||
| @unit @Negativeregression | ||
| Scenario Outline: Create a new Log of Scheduler API Unit and Regression Negative Testing | ||
|
|
||
| Given the invalid inputs for the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a log for role "<logger_role>" with its Id "<logger_id>" "<entity_id>" for category "<log_category>" from time period of "<datetime>" with data as "<log_data>" | ||
| When a POST request for an endpoint /log/new/ is triggered to create new log for scheduler block | ||
| Then response code of negative testing POST request for invalid data is "<status_code>" | ||
|
|
||
|
|
||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | logger_role | logger_id | entity_id | log_category | datetime | log_data | status_code | | ||
| | healthngo1 | healthworker | resource | 1 | 67890 | attendence | 2018-02-15T11:00:00 | event_id:12345,subscriber_id:1,token:a2s3x2fer,status:attended | 400 | | ||
| | healthngo1 | healthworker | entity | 67890 | 67890 | attendence | 2018-02-15T11:00:00 | event_id:12345,subscriber_id:1,token:a2s3x2fer,status:attended | 403 | | ||
| | healthngo1 | healthworker | subscriber |1 | 67890 | attendence | 2018-02-15T11:00:00 | event_id:12345,subscriber_id:1,token:a2s3x2fer,status:attended | 404 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| @method=POST @endpoint=/message/new/ | ||
| Feature: Create a new message of Scheduler API | ||
|
|
||
| Gherkin feature files for GovStack Scheduler services | ||
|
|
||
| @smoke | ||
| Scenario: Create a new message of Scheduler API Smoke Test | ||
|
|
||
| Given the requestor Id is "healthngo1" with role as "healthworker" to create a new message | ||
| When a POST request for an endpoint /message/new/ is triggered to create new message for scheduler block | ||
| Then the result should return message Id as "1" for smoke testing | ||
| And response code of POST request is "200" for smoke testing | ||
|
|
||
|
|
||
|
|
||
| @unit @happyregression | ||
| Scenario Outline: Create a new message of Scheduler API Unit and Regression Happy Testing | ||
|
|
||
| Given the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a message with details like "<entity_id>" "<category>" with message body as "<message_body>" | ||
| When a POST request for an endpoint /message/new/ is triggered to create new message for scheduler block | ||
| Then the result should return message details like "<message_name>" and "<message_id>" for requested message | ||
| And response code of POST request is "200" | ||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | entity_id | category | message_body | message_name | message_id | | ||
| | healthngo1 | healthworker | 67890 | reminder | you have a doctor consultatio today | xyz hospital | 1 | | ||
|
|
||
|
|
||
| @unit @Negativeregression | ||
| Scenario Outline: Create a new message of Scheduler API Unit and Regression Negative Testing | ||
|
|
||
| Given the invalid inputs for the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a message with details like "<entity_id>" "<category>" with message body as "<message_body>" | ||
| When a POST request for an endpoint /message/new/ is triggered to create new message for scheduler block | ||
| Then response code of negative testing POST request for invalid data is "<status_code>" | ||
|
|
||
|
|
||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | entity_id | category | message_body | status_code | | ||
| | healthngo1 | healthworker | 67890 | reminder | you have a doctor consultatio today | 400 | | ||
| | healthngo1 | healthworker | 67890 | appointment | you have a doctor consultatio today | 403 | | ||
| | healthngo1 | healthworker | 67890 | invite | you have a doctor consultatio today | 404 | | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
|
|
||
| @method=POST @endpoint=/entity/new/ | ||
| Feature: Create a new entity of Scheduler API | ||
|
|
||
| Gherkin feature files for GovStack Scheduler services | ||
|
|
||
| @smoke | ||
| Scenario: Create a new entity for Scheduler API Smoke Test | ||
|
|
||
| Given the requestor Id is "healthngo1" with role as "healthworker" to create a new entity | ||
| When a POST request for an endpoint /entity/new/ is triggered to create new entity for scheduler block | ||
| Then the result should return entity Id as "67890" for smoke testing | ||
| And response code of POST request is "200" for smoke testing | ||
|
|
||
|
|
||
|
|
||
| @unit @happyregression | ||
| Scenario Outline: Create a new entity for Scheduler API Unit and Regression Happy Testing | ||
|
|
||
| Given the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a entity with name "<name>" for "<category>" with following details like "<phone>" "<email>" with "<website>" | ||
| When a POST request for an endpoint /entity/new/ is triggered to create new entity for scheduler block | ||
| Then the result should return entity details like "<entity_id>" and "<entity_name>" for requested entity | ||
| And response code of POST request is "200" | ||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | name | category |phone | email | website | entity_name | entity_id | | ||
| | healthngo1 | healthworker | practo | hospital | 9980555504 | abc@gmail.com | www.abc.com | hospital | 67890 | | ||
|
|
||
|
|
||
| @unit @Negativeregression | ||
| Scenario Outline: Create a new entity for Scheduler API Unit and Regression Negative Testing | ||
|
|
||
| Given the invalid inputs for the requestor id is "<requestor_id>" with role as "<requestor_role>" to create a entity with name "<name>" for "<category>" with following details like "<phone>" "<email>" with "<website>" | ||
| When a POST request for an endpoint /entity/new/ is triggered to create new entity for scheduler block | ||
| Then response code of negative testing POST request for invalid data is "<status_code>" | ||
|
|
||
|
|
||
|
|
||
| Examples: | ||
| | requestor_id | requestor_role | name | category | phone | email | website | status_code | | ||
| | healthngo1 | healthworker | practo | hospital | 9980555504 | sree@gmail.com | http://alert.com | 400 | | ||
| | healthngo1 | healthworker | practo | education | 9980555504 | sree@gmail.com | http://alert.com | 403 | | ||
| | healthngo1 | healthworker | practo | agriculture | 9980555504 | sree@gmail.com | http://alert.com | 404 | | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.