UNPKG

rain-from-google-cloud

Version:

easily list, filter, and pluck from data available to Google Compute Engine global object

26 lines (18 loc) 1.22 kB
> rain-from-google-cloud@0.1.0 test /home/drpaulbrewer/rain-from-google-cloud > mocha --reporter spec --slow 10000 --timeout 80000 rain-from-google-cloud ✓ rain should be a functionrain('Addresses') should be a Promise resolving to some Addressesrain('Disks') should be a Promise resolving to some Disksrain('Firewalls') should be a Promise resolving to some Firewallsrain('MachineTypes') should be a Promise resolving to some MachineTypesrain('Networks') should be a Promise resolving to some Networksrain('Operations') should be a Promise resolving to some Operationsrain('Regions') should be a Promise resolving to some Regionsrain('Snapshots') should be a Promise resolving to some Snapshotsrain('Subnetworks') should be a Promise resolving to some Subnetworksrain('VMs') should be a Promise resolving to some VMsrain('Zones') should be a Promise resolving to some Zonesrain('Blackholes') should throw because Google Cloud doesn't make Blackholes (yet?) ✓ rain('Zones', { filter: (z)=>(z.name.startsWith('us')), pluck: 'name'}) includes 'us-east1-b', 'us-central1-c' 14 passing (2s)