Skip to content

Commit

Permalink
create e2e testing on audit microservice
Browse files Browse the repository at this point in the history
  • Loading branch information
Signorini committed Sep 24, 2019
1 parent 42dbd8d commit 98e5536
Show file tree
Hide file tree
Showing 10 changed files with 407 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/audit/entities/Audit.js
Expand Up @@ -2,7 +2,7 @@

const _ = require('lodash');

const Audit = require('../repositories/dao/audit');
const Audits = require('../repositories/dao/audit');

const audit = () => {
const resFilled = ['_id', 'updated_at', 'entity', 'entity_id', 'user', 'body'];
Expand All @@ -18,7 +18,7 @@ const audit = () => {

validators: require('../validators/audit'),

dao: Audit,
dao: Audits,

filled,
singleFilled,
Expand Down
4 changes: 2 additions & 2 deletions app/audit/entities/Snapshot.js
Expand Up @@ -2,7 +2,7 @@

const _ = require('lodash');

const Snapshot = require('../repositories/dao/snapshot');
const Snapshots = require('../repositories/dao/snapshot');

const snapshot = () => {
const resFilled = ['_id', 'updated_at', 'entity', 'entity_id', 'user', 'body'];
Expand All @@ -18,7 +18,7 @@ const snapshot = () => {

validators: require('../validators/audit'),

dao: Snapshot,
dao: Snapshots,

filled,
singleFilled,
Expand Down
4 changes: 2 additions & 2 deletions app/audit/repositories/dao/audit.js
Expand Up @@ -2,5 +2,5 @@

const Dao = require('core/repositories/daos/DBConnector');

class Audit extends Dao {}
module.exports = Audit;
class Audits extends Dao {}
module.exports = Audits;
4 changes: 2 additions & 2 deletions app/audit/repositories/dao/snapshot.js
Expand Up @@ -2,5 +2,5 @@

const Dao = require('core/repositories/daos/DBConnector');

class Snapshot extends Dao {}
module.exports = Snapshot;
class Snapshots extends Dao {}
module.exports = Snapshots;
2 changes: 1 addition & 1 deletion docs/audit/api_data.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/audit/api_data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/audit/api_project.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/audit/api_project.json
@@ -1 +1 @@
{ "name": "API Maestro - Audit App", "version": "0.1.0", "description": "API documentation - HTML/RestFull", "apidoc": "0.3.0", "header": { "content": "<p>Maestro server - Cloud inventory is smart inventory platform, its a database of all information of multi datacenters.\nAudit App is webapp application port of Maestro Server stack, control and manage time tracking for each entity.</p>\n" }, "order": [ "Ping", "Audit" ], "sampleUrl": false, "defaultVersion": "0.0.0", "generator": { "name": "apidoc", "time": "2018-12-18T13:28:24.063Z", "url": "http://apidocjs.com", "version": "0.17.7" }}
{ "name": "API Maestro - Audit App", "version": "0.1.0", "description": "API documentation - HTML/RestFull", "apidoc": "0.3.0", "header": { "content": "<p>Maestro server - Cloud inventory is smart inventory platform, its a database of all information of multi datacenters.\nAudit App is webapp application port of Maestro Server stack, control and manage time tracking for each entity.</p>\n" }, "order": [ "Ping", "Audit" ], "sampleUrl": false, "defaultVersion": "0.0.0", "generator": { "name": "apidoc", "time": "2019-09-24T11:03:10.910Z", "url": "http://apidocjs.com", "version": "0.17.7" }}
Expand Down

0 comments on commit 98e5536

Please sign in to comment.