Skip to content

Commit

Permalink
issue #20771: added crud test
Browse files Browse the repository at this point in the history
  • Loading branch information
shackbarth committed Jul 8, 2013
1 parent 924dbb5 commit 5a931b7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions source/oauth2/test/oauth2client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
immed:true, eqeqeq:true, forin:true, latedef:true,
newcap:true, noarg:true, undef:true */
/*global XT:true, XM:true, XV:true, exports:true, describe:true, it:true, require:true */

(function () {
"use strict";

var crud = require("../../../../xtuple/node-datasource/test/mocha/lib/crud"),
assert = require("chai").assert;

var data = exports.data = {
recordType: "XM.Oauth2client",
autoTestAttributes: true,
createHash: {
clientID: "my_id_" + Math.random(),
clientSecret: "mostlysecret",
clientName: "Snowden",
clientEmail: "[email protected]",
clientType: "web server"
},
updateHash: {
clientSecret: "topsecret"
}
};

describe('Oauth2client crud test', function () {
this.timeout(20 * 1000);
it('should perform all the crud operations', function (done) {
crud.runAllCrud(data, done);
});
});
}());

0 comments on commit 5a931b7

Please sign in to comment.