Create Gherkin tests for Population Density Data#44
Conversation
bigludo7
left a comment
There was a problem hiding this comment.
See few comments for the test Definition.
Not sure why the README.md & checklist part of this PR.
| And the response property "$.status" value is "SUPPORTED_AREA" | ||
| And the response property "$.timedPopulationDensityData[*].startTime" is equal to or later than request body property "$.startDate" | ||
| And the response property "$.timedPopulationDensityData[*].endTime" is equal to or earlier than request body property "$.endDate" | ||
| And the response property "$.timedPopulationDensityData[*].cellPopulationDensityData[*].populationDensityData.dataType.datatype" is equal to "LOW_DENSITY" or "DENSITY_ESTIMATION" |
There was a problem hiding this comment.
duplicate datatype no?
should be "$.timedPopulationDensityData[*].cellPopulationDensityData[*].populationDensityData.dataType" is equal to "LOW_DENSITY" or "DENSITY_ESTIMATION"
There was a problem hiding this comment.
to be solved
| And the response property "$.status" value is "SUPPORTED_AREA" | ||
| And the response property "$.timedPopulationDensityData[*].startTime" is equal to or later than request body property "$.startDate" | ||
| And the response property "$.timedPopulationDensityData[*].endTime" is equal to or earlier than request body property "$.endDate" | ||
| And the response property "$.timedPopulationDensityData[*].cellPopulationDensityData[*].populationDensityData.dataType.datatype" is equal to "LOW_DENSITY" or "DENSITY_ESTIMATION" |
There was a problem hiding this comment.
should we add that
"$.timedPopulationDensityData[*].cellPopulationDensityData[*].populationDensityData.maxPplDensity must be filled?
same for minPplDensity and pplDensity
There was a problem hiding this comment.
to be solved
| And the response property "$.status" value is "PART_OF_AREA_NOT_SUPPORTED" | ||
| And the response property "$.timedPopulationDensityData[*].startTime" is equal to or later than request body property "$.startDate" | ||
| And the response property "$.timedPopulationDensityData[*].endTime" is equal to or earlier than request body property "$.startDate" | ||
| And there is at least one item in response property "$.timedPopulationDensityData[*].cellPopulationDensityData[*].datatype" equal to "NO_DATA" |
There was a problem hiding this comment.
and add:
And there is at least one item in response property "$.timedPopulationDensityData[*].cellPopulationDensityData[*].datatype" equal to "LOW_DENSITY" or "DENSITY_ESTIMATION"
There was a problem hiding this comment.
to be solved
There was a problem hiding this comment.
@jgarciahospital : is it solved ?
There was a problem hiding this comment.
Thanks ludovic, solved then.
| And the response property "$.status" value is "AREA_NOT_SUPPORTED" | ||
| And the response property "$.timedPopulationDensityData" is an empty array | ||
|
|
||
| @population_density_data_04_webhook_success_scenario |
There was a problem hiding this comment.
I have an issue on this one because we are not aligned with commonalities for the webjook. It should be sink & sinkCredential. See commonalities or carrier billing API where the pattern has been aligned. I will post an issue.
If you consider that it's tool ate to align not sure keeping the test worthwhile.
There was a problem hiding this comment.
and here we have the tricky one. This also requires changes in the API yaml, but APi is now in the public release phase. @bigludo7 let me propose something, please confirm:
- we create a new PR to update API yaml
- we update this .feature also with this and other changes
- updates are reported in the Prepare release r1.2 #45
There was a problem hiding this comment.
Hello @jgarciahospital
This is tricky yes.
@rartych provided another view: as this API did not use strictly the explicit subscription model, this is is not an issue for him. So perhaps we can change....nothing here for this version (and keep this test) and we aligne for next release.
WDYT? I'm a bit nervous to have all these change...
There was a problem hiding this comment.
@rartych any proposal about this? Just to ensure that we close it before review. No problem with any of the options, I think we can provide both code proposals now.
There was a problem hiding this comment.
I would stay with the current definition and discuss changes for version 0.2 of the API. In fact we don't have here Event Notification defined in https://github.com/camaraproject/Commonalities/blob/main/documentation/API-design-guidelines.md#12-subscription-notification--event , but asynchronous response. There are also no explicit guidelines for that scenario in Commonalities.
There was a problem hiding this comment.
Ok, let me then update gherkin with only the rest of small comments coming from @bigludo7, and also main yaml with some only editorials, and we are ready for closing the release.
Please @sachinvodafone confirm after that review for been able to merge the test plan.
There was a problem hiding this comment.
Sorry, making one additional review we find that QoD API suffered similar issue and finally they made the alignement (this Issue & PR summarizes). So, just for aligning with https://github.com/camaraproject/Commonalities/blob/main/documentation/API-design-guidelines.md#instance-based-implicit-subscription, let me propose to roll back to initial plan and:
- Update gherkin to be aligned with async auth
- Update API yaml (I'll create a separate PR moving back to wip version)
- Later we can sync this with the release PR
Thanks Ludo for the review! readme.md is just to delete the readme of the test definitions folder, now that we have another file. |
Including small typos correction and alignement of "$.sink" and "$.sinkCredentials" properties.
bigludo7
left a comment
There was a problem hiding this comment.
Sorry still one comment but this one break the file if not resolved.
| And the request property "$.sinkCredentials.credentialType" is set to "ACCESSTOKEN" | ||
| And the request property "$.sinkCredentials.accessTokenType" is set to "bearer" | ||
| And the request property "$.sinkCredentials.accessToken" is set to a valid access token accepted by the events receiver | ||
| And the request property "$.sinkCredentials.accessTokenExpiresUtc" is set to a value long enough in the future When the request "retrievePopulationDensity" is sent |
There was a problem hiding this comment.
Typo here - When the request....must be on the next line
|
Same here, thanks @bigludo7 . @sachinvodafone please for your validation. |
|
|
||
| Background: Common retrievePopulationDensity setup | ||
| Given an environment at "apiRoot" | ||
| And the resource "/population-density-data/v1/retrieve" |
There was a problem hiding this comment.
Recommendation: The filename should be population-density-data-API-Readiness-Checklist.md
Links to this file should then be updated as well, if any (e.g. on API release tracker)
There was a problem hiding this comment.
Solved, to be spotted in #45 to ensure it is maintained when merging.
Fix API version
…on-density-data-API-Readiness-Checklist.md
tanjadegroot
left a comment
There was a problem hiding this comment.
It looks good to me except for the statement that still needs to be resolved. Should it be resolved ? if so please do and then for this PR: LGTM from RM
| And the response property "$.status" value is "PART_OF_AREA_NOT_SUPPORTED" | ||
| And the response property "$.timedPopulationDensityData[*].startTime" is equal to or later than request body property "$.startDate" | ||
| And the response property "$.timedPopulationDensityData[*].endTime" is equal to or earlier than request body property "$.startDate" | ||
| And there is at least one item in response property "$.timedPopulationDensityData[*].cellPopulationDensityData[*].datatype" equal to "NO_DATA" |
There was a problem hiding this comment.
@jgarciahospital : is it solved ?
|
Ludovic's comments: @jgarciahospital @maheshc01 @sachinvodafone please provide your view ASAP as we would like to close the M4 release today if possible. |
What type of PR is this?
Add one of the following kinds:
What this PR does / why we need it:
Including test proposal for population density data 0.1.1
Which issue(s) this PR fixes:
Fixes #37