How to use the arrayOfUuid function from assert-plus
Find comprehensive JavaScript assert-plus.arrayOfUuid code examples handpicked from public code repositorys.
58 59 60 61 62 63 64 65 66 67 68 69
*/ function filterListNetworks(api, cfg) { assert.object(api, 'api'); assert.object(api.log, 'api.log'); assert.object(cfg, 'cfg'); assert.arrayOfUuid(cfg.accounts, 'cfg.accounts'); var log = api.log; return function filterOwnerListNetworks(opts, networks) {
49
183
0
+ 3 other calls in file
GitHub: TritonDataCenter/sdcadm
52 53 54 55 56 57 58 59 60 61 62
*/ function addSharedVolumePackage(cli, packageSettings, callback) { assert.object(cli, 'cli'); assert.object(packageSettings, 'packageSettings'); assert.number(packageSettings.size, 'size'); assert.arrayOfUuid(packageSettings.owner_uuids, 'packageSettings.owner_uuids'); assert.func(callback, 'callback'); var papiClient = cli.sdcadm.papi;
19
13
0
GitHub: TritonDataCenter/sdc-fwapi
251 252 253 254 255 256 257 258 259 260 261
* Run the 'sync' task on all CNs' firewallers, and make sure it finishes * successfully on all CNs listed in the cns array. */ function syncAllCNs(t, cns, callback) { assert.object(t, 't'); assert.arrayOfUuid(cns, 'cns'); assert.optionalFunc(callback, 'callback'); var fwapi = mod_client.get('fwapi'); fwapi.createUpdate({ type: 'sync' }, function (err, res) {
7
4
0
27 28 29 30 31 32 33 34 35 36 37 38
} function validateFabricNetworkOwnership(napiClient, volumeParams, callback) { assert.object(napiClient, 'napiClient'); assert.object(volumeParams, 'volumeParams'); assert.arrayOfUuid(volumeParams.networks, 'volumeParams.networks'); assert.uuid(volumeParams.owner_uuid, 'volumeParams.owner_uuid'); assert.func(callback, 'callback'); var missing = [];
6
8
0
+ 3 other calls in file
assert-plus.object is the most popular function in assert-plus (2295 examples)