forked from CrunchyData/pg_featureserv
-
Notifications
You must be signed in to change notification settings - Fork 0
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 insomnia #159
Closed
Closed
Test insomnia #159
Conversation
This file contains 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
benoitdm-oslandia
added
documentation
Improvements or additions to documentation
TASK
Test_CI
labels
Jan 31, 2023
* openapi.go: add paramFeatureID
Added tests for REPLACE (mock) and started implementation in handler and catalog mock
- No rows is an error in go: handle the exception because it is the expected result
…CollectionUpdateSchema
* remove duplicate documentation parts from root files README.md, API.md, NEWS.md and FEATURES.md to files into hugo documentation * move doc to v1.3
…place, Update and Delete"
* add method for route /collections/{collectionId}/items/{featureId} * catalog_mock: add func to retrieve feature by id * add openapi info for delete * add delete tests * add mock_b and mock_c in db tests
* move openapi var from api to openapi.go * move GeojsonFeatureData, FeatureCollection, MakeGeojsonFeatureJSON to api.go (remove duplicates) * move Table, Column, Function, TransformFunction, Sorting from catalog.go to api.go * move JSONType and PGType to datatype.go Split and regroup type struct from api.go * create api/function.go and api/table.go * regroup type struct by 'domain' in api.go
In order to be able to handle GML and json requests, catalog functions can not return strings but must return the features. Marshalling to json/gml/html will be handled by handler functions. * remove FeatureCollectionRaw, toRaw from api.go * remove featureData, makeFeatureJSON from catalog_db.go * catalog_mock: * featureMock inherit api.GeojsonFeatureData to simplify migration string to GeojsonFeatureData * remove featuresToJSON
… fields. Missing non required fields were checked but did not exist in schemaObject.Props map ==> segfault in ParseJSONInterface
Need to install with `pre-commit install --hook-type commit-msg`
* add redis service to be able to run test for CacheRedis * add Cacher implementation with Redis * add error in return for Cacher interface * use env variable for definition of RedisUrl in tests * update go.sum to remove indirect
* add configuration for RedisCache and use it in catalogDB * add support for redis server password * remove IsActive for cache config and replace by type Disabled * separate cache config struct and functions to dedicated file
…n a feature * apply sonarcube recommandations regarding variable duplications * tests refactoring
* add table name parameter to MakeGeojsonFeature, readFeaturesWithArgs, scanFeatureX functions * cacher: * add GetWeakEtag, Reset * change AddWeakEtag prototype * add helper IsOneEtagInCache and anyToEtag functions * handler: add missing routes
* catalog_db: move to singleton and correct TableByName when no table is found * fix listener to retrieve id from notification data and lookup into catalog table description * change complex.mock_multi ID column name and place * add new listener test against complex.mock_multi * handler: factorize precondition check and move etag creation from writeItemJSON to catalog_db
* rework RequestedFormat to return json when nothing matches instead of unknown suffix * fix getRequestVarStrip to handle stripping according to current format * add missing tablename when creating mock features * add test in db to check RequestedFormat with composed collection name (schema + table) * fix bad error management in handleCollection
benoitdm-oslandia
force-pushed
the
develop
branch
from
February 6, 2023 08:28
697420a
to
5ed7023
Compare
soaubier
force-pushed
the
test_insomnia
branch
from
February 6, 2023 09:10
845bbff
to
04abac6
Compare
soaubier
force-pushed
the
test_insomnia
branch
from
February 13, 2023 10:54
04abac6
to
15181ca
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
benoitdm-oslandia
force-pushed
the
develop
branch
2 times, most recently
from
February 15, 2023 17:13
70074e2
to
535d70e
Compare
Will be migrated to a dedicated test tool repository |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
You can push force now @soaubier
closes #136