114 lines
4.3 KiB
JavaScript
114 lines
4.3 KiB
JavaScript
|
/**
|
||
|
* Garage Administration API v0+garage-v0.8.0
|
||
|
* Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!*
|
||
|
*
|
||
|
* The version of the OpenAPI document: v0.8.0
|
||
|
*
|
||
|
*
|
||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||
|
* https://openapi-generator.tech
|
||
|
* Do not edit the class manually.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
(function(root, factory) {
|
||
|
if (typeof define === 'function' && define.amd) {
|
||
|
// AMD.
|
||
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||
|
} else if (typeof module === 'object' && module.exports) {
|
||
|
// CommonJS-like environments that support module.exports, like Node.
|
||
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||
|
} else {
|
||
|
// Browser globals (root is window)
|
||
|
factory(root.expect, root.garage);
|
||
|
}
|
||
|
}(this, function(expect, garage) {
|
||
|
'use strict';
|
||
|
|
||
|
var instance;
|
||
|
|
||
|
beforeEach(function() {
|
||
|
instance = new garage.BucketInfo();
|
||
|
});
|
||
|
|
||
|
var getProperty = function(object, getter, property) {
|
||
|
// Use getter method if present; otherwise, get the property directly.
|
||
|
if (typeof object[getter] === 'function')
|
||
|
return object[getter]();
|
||
|
else
|
||
|
return object[property];
|
||
|
}
|
||
|
|
||
|
var setProperty = function(object, setter, property, value) {
|
||
|
// Use setter method if present; otherwise, set the property directly.
|
||
|
if (typeof object[setter] === 'function')
|
||
|
object[setter](value);
|
||
|
else
|
||
|
object[property] = value;
|
||
|
}
|
||
|
|
||
|
describe('BucketInfo', function() {
|
||
|
it('should create an instance of BucketInfo', function() {
|
||
|
// uncomment below and update the code to test BucketInfo
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be.a(garage.BucketInfo);
|
||
|
});
|
||
|
|
||
|
it('should have the property id (base name: "id")', function() {
|
||
|
// uncomment below and update the code to test the property id
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property globalAliases (base name: "globalAliases")', function() {
|
||
|
// uncomment below and update the code to test the property globalAliases
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property websiteAccess (base name: "websiteAccess")', function() {
|
||
|
// uncomment below and update the code to test the property websiteAccess
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property websiteConfig (base name: "websiteConfig")', function() {
|
||
|
// uncomment below and update the code to test the property websiteConfig
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property keys (base name: "keys")', function() {
|
||
|
// uncomment below and update the code to test the property keys
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property objects (base name: "objects")', function() {
|
||
|
// uncomment below and update the code to test the property objects
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property bytes (base name: "bytes")', function() {
|
||
|
// uncomment below and update the code to test the property bytes
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property unfinishedUploads (base name: "unfinishedUploads")', function() {
|
||
|
// uncomment below and update the code to test the property unfinishedUploads
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property quotas (base name: "quotas")', function() {
|
||
|
// uncomment below and update the code to test the property quotas
|
||
|
//var instance = new garage.BucketInfo();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
}));
|