S.No |
Test case name |
Repro steps |
Verification |
---|---|---|---|
1 |
call deployVirtualmachine api with <=2k encoded user data on port 8080 with get request |
|
API is successful and VM is created |
2 |
call deployVirtualmachine api with <=2k encoded user data on port 8096 with get request |
|
API is successful and VM is created |
3 |
call deployVirtualmachine api with encoded user data between 2k to 32k on port 8080 with post request |
|
API is successful and VM is created |
4 |
call deployVirtualmachine api with encoded user data between 2k to 32k on port 8096 with post request |
|
API is successful and VM is created |
5 |
call deployVirtualmachine api with encoded user data between 2k to 32k on port 8096 with get request |
|
API fails |
6 |
call deployVirtualmachine api with =<2k encoded user data on port 8096 with post request |
|
API is successful and VM is created |
7 |
call updateVM command with <=2k encoded user data on port 8080 with get request when userdata was not supplied during VM creation |
|
API is successful and VM is created |
8 |
call updateVM command with <=2k encoded user data on port 8096 with get request when userdata was not supplied during VM creation |
|
API is successful and VM is created |
9 |
call updateVM command with encoded user data between 2k to 32k on port 8080 with post request when userdata was not supplied during VM creation |
|
API is successful and VM is created |
10 |
call updateVM command with encoded user data between 2k to 32k on port 8096 with post request when userdata was not supplied during VM creation |
|
API is successful and VM is created |
11 |
call updateVM command with encoded user data between 2k to 32k on port 8096 with get request when userdata was not supplied during VM creation |
|
Api should fail |
12 |
call updateVM command with =<2k encoded user data on port 8096 with post request when userdata was not supplied during VM creation |
|
API is successful and VM is created |
13 |
call updateVM command with <=2k encoded user data on port 8080 with get request when userdata was supplied during VM creation |
|
API is successful and VM is created |
14 |
call updateVM command with <=2k encoded user data on port 8096 with get request when userdata was supplied during VM creation |
|
API is successful and VM is created |
15 |
call updateVM command with encoded user data between 2k to 32k on port 8080 with post request when userdata was supplied during VM creation |
|
API is successful and VM is created |
16 |
call updateVM command with encoded user data between 2k to 32k on port 8096 with post request when userdata was supplied during VM creation |
|
API is successful and VM is created |
17 |
call updateVM command with encoded user data between 2k to 32k on port 8096 with get request when userdata was supplied during VM creation |
|
Api should fail |
18 |
call updateVM command with encoded user data <=2k on port 8096 with post request when userdata was supplied during VM creation |
|
|
for <2k
Use :
userdata = b'MARKER' + b'%s'%(os.urandom(2*1024))
base64.b64encode(userdata)
For >32k
Use :
userdata = b'MARKER' + b'%s'%(os.urandom(20*1024))
base64.b64encode(userdata)
For sending Post request use
curl --globoff --data "" "url"
For sending get request use :
curl --globoff "url"