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 insomnia #159

Closed
wants to merge 68 commits into from
Closed

Test insomnia #159

wants to merge 68 commits into from

Conversation

benoitdm-oslandia
Copy link
Owner

@benoitdm-oslandia benoitdm-oslandia commented Jan 31, 2023

You can push force now @soaubier

closes #136

@benoitdm-oslandia benoitdm-oslandia added documentation Improvements or additions to documentation TASK Test_CI labels Jan 31, 2023
@benoitdm-oslandia benoitdm-oslandia marked this pull request as draft January 31, 2023 07:25
lowzonenose and others added 25 commits February 6, 2023 09:11
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
* 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
* 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
benoitdm-oslandia and others added 19 commits February 6, 2023 09:26
… 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
@sonarcloud
Copy link

sonarcloud bot commented Feb 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@benoitdm-oslandia benoitdm-oslandia force-pushed the develop branch 2 times, most recently from 70074e2 to 535d70e Compare February 15, 2023 17:13
@benoitdm-oslandia
Copy link
Owner Author

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
Labels
documentation Improvements or additions to documentation TASK Test_CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Task - migration of insomnia tests on postman
6 participants