-
Notifications
You must be signed in to change notification settings - Fork 43
VolatileLayerClient::PrefetchTiles fv tests. #772
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #772 +/- ##
========================================
+ Coverage 78.2% 78.7% +0.4%
========================================
Files 289 292 +3
Lines 9709 9931 +222
========================================
+ Hits 7597 7811 +214
- Misses 2112 2120 +8
Continue to review full report at Codecov.
|
efd3f56
to
3e3a0a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be done in fixture SetUp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefetch tests need different setup. They use another catalog, credentials etc. + we need to write tiles data used only by these tests, so moving it to SetUp() will lead to overhead for other test.
tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVolatileLayerClientTest.cpp
Outdated
Show resolved
Hide resolved
3e3a0a9
to
61ea90f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we have one app id and secret for all tests in VolatileLayerClientTest? So other user can set only once their id/secret.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to change old tests, so they use new catalog, layers etc.
Old credentials/catalog can't be used in new tests, since need to write data with tiles first.
Anyway, there is a separated task to create accessible catalogs for all tests. After that we could use same credentials for all tests here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also could we use SetUp function for prefetch tests also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same reason here, prefetch tests require tiles in the layer.
Adding data isn't fast process, so I prefer to make this preparation only for these new tests. What do you think about it?
tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVolatileLayerClientTest.cpp
Outdated
Show resolved
Hide resolved
tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVolatileLayerClientTest.cpp
Outdated
Show resolved
Hide resolved
tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVolatileLayerClientTest.cpp
Outdated
Show resolved
Hide resolved
tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVolatileLayerClientTest.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need such a functional test. This can be, resp. should be, an integration test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeap. integration tests has same test. Removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, should be an integration test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all integration tests.
The only test you need to do extra is that in case min/max are equal or 0, that only the requested tilekeys are downloaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
Extra tests for 0/0 and same levels added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are testing too much. You don't need to replicate the integration tests here. You only need to test the real functionality with OLP, resp. with the mocked server later on. So that you have covered the e2e scenario.
You don't need to replicate the entire integration tests here. This is not the point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
Actually, I took them from VersionedLayerClient prefetch fv tests. So they need cleanup too.
61ea90f
to
ecc707f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't set any TaskScheduler. Please set TaskScheduler else all requests are sync, which we don't want.
ecc707f
to
a99343f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export dataservice_read_volatile_test_prefetch_catalog=hrn:here:data::olp-here-test:test-volatile-prefetch" | |
export dataservice_read_volatile_test_prefetch_catalog="hrn:here:data::olp-here-test:test-volatile-prefetch" |
a99343f
to
727b160
Compare
Functional tests for VolatileLayerClient::PrefetchTiles() method. New catalog/credentials created for the tests, since Read/Write volatile layer with HERETile scheme required. Resolves: OLPEDGE-1738 Signed-off-by: Kostiantyn Zvieriev <ext-kostiantyn.zvieriev@here.com>
727b160
to
9abc7ba
Compare
Functional tests for VolatileLayerClient::PrefetchTiles() method. New
catalog/credentials created for the tests, since Read/Write volatile
layer with HERETile scheme required.
Resolves: OLPEDGE-1738
Signed-off-by: Kostiantyn Zvieriev ext-kostiantyn.zvieriev@here.com