Test Case ID

Test Case Name

Steps

Expected Results

Priority (P1 | P2 |P3)

Test Case Type( Sanity | Functional |Negative)

Status
Pass/Fail

Comments

T001

Create tags

Create a tag on VM using creatTag API
eg :command=createTags&resourceIds=1&resourceType=userVm&tags[0].key=region&tags[0].value=India

1-The VM should be tagged with the given name.
2-listTags should show the all the tag associated with particulate VM including newly created tag.
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional/Sanity

Pass

 

T002

Delete tag

Delete above created tag using deleteTags API
eg:command=deleteTags&resourceIds=1&resourceType=VM&tags0.key=region

1-The attached Tag should be deleted successfully with out any error.
2--DB Check:
cloud.resource_tags table-there should not be deleted tag .

P1

Functional/Sanity

Pass

 

T003

List tags

list the created tags by running  listTags API
[http://10.147.39.84:8080/client/api?command=listTags
]

It should list the all the created Tags .and if no tags defined ,querying the tags should not cause any errors(Null Pointer Exceptions)

P1

Functional/Sanity

Pass

 

T004

Create tags on user VM

Create  a tag on VM using createTags API


eg :command=createTags&resourceIds=1&resourceType=userVm&tags[0].key=region&tags[0].value=India

1-The VM should be tagged with the given name.
2-listTags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P1

Functional

Pass


T005

Create tags on Template &ISO

1. Create  a tag on Template using createTags API
command=createTags&resourceIds=1&resourceType=Template&tags[0].key=OS&tags[0].value= Windows
2. Create  a tag on ISO using createTags API
command=createTags&resourceIds=1&resourceType=ISO&tags[0].key=OS&tags[0].value= Cent-OS

1-The template should be tagged with the given name.
2-The ISO should be tagged with the given name.
3-listtags should show the newly created tag
4-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P1

Functional/Sanity

Pass


T006

Create tags on Volumes

1. Create  a tag on Volumes using createTags API.
:command=createTags&resourceIds=1&resourceType=Volume&tags[0].key=region&tags[0].value= Canada

1-The Volume should be tagged with the given name.
2-listTags should show the newly created tag
3--DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional

Pass


T007

Create tags on Snapshot

1. Create  a tag on Snapshot using createTags API
command=createTags&resourceIds=1&resourceType=Snapshot&tags[0].key=region&tags[0].value= Canada

1-The Snapshot should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional

Pass

Snapshot Creation failed ,Erroe message KVM snapshot is not supported

T008

Create tags on GuestNetwork

1. Create  a tag on GuestNetwork using createTags API
command=createTags&resourceIds=1&resourceType=GuestNetwork&tags[0].key=region&tags[0].value= Canada

1-The GuestNetwork should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional

Pass

 

T009

Create tags on LB Rule

1. Create  a tag on LB Rule using createTags API

1-The LB Rule should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional/Sanity

Pass


T010

Create tags on PF Rule

1. Create  a tag on PF Rule using createTags API

1-The PF Rule should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional

Pass


T011

Create tags on Firewall Rule

1. Create  a tag on Firewall Rule using createTags API
http://10.147.39.51:8080/client/api?command=createTags&resourceIds=3&resourceType=FirewallRule&tags

1-The Fire Rule should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag).

P1

Functional

Pass


T012

Create tags on SecurityGroup

1. Create  a tag on Security group using createTags API

1-The Security group should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P1

Functional

Pass

 

T013

Create tags on Public IP address

1. Create  a tag on Public IP using createTags API

1-The  Public IP should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P2

Functional

Pass

 

T014

Create tags on multiple resource of same type

1. Create tags on multiple resource of same type using createTags API

eg:
command=createTags&resourceIds=1,10,12&resourceType=userVm&tags[0].key=region&tags[0].value=canada&tags[1].key=city&tags[1].value=Toronto

1-The multple UserVM should be tagged with the given key &values.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P2

Functional

Pass

 

T015

create multiple tags on single resources

1. Create multiple tags on single resource of same type using createTags API

command=createTags&resourceIds=1&resourceType=userVm&tags[0].key=region&tags[0].value=canada&tags[1].key=city&tags[1].value=Toronto

1-The resource(eg:VM) should be attached with multiple tags successfully
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P2

Functional

Pass

 

T016

Delete and add same tag

1. Create  a tag on VM using createTags API
2.Delete the tag.
3.add a same tag again

1.The VM should be tagged with the given name.2.The attached Tag should be deleted successfully with out any errors
3.Able to tag the VM successfully

P2

Functional

Pass

 

T017

Give same tag for different resource types

1.Try to create same Tag for multiple resources

Able to create Tags on resources successfully

P2

Functional

Pass

 

T018

create tag on stoppedVM

1. stop a running VM
2. Create  a tag on stoppedVM using createTags API

1-The VM should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P2

Functional

Pass

 

T019

Create tag on destroyed VM

1. Destroy a running VM
2. Create  a tag on destroyedVM using createTags API

1-The VM should be tagged with the given name.
2-listtags should show the newly created tag
3-DB Check:
cloud.resource_tags table-should have all tag including newly created record(Tag)

P3

Functional

Pass

 

T020

Create tag on LB rule and remove the LB rule

1. Configured LB rule by assigning  to vms
2. Create Tag on LB rule using CreateTag API
3. Delete the LB rule

1-It should delete the LB rule as well attached tag successfully
2--DB Check:
cloud.resource_tags table-there should not be deleted tag

P2

Functional

Pass

 

T021

Create tag on PF rule and remove the PF rule

1. Configured PF rule
2. Create Tag on PF rule  using CreateTag API
3. Delete the PF rule

1-It should delete the PFrule as well as attached tag successfully
2--DB Check:
cloud.resource_tags table-there should not be deleted tag

P2

Functional

Pass

 

T022

Create tag on  Firewall rule and remove the Firewall rule

1. Configured Firewall Rule
2. create Tag on Firewall Rule   using CreateTag API
3. Delete the Firewall rule

1-It should delete the Firewall rule as well as attached tag successfully
2--DB Check:
cloud.resource_tags table-there should not be deleted tag

P2

Functional

Pass

 

T023

Delete tags on UserVM

1.Create  a tag on VM using createTags API
2.delete above created tag using deleteTags API

1-should be tagged with the given name.

2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T024

Delete  tags on Template &ISO

1.Create  a tags on Template &ISO  using createTags API
2.delete above created tags using deleteTags API

1-should be tagged with the given name.

2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T025

Delete  tags on Volumes

1.Create  a tag on VM using createTags API
2.delete above created tag using deleteTags API

1-should be tagged with the given name.
2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T026

Delete  tags on Snapshot

1.Create  a tag on snapshot using createTags API
2.delete above created tag using deleteTags API

should be tagged with the given name.

The attached Tag should be deleted successfully with out any errors

P1

Functional

Pass

 

T027

Delete  tags on GuestNetwork

1.Create  a tag on GuestNetwork using createTags API
2.delete above created tag using deleteTags API

1-It should be tagged with the given name.

2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T028

Delete tags on LB Rule

1.Create  a tag on LB Rule using createTags API
2.delete above created tag using deleteTags API

1-LB rule should be tagged with the given name.

2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T029

Delete  tags on PF Rule

1.Create  a tag on Port-forward Rules using createTags API
2.Delete above created tag using deleteTags API

1-PF rule should be tagged with the given name.

2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T030

Delete  tags on Firewall

1.Create  a tag on firewall using createTags API
2.delete above created tag using deleteTags API

1-The VM should be tagged with the given name.

2-The attached Tag should be deleted successfully with out any errors
3--DB Check:
cloud.resource_tags table-there should not be deleted tag

P1

Functional

Pass

 

T031

Delete  tags on SecurityGroup

1.Create  a tag on VM using createTags API
2.delete above created tag using deleteTags API

The Firewall rule should be tagged with the given name.

The attached Tag should be deleted successfully with out any errors

P1

Functional

Pass

 

T032

Create tag and migrate instance

1.Create  a tag on VM using createTags API
2.perform live-migration form one host another host
3.delete the tag

Create tag should be successful
Migration Vm should be successful
deletion of tag should be successful

P2

Functional

Pass

 

T033

Create same tag with lower/upper case

1.Create  a tag with lowercase on VM using createTags API
command=createTags&resourceIds=1&resourceType=userVm&tags[0].key=region&tags[0].value=India
2.create a same tag with upper caseon VM using createTags API
command=createTags&resourceIds=1&resourceType=userVm&tags[0].key=REGION&tags[0].value=INDIA

1-Tag creation should be successful and
2-Creation failed with proper message "Entity already exists"

 

Functional

Pass


T034

attach more than 10 tags to resource

1.create more than 10 tags to VM using createTags API

Tag creation should be successful and

P2

Functional

Pass

 

T035

create tag with special Character

1.Create  a tag with special characters on VM using createTags API

Tag creation should be failed with proper error message

P3

Functional/Negative

Failed:

Able to create tag for any special character set

T036

Create Tag on projects

1.Create  a New project by cliking on "New Project"
2, Create a tag on projects using createTags API

Tag create should be successful

P2

Functional

Pass

 

T037

Query the tags of other user account resources

1.login with an account(account A)
2.create a tags on resource(eg:VM)
3. login with another account(Account b) and query the tags using listTags API
command=listTags&account=A

It should not list the tags of account A to Account B

P2

Functional

Pass

 

T038

Query the tags with Admin account

1.login with an account(account A)
2.create a tags on resource(eg:VM)
3. login with admin account and query the tags using listTags API
command=listTags&account=A

admin should able to see all the tags belongs to all accounts/resources

P1

Functional/Sanity

Pass

 

  • No labels