Add a timestamp column to apps table
this field can be used in UI to see if more detailed app information has to be fetched (since it calls the list apps REST API periodically)
This commit is contained in:
@@ -823,7 +823,7 @@ describe('database', function () {
|
||||
appdb.get(APP_0.id, function (error, result) {
|
||||
expect(error).to.be(null);
|
||||
expect(result).to.be.an('object');
|
||||
expect(_.omit(result, ['creationTime', 'updateTime'])).to.be.eql(APP_0);
|
||||
expect(_.omit(result, ['creationTime', 'updateTime', 'ts'])).to.be.eql(APP_0);
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -860,7 +860,7 @@ describe('database', function () {
|
||||
appdb.get(APP_0.id, function (error, result) {
|
||||
expect(error).to.be(null);
|
||||
expect(result).to.be.an('object');
|
||||
expect(_.omit(result, ['creationTime', 'updateTime'])).to.be.eql(APP_0);
|
||||
expect(_.omit(result, ['creationTime', 'updateTime', 'ts'])).to.be.eql(APP_0);
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -870,7 +870,7 @@ describe('database', function () {
|
||||
appdb.getByHttpPort(APP_0.httpPort, function (error, result) {
|
||||
expect(error).to.be(null);
|
||||
expect(result).to.be.an('object');
|
||||
expect(_.omit(result, ['creationTime', 'updateTime'])).to.be.eql(APP_0);
|
||||
expect(_.omit(result, ['creationTime', 'updateTime', 'ts'])).to.be.eql(APP_0);
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -895,8 +895,8 @@ describe('database', function () {
|
||||
expect(error).to.be(null);
|
||||
expect(result).to.be.an(Array);
|
||||
expect(result.length).to.be(2);
|
||||
expect(_.omit(result[0], ['creationTime', 'updateTime'])).to.be.eql(APP_0);
|
||||
expect(_.omit(result[1], ['creationTime', 'updateTime'])).to.be.eql(APP_1);
|
||||
expect(_.omit(result[0], ['creationTime', 'updateTime','ts'])).to.be.eql(APP_0);
|
||||
expect(_.omit(result[1], ['creationTime', 'updateTime','ts'])).to.be.eql(APP_1);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user