Sha256: 84514ff5cd7714b9e45bf64401735f5100f8c2ce9f43dfe08ef96621a03eb731

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

--- 
- !ruby/struct:VCR::HTTPInteraction 
  request: !ruby/struct:VCR::Request 
    method: :get
    uri: https://myhost.com:2087/json-api/setresellermainip?ip=192.1.2.3&user=bob
    body: 
    headers: 
      authorization: 
      - WHM root:iscool
  response: !ruby/struct:VCR::Response 
    status: !ruby/struct:VCR::ResponseStatus 
      code: 200
      message: OK
    headers: 
      server: 
      - cpsrvd/11.28.64
      transfer-encoding: 
      - chunked
      content-type: 
      - text/plain
    body: "{\"result\":[{\"status\":1,\"statusmsg\":\"Successfully set main IP address of the reseller.\"}]}"
    http_version: "1.1"
- !ruby/struct:VCR::HTTPInteraction 
  request: !ruby/struct:VCR::Request 
    method: :get
    uri: https://myhost.com:2087/json-api/setresellermainip?ip=10&user=bob
    body: 
    headers: 
      authorization: 
      - WHM root:iscool
  response: !ruby/struct:VCR::Response 
    status: !ruby/struct:VCR::ResponseStatus 
      code: 200
      message: OK
    headers: 
      server: 
      - cpsrvd/11.28.64
      transfer-encoding: 
      - chunked
      content-type: 
      - text/plain
    body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Supplied IP address is invalid.\"}]}"
    http_version: "1.1"
- !ruby/struct:VCR::HTTPInteraction 
  request: !ruby/struct:VCR::Request 
    method: :get
    uri: https://myhost.com:2087/json-api/setresellermainip?ip=192.1.2.3&user=notexists
    body: 
    headers: 
      authorization: 
      - WHM root:iscool
  response: !ruby/struct:VCR::Response 
    status: !ruby/struct:VCR::ResponseStatus 
      code: 200
      message: OK
    headers: 
      server: 
      - cpsrvd/11.28.64
      transfer-encoding: 
      - chunked
      content-type: 
      - text/plain
    body: "{\"result\":[{\"status\":0,\"statusmsg\":\"Specified user is not a reseller.\"}]}"
    http_version: "1.1"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lumberg-1.0.1 spec/vcr_cassettes/whm/reseller/setresellermainip.yml
lumberg-1.0.0 spec/vcr_cassettes/whm/reseller/setresellermainip.yml
lumberg-0.9.5 spec/vcr_cassettes/whm/reseller/setresellermainip.yml