Sonja Happ
537e8362bf
fix of initial testfolder name
2019-10-24 11:21:32 +02:00
Sonja Happ
8fd9498fd4
fix in CI
2019-10-24 11:06:54 +02:00
Sonja Happ
f65b11ce08
add test for getting all users of scenario with inactive user
2019-09-18 12:17:01 +02:00
Sonja Happ
56eabdc194
change active flag in update user to string instead of bool
2019-09-17 17:19:21 +02:00
Sonja Happ
14972262c0
add "Active" bool property to user model, required modifications in user and scenario packages
2019-09-17 17:00:07 +02:00
Sonja Happ
c23a5b1481
fix a typo in gitlab CI file
2019-09-16 09:18:48 +02:00
Sonja Happ
ebf390e9cc
update version of swag tool, use swag again in CI, works on #22
2019-09-16 09:17:31 +02:00
Sonja Happ
a23754aa15
change contact in README
2019-09-12 10:27:19 +02:00
Sonja Happ
b570956baf
improve user package
...
- testing more error return codes
- remove some errors from code
- remove unnecessary code
- require a username of at least 3 letters/digits
2019-09-12 10:18:42 +02:00
Sonja Happ
ed1d7677f2
add testing of authentication endpoint, revise authentication endpoint
2019-09-11 17:09:36 +02:00
Sonja Happ
ddb4a9c8ca
improve testing of widget package, remove some unnecessary code
2019-09-11 16:46:29 +02:00
Sonja Happ
c0b8a6be80
revision of simulator package
...
- move amqp endpoint implementation to amqp package
- improve code coverage of simulator testing
- remove some unnecessary code from package implementation
2019-09-11 16:16:00 +02:00
Sonja Happ
75c33c71a1
improve code coverage of simulation model testing
...
- fix a bug in POST endpoint
- remove unnecessary code from endpoint, validator, and method implementations
2019-09-11 15:44:14 +02:00
Sonja Happ
04cbbb7825
improve return statements
2019-09-11 15:32:16 +02:00
Sonja Happ
ed477dcd78
remove verbose parameter in test:all
2019-09-11 14:53:32 +02:00
Sonja Happ
e81769e76b
improve code coverage of signal testing, remove some unnecessary code in package implementation
2019-09-11 14:41:13 +02:00
Sonja Happ
def9787cba
improve code coverage of scenario testing, remove some unnecessary code in package implementation
2019-09-11 13:51:26 +02:00
Sonja Happ
b17de1c576
fix another bug in scenario testing
2019-09-11 12:46:43 +02:00
Sonja Happ
8b8f674266
improve dashboard testing: try to update a dashboard as guest user
2019-09-11 12:40:12 +02:00
Sonja Happ
f42c962a97
fix a bug in scenario testing: try to remove user that does not exist
2019-09-11 12:38:41 +02:00
Sonja Happ
387c922059
Revision of (file) testing
...
- create a guest user and modify function that adds users to the DB for testing
- improve code coverage of file endpoint tests and remove some obsolete code from file package
- add more error info if role validation fails in all endpoints
- change response of GET files to only return the file data and nothing else
- fix some bugs in file endpoints that became visible by the tests
2019-09-11 12:30:01 +02:00
Sonja Happ
d160103fcf
create a function in helper package to extract the ID of an element from a path or query and use this function in middleware
2019-09-10 17:17:53 +02:00
Sonja Happ
55f81f1309
fix folder name of database test
2019-09-10 16:40:41 +02:00
Sonja Happ
f3a7ed0e61
**Major revision of repository structure**
...
- rename common package to database
- move all code not related to database to new helper package
- add more test in database package to improve code coverage
- add a new (own) package for AMQP client
2019-09-10 16:28:57 +02:00
Sonja Happ
451cd32d9b
fix a stage dependency error
2019-09-10 14:47:10 +02:00
Sonja Happ
f60eb990b8
- revise CI stages
...
- exclude invocation of swag from CI due to broken dependencies of swag package
- this should be changed again in the future
- deploy stage for API doc only depends on build stage
2019-09-10 14:44:59 +02:00
Sonja Happ
f0baf38398
add API doc files auto-generated by swag
2019-09-10 14:38:00 +02:00
Sonja Happ
f7548150ed
- use Go 1.12.9 instead of Go 1.13
2019-09-10 13:50:23 +02:00
Sonja Happ
52e2056ca9
- use Go 1.13 in docker image
...
- revert version changes of swag (use latest)
2019-09-10 13:30:34 +02:00
Sonja Happ
2c3fd9ba88
add a 'v' to specify swag revision
2019-09-10 13:26:01 +02:00
Sonja Happ
6d1be62f48
go get version 1.6.0 of swag
2019-09-10 13:23:35 +02:00
Sonja Happ
1bd3d59ff8
increase code coverage of dashboard tests, do not allow updating scenario ID of dashboard
2019-09-10 12:24:03 +02:00
Sonja Happ
dfe57140a5
fix a typo in variable name
2019-09-10 12:23:02 +02:00
Sonja Happ
2ffda7cad8
- revise naming of some common functions
...
- improve returning of error codes by using common functions
- use a separate file for authentication endpoint to improve clarity of code
2019-09-09 15:30:17 +02:00
Sonja Happ
71ab20bbef
add all in one testing and coverage analysis
2019-09-09 13:27:26 +02:00
Sonja Happ
7b8fc67512
fix some bugs with userID caused by code restructuring in prev commits
2019-09-09 12:42:27 +02:00
Sonja Happ
99f71d80c7
change default of DB host to /var/run/postgresql for Ubuntu systems
2019-09-09 12:41:34 +02:00
Sonja Happ
744dd7dac9
user var name instead of absolute value
2019-09-09 12:40:33 +02:00
Sonja Happ
ac9e564bc8
- deleting old obsolete test functions
...
- move all data and functions solely used for testing to the file test_utilities
- get rid of utilities file
2019-09-09 12:11:55 +02:00
Sonja Happ
f339c0d135
- revise testing of file endpoints
...
- revise documentation for swaggo
- clean up testdata
- delete serializers and responses files
- revise file endpoint implementations
2019-09-06 17:04:40 +02:00
Sonja Happ
7544c863de
- revise testing of signal endpoints
...
- revise documentation for swaggo
- clean up testdata, serializers and responses
- add validators for signal endpoints
- revise signal endpoint implementations
2019-09-06 16:01:59 +02:00
Sonja Happ
8882f6069c
fix a typo
2019-09-06 16:00:26 +02:00
Sonja Happ
b880a911f3
fix typos in documentation
2019-09-06 16:00:05 +02:00
Sonja Happ
676c2073ba
delete commented code
2019-09-06 15:11:26 +02:00
Sonja Happ
e3651e34f0
- revise testing of widget enpoints
...
- add validators for widgets
- revise implementation of widget endpoints
- clean up testdata, serializers and response
- improve documentation for swaggo
2019-09-06 15:10:25 +02:00
Sonja Happ
7c7488ee00
fix a typo in a variable name
2019-09-06 15:09:12 +02:00
Sonja Happ
30c13c64de
fix typos in endpoint documentation
2019-09-06 15:08:49 +02:00
Sonja Happ
dab027eef6
- revise testing of dashboard enpoints
...
- clean up testdata, serializers and responses
- add validators for dashboards
- revise documentation of dashboard endpoints for swaggo
- revise endpoint implementations
2019-09-06 14:07:36 +02:00
Sonja Happ
e0ae839e96
revise renaming of variables, no functional change
2019-09-06 14:06:18 +02:00
Sonja Happ
a8cccba667
remove commented old code
2019-09-06 14:05:40 +02:00