Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below information describe the API calls covered with what parameters. For Example

Example 1. CloudStackQueryEC2AMIClientLiveTest (these changes are done to pass this test)

  1. testDescribeImages test scenario tests following API call
    1. describeImagesInRegion API call is made and returns the correct response i.e. parsed successfully by jclouds
    2. describeImagesInRegion API call is made with parameter imageid and returns the correct response i.e. parsed successfully by jclouds.

Example 2. CloudStackQueryEC2KeyPairClientLiveTest

...

  1. testDescribeImages    It expects two images(normal one and ebs one) so its expectation has been changed to one image.
    1. describeImagesInRegion Here describeImages API call is made without any parameters. This test checks whether images in response are not null and correct in number.
    2.  describeImagesInRegion (imageid) This call is made with parameter imageid. Test checks whether response contains only one image with the image id as imageid. describeImagesInRegion (imageid)

CloudStackQueryEC2InstanceClientLiveTest

  1. testDescribeInstancesNo change
    1. describeInstancesInRegion Here describeInstances API call is made without any parameters. This test checks whether instnaces in response are not null and are greater than or equal to 0.

CloudStackQueryEC2ElasticIPAddressClientLiveTest

  1. testDescribeAddresses  No Change
    1. describeAddressesInRegion Here describeAddresses API call is made without any parameters. This test checks whether public IP pairs  in response are not null .
    2. describeAddressesInRegion(publicIp) If above call return result greater than 0 then make describeAddresses API call  with  parameter publicIp. It checks whether response contains the single pair with with public IP piblicIp.

CloudStackQueryEC2ElasticBlockStoreClientLiveTest 

  1. *testCreateVolumeInAvailabilityZone *have to change result size to 2( as some test not cleaned up the created volume,  work in progress)
    1. createVolumeInAvailabilityZone(zone, size) Here createVolume API call is made with parameters zone and size. It checks whether response is not null and zone of volume is zone
    2. describeVolumesInRegion(volumeid) Here describeVolumes API call is made with parameters volumeid. It checks whether result in response is not null and volume id is volumeid
  2. *testDescribeSnapshots *no change
    1. describeSnapshotsInRegion Here describeSnapshots API call is made without any parameters. This test checks whether snapshots in response are not null.
    2. describeSnapshotsInRegion(snapshotid) This call is made with parameter snapshotid. Test checks whether response contains only one snapshot with the snapshot id as snapshotid.
  3. testDescribeVolumes    command is working fine 
    1. describeVolumesInRegion Here describeImages API call is made without any parameters. This test checks whether  response is parsed correctly.

CloudStackQueryEC2AvailabilityZoneAndRegionClientLiveTest

  1. testDescribeAvailabilityZones  no change
    1. describeAvailabilityZonesInRegion Here describeAvailabilityZones API call is made without any parameters. This test checks whether Availability Zones in response are not null and correct in number.
    2. describeAvailabilityZonesInRegion(zoneid) This call is made with parameter zoneid. Test checks whether response contains only one zone with the zone id as zoneid.

CloudStackQueryEC2KeyPairClientLiveTest

  1. testCreateKeyPair    *have to remove one delete keypair call as this was deleting non-existent keypair.
    1. createKeyPairInRegion(keyName) Here createKeyPair API call is made with parameter keyName. This test checks whether result in response is not null. It also checks whether various parameters of key Pair are not null. Parameters checked are keyMaterial, SHA1 of private Key and keyName.
    2. describeKeyPairsInRegion(keyName) Here describeKeyPairs API call is called with  parameter keyName. It checks whether response contains the single pair with with key pair name as keyname.
    3. deleteKeyPairInRegion(keyName) Here deleteKeyPair API call is made with parameter keyName. It checks whether response is parsed correctly by jclouds
  2. testDescribeKeyPairschanges related to region
    1. describeKeyPairsInRegion Here describeKeyPairs API call is made without any parameters. This test checks whether Key Paiirs in response are not null .
    2. describeKeyPairsInRegion(keyName) If above call return result greater than 0 then make describeKeyPairs API call  with  parameter keyName. It checks whether response contains the single pair with with key pair name as keyname.

CloudStackQueryEC2SecurityGroupClientLiveTest

  1. testCreateSecurityGroup *have to remove one delete security group call as this was deleting non-existent security group.
    1. createSecurityGroupInRegion(groupName, groupDescription) Here createSecurityGroup API call is made with parameters groupName and groupDescription. It checks whether response is not null and and group is created with parameters passed correctly.
    2. deleteSecurityGroupInRegion(groupName) Here deleteSecurityGroup API call is made with parameter groupName. It checks whether response is parsed correctly by jclouds
  2. testDescribe   *changes related to region
    1. describeSecurityGroupsInRegion Here describeSecurityGroups API call is made without any parameters. This test checks whether security groups  in response are not null.
    2. describeSecurityGroupsInRegion(groupName) If above call return result greater than 0 then make describeSecurityGroups API call  with  parameter groupName. It checks whether response contains the single security group with with name groupName.

Tests which are failing

CloudStackQueryEC2AMIClientLiveTest

...