Logo: Relish

  1. Sign in

Project: Asset-service

VM List

The asset service retrieves a list of all the virtual machines related to a given company

Scenarios
Virtual machine
Given
Stark Industries has procured some virtual machines
When
a get request is performed for 'assets/stark_industries_proposition_id/vms'
Then
the following response should be included
  {
      "ci":"13",
      "os":"WINDOWS 2008 Enterprise R2 SP2 x86_32 Guest OS",
      "cpu_speed":"3 Ghz",
      "vcpu":"6",
      "ram":"16 GB",
      "system_disk":"Essential 65 GB",
      "procured_date":"2013-05-14 11:37:47",
      "cloudstack_name":"W2008 VM Name",
      "state":"Pending",
      "actions": [
                  {"name": "name 1","id" : "id 1","description" : "description 1"},
                  {"name": "name 2","id" : "id 2","description" : "description 2"}
      ]
    }
Virtual Machine List
Given
Stark Industries has procured some virtual machines
When
a get request is performed for 'assets/stark_industries_proposition_id/vms'
Then
the following VM list should be returned
CI STATE OS NAME CPU SPEED VCPU RAM SYSTEM DISK CLOUDSTACK NAME PROCURE DATE
13 Pending WINDOWS 2008 Enterprise R2 SP2 x86_32 Guest OS 3 Ghz 6 16 GB Essential 65 GB W2008 VM Name 2013-05-14 11:37:47
1 Available WINDOWS 2003 Enterprise R2 SP2 x86_32 Guest OS 1 Ghz 4 8 GB Essential 65 GB 2013-05-08 11:37:47
12 Completed LINUX Red Hat RHEL 3 Ghz 2 4 GB Essential 50 GB Linux VM Name 2013-04-10 11:37:47
Ordering by purchased date
Given
Service Now gives the vms in this order for Stark Industries
CI purchased date
2 2013-04-10 11:37:47
3 2013-05-14 11:37:47
1 2013-05-08 11:37:47
When
a get request is performed for 'assets/stark_industries_proposition_id/vms'
Then
the vms should be received in this order
CI
3
1
2

Last published about 4 years ago by John James.