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) {
fork icon49
star icon183
watch icon0

+ 3 other calls in file

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;
fork icon19
star icon13
watch icon0

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) {
fork icon7
star icon4
watch icon0

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 = [];
fork icon6
star icon8
watch icon0

+ 3 other calls in file