Sha256: 9f6f1f7752f674b22d9125d0023c49347c93c232ff8f90999f1342b626fb90ef
Contents?: true
Size: 1.89 KB
Versions: 3
Compression:
Stored size: 1.89 KB
Contents
module Helpers def options { uuid: /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i, datacenter: { name: 'Ruby SDK Datacenter', description: 'SDK test environment', location: 'de/fkb' }, server: { name: 'New Server', ram: 1024, cores: 1 }, volume: { name: 'my boot volume for server 1', size: 5, type: 'HDD', licenceType: 'UNKNOWN', availabilityZone: 'AUTO' }, snapshot: { name: 'Snapshot of storage X on 12.12.12 12:12:12 - updated', description: 'description of a snapshot - updated' }, nic: { name: 'nic1', dhcp: true, lan: 1, firewallActive: true, nat: false }, fwrule: { name: 'SSH', protocol: 'TCP', sourceMac: '01:23:45:67:89:00', sourceIp: nil, targetIp: nil, portRangeStart: 22, portRangeEnd: 22, icmpType: nil, icmpCode: nil }, loadbalancer: { name: 'My LB', # ip: '10.2.2.3', dhcp: 'true' }, lan: { name: 'public Lan 4', public: 'true' }, ipblock: { location: "de/fra", size: 1 }, composite_server: { name: 'New Composite Server', ram: 1024, cores: 1, volumes: [ { name: 'composite-boot', size: 5, type: 'HDD', licenceType: 'UNKNOWN' } ], nics: [ { name: 'nic1', dhcp: 'true', lan: 1, firewallrules: [ { name: 'SSH', protocol: 'TCP', portRangeStart: 22, portRangeEnd: 22, } ] } ] } } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
profitbricks-sdk-ruby-3.0.2 | spec/support/resource_helper.rb |
profitbricks-sdk-ruby-3.0.1 | spec/support/resource_helper.rb |
profitbricks-sdk-ruby-3.0.0 | spec/support/resource_helper.rb |