Update tests to match refactor of Logs,Stays,Moorages

Update dynamic openapi documentation
Add dynamic mermaid schema documentation
This commit is contained in:
xbgmsharp
2023-11-14 23:28:20 +01:00
parent c879c4bdab
commit e1e7da779e
13 changed files with 218 additions and 127 deletions

View File

@@ -43,7 +43,7 @@ var moment = require('moment');
},
user_tables: [
{ url: '/stays', res_body_length: 3},
{ url: '/moorages', res_body_length: 2},
{ url: '/moorages', res_body_length: 3},
{ url: '/logbook', res_body_length: 2},
{ url: '/metadata', res_body_length: 1}
],
@@ -241,7 +241,7 @@ var moment = require('moment');
},
user_tables: [
{ url: '/stays', res_body_length: 3},
{ url: '/moorages', res_body_length: 2},
{ url: '/moorages', res_body_length: 4},
{ url: '/logbook', res_body_length: 2},
{ url: '/metadata', res_body_length: 1}
],
@@ -684,7 +684,7 @@ request.set('User-Agent', 'PostgSail unit tests');
.set('Authorization', `Bearer ${user_jwt}`)
.set('Accept', 'application/json')
.end(function(err,res){
//console.log(res.body);
console.log(res.body);
res.status.should.equal(200);
should.exist(res.header['content-type']);
should.exist(res.header['server']);