/usr/lib/python2.6/site-packages/novaclient/tests/unit/v2
NameSizeModeActions
contrib/-0755rm
fakes.py855770644editdlrm
fakes.pyc899350644editdlrm
testfile.txt50644editdlrm
test_agents.py39940644editdlrm
test_agents.pyc40190644editdlrm
test_aggregates.py57570644editdlrm
test_aggregates.pyc57000644editdlrm
test_auth.py142960644editdlrm
test_auth.pyc130670644editdlrm
test_availability_zone.py39130644editdlrm
test_availability_zone.pyc41270644editdlrm
test_certs.py13800644editdlrm
test_certs.pyc15490644editdlrm
test_client.py15340644editdlrm
test_client.pyc14920644editdlrm
test_cloudpipe.py17570644editdlrm
test_cloudpipe.pyc20760644editdlrm
test_fixed_ips.py17850644editdlrm
test_fixed_ips.pyc20830644editdlrm
test_flavors.py89190644editdlrm
test_flavors.pyc109880644editdlrm
test_flavor_access.py23810644editdlrm
test_flavor_access.pyc28280644editdlrm
test_floating_ips.py22750644editdlrm
test_floating_ips.pyc27200644editdlrm
test_floating_ips_bulk.py30940644editdlrm
test_floating_ips_bulk.pyc34660644editdlrm
test_floating_ip_dns.py35290644editdlrm
test_floating_ip_dns.pyc43130644editdlrm
test_floating_ip_pools.py12370644editdlrm
test_floating_ip_pools.pyc12300644editdlrm
test_fping.py22420644editdlrm
test_fping.pyc30200644editdlrm
test_hosts.py31440644editdlrm
test_hosts.pyc44450644editdlrm
test_hypervisors.py61710644editdlrm
test_hypervisors.pyc59140644editdlrm
test_images.py25510644editdlrm
test_images.pyc37130644editdlrm
test_keypairs.py39410644editdlrm
test_keypairs.pyc53570644editdlrm
test_limits.py31600644editdlrm
test_limits.pyc30660644editdlrm
test_networks.py40360644editdlrm
test_networks.pyc52570644editdlrm
test_quotas.py22920644editdlrm
test_quotas.pyc28760644editdlrm
test_quota_classes.py14210644editdlrm
test_quota_classes.pyc17130644editdlrm
test_security_groups.py31350644editdlrm
test_security_groups.pyc41160644editdlrm
test_security_group_rules.py35730644editdlrm
test_security_group_rules.pyc36530644editdlrm
test_servers.py310140644editdlrm
test_servers.pyc367560644editdlrm
test_server_groups.py27690644editdlrm
test_server_groups.pyc32400644editdlrm
test_server_migrations.py34330644editdlrm
test_server_migrations.pyc47070644editdlrm
test_services.py51260644editdlrm
test_services.pyc66430644editdlrm
test_shell.py1108870644editdlrm
test_shell.pyc1379010644editdlrm
test_usage.py19030644editdlrm
test_usage.pyc25780644editdlrm
test_versions.py36490644editdlrm
test_versions.pyc37700644editdlrm
test_volumes.py40210644editdlrm
test_volumes.pyc51360644editdlrm
__init__.py00644editdlrm
__init__.pyc1630644editdlrm
Edit: /usr/lib/python2.6/site-packages/novaclient/tests/unit/v2/test_shell.pyc (137901B)
=vVc@s\ddkZddkZddkZddkZddkZddkZddklZddkZddk l Z ddk Z ddk l Z ddkZ ddklZddklZddkZ deifdYZd eifd YZd efd YZd efdYZdeifdYZdeifdYZdS(iN(t timeutils(tbuiltins(t exceptions(tutils(tfakest ShellFixturecBseZdZdZRS(cCs)tt|itii|_dS(N(tsuperRtsetUpt novaclienttshelltOpenStackComputeShell(tself((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR'scCs>t|ido|iiintt|idS(Ntcs(thasattrR R tclear_callstackRRttearDown(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR+s(t__name__t __module__RR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR&s t ShellTestcBs eZhdd6dd6dd6dd6dd 6d d 6Zd Zeid deieiddeid\dZ d\dZ d\dZ dZ dZ dZdZdZdZdZdZdZdZdZdZdZd Zd!Zd"Zd#Zd$Zd%Zd&Zd'Z d(Z!d)Z"d*Z#d+Z$d,Z%d-Z&d.Z'd/Z(d0Z)d1Z*d2Z+d3Z,eid4d5Z-d6Z.d7Z/d8Z0d9Z1d:Z2d;Z3d<Z4d=Z5d>Z6d?Z7d@Z8dAZ9dBZ:dCZ;dDZ<dEZ=dFZ>dGZ?dHZ@dIZAdJZBdKZCeid eieideidLZDdMZEdNZFdOZGeid4dPZHdQZIdRZJdSZKdTZLdUZMdVZNdWZOdXZPdYZQdZZRd[ZSd\ZTd]ZUd^ZVd_ZWd`ZXdaZYdbZZdcZ[ddZ\deZ]dfZ^dgZ_dhZ`diZadjZbdkZcdlZddmZednZfdoZgdpZhdqZidrZjdsZkdtZlduZmdvZndwZodxZpdyZqdzZrd{Zsd|Ztd}Zud~ZvdZwdZxeideiydddZzeideiydddZ{dZ|dZ}dZ~dZdZeiddZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Zd Zd Zd Zd ZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZdZdZdZdZdZdZd Zd!Zd"Zd#Zd$Zd%Zd&Zd'Zd(Zd)Zd*Zd+Z d,Z!d-Z"d.Z#d/Z$d0Z%d1Z&d2Z'd3Z(d4Z)d5Z*d6Z+d7Z,d8Z-d9Z.d:Z/d;Z0d<Z1d=Z2d>Z3d?Z4d@Z5dAZ6dBZ7dCZ8dDZ9eidEeidFdGZ:eidEeidFdHZ;d\dId\dJZ<dKZ=dLZ>dMZ?dNZ@d\dId\dOZAdPZBdQZCdRZDdSZEdTZFdUZGdVZHdWZIdXZJdYZKdZZLd[ZMRS(]tusernamet NOVA_USERNAMEtpasswordt NOVA_PASSWORDt project_idtNOVA_PROJECT_IDt2tOS_COMPUTE_API_VERSIONshttp://no.wheretNOVA_URLshttp://no.where/v2.0t OS_AUTH_URLcCstt|ix1|iD]&}|iti||i|qW|iti|_|iti dddS(sRun before each test.snovaclient.client.Clientc_sti||S((Rt FakeClient(targstkwargs((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pytJsN( RRRtFAKE_ENVt useFixturetfixturestEnvironmentVariableRR t MonkeyPatch(R tvar((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR?s  s sys.stdoutt new_callables sys.stderrcCsg}|o|id|ddgnt|to|ii||n|ii||i|i|ifS(Ns--os-compute-api-versions--service-typet computev21(textendt isinstancetlistR tmaintsplittgetvalue(R tcmdt mock_stderrt mock_stdoutt api_versiontversion_options((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt run_commandLs cKs|iii||||S(N(R R t assert_called(R tmethodturltbodyR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR5YscCs|iii|||S(N(R R tassert_called_anytime(R R6R7R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR9\scCs!|id|idddS(Nsagent-list --hypervisor xentGETs/os-agents?hypervisor=xen(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_agents_list_with_hypervisor_s cCsU|id|iddhhdd6dd6dd 6d d 6d d 6dd6d6dS(NsJagent-create win x86 7.0 /xxx/xxx/xxx add6bb58e139be103324d04d82d8f546 kvmtPOSTs /os-agentstkvmt hypervisortwintostx86t architectures7.0tversions /xxx/xxx/xxxR7t add6bb58e139be103324d04d82d8f546tmd5hashtagent(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_agents_createcs cCs!|id|idddS(Nsagent-delete 1tDELETEs /os-agents/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_agents_deleters cCs@|id|iddhhdd6dd6dd 6d 6dS( NsBagent-modify 1 8.0 /yyy/yyyy/yyyy add6bb58e139be103324d04d82d8f546tPUTs /os-agents/1s/yyy/yyyy/yyyyR7s8.0RCRDREtpara(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_agents_modifyvs   cCsN|id|iddhhdd6dd6dd6d d 6d d 6d 6dS( Ns%boot --flavor 1 --image 1 some-serverR<s/serverst1t flavorRefs some-servertnametimageRefit min_countt max_counttserver(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_boots cCsN|id|iddhhdd6dd6dd6d d 6d d 6d 6dS( Ns<boot --flavor 1 --image-with test_key=test_value some-serverR<s/serversRMRNs some-serverRORPiRQRRRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_image_withs cCsU|id|iddhhdd6dd6dd6dd 6d d 6d d 6d 6dS(Ns2boot --flavor 1 --image 1 --key_name 1 some-serverR<s/serversRMRNs some-serverRORPtkey_nameiRQRRRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_boot_keys cCstiitiitd}t|iid}ti |i d}|i d||i ddhhdd6dd 6dd 6d d 6d d 6|d6d6dS(Ns testfile.txtsutf-8s4boot --flavor 1 --image 1 --user_data %s some-serverR<s/serversRMRNs some-serverRORPiRQRRt user_dataRS( R@tpathtjointdirnamet__file__topentreadtencodetbase64t b64encodetdecodeR4R9(R ttestfiletdatatexpected_file_data((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_user_datas! cCsU|id|iddhhdd6dd6dd6d d 6d d 6d d 6d6dS(NsAboot --flavor 1 --image 1 --availability-zone avzone some-serverR<s/serversRMRNs some-serverRORPtavzonetavailability_zoneiRQRRRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_avzonesc Csi|id|iddhhhdd6hdd6gd6dd 6d d6dd 6d d 6d d6d6dS(NsLboot --flavor 1 --image 1 --security-groups secgroup1,secgroup2 some-serverR<s/serverst secgroup1ROt secgroup2tsecurity_groupsRMRNs some-serverRPiRQRRRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_secgroups cCsU|id|iddhhdd6dd6dd6d d 6d d 6td 6d 6dS(Ns6boot --flavor 1 --image 1 --config-drive 1 some-serverR<s/serversRMRNs some-serverRORPiRQRRt config_driveRS(R4R9tTrue(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_config_drivescCsU|id|iddhhdd6dd6dd6d d 6d d 6d d 6d6dS(Ns=boot --flavor 1 --image 1 --config-drive /dev/hda some-serverR<s/serversRMRNs some-serverRORPiRQRRs/dev/hdaRnRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_config_drive_customscCsHtiitiitd}d|}|iti|i|dS(Nt no_such_files4boot some-server --flavor 1 --image 1 --user_data %s( R@RYRZR[R\t assertRaisesRt CommandErrorR4(R t invalid_fileR/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_invalid_user_datas  cCs#d}|iti|i|dS(Nsboot --flavor 1 some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_no_image_no_bdmsscCs#d}|iti|i|dS(Nsboot --image 1 some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_no_flavorscCsm|id|iddhhdd6dd6hdd 6d d 6d d 6gd6dd6dd6dd6d6dS(Ns?boot --flavor 1 --block_device_mapping vda=blah:::0 some-serverR<s/os-volumes_bootRMRNs some-serverROtblaht volume_idt0tdelete_on_terminationtvdat device_nametblock_device_mappingtRPiRQRRRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_no_image_bdmssc Cs|id|iddhhdd6dd6hdd 6d d 6d d 6dd6td6hdd 6dd 6dd 6dd6dd6dd6dd6td6gd6dd6dd6dd6d6dS(Nsboot --flavor 1 --image 1 --block-device id=fake-id,source=volume,dest=volume,device=vda,size=1,format=ext4,type=disk,shutdown=preserve some-serverR<s/os-volumes_bootRMRNs some-serverROituuidtimaget source_typetlocaltdestination_typeit boot_indexR|sfake-idtvolumeR}R~t volume_sizetext4t guest_formattdiskt device_typetblock_device_mapping_v2RPRQRRRS(R4R9RotFalse(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_image_bdms_v2s2cCs|id|iddhhdd6dd6h dd 6d d 6d d 6d d6dd6dd6dd6dd6dd6td6gd6dd6dd6dd6d6d }|i||iddhhdd6dd6hdd 6d d 6d d 6d!d6td6gd6dd6dd6dd6d6d"}|i||iddhhdd6dd6hdd 6d#d 6d d 6d!d6td6gd6dd6dd6dd6d6|id$|iddhhdd6dd6hd%d 6d&d 6d'd6d(d6dd6td6gd6dd6dd6dd6d6|id)|iddhhdd6dd6hd%d 6d&d 6d'd6dd6dd6td6gd6dd6dd6dd6d6dS(*Nsboot --flavor 1 --block-device id=fake-id,source=volume,dest=volume,bus=virtio,device=vda,size=1,format=ext4,bootindex=0,type=disk,shutdown=preserve some-serverR<s/os-volumes_bootRMRNs some-serverROsfake-idRRRRtvirtiotdisk_busR}R~RRRR{RRRR|RRRPiRQRRRSs1boot --flavor 1 --boot-volume fake-id some-serveris.boot --flavor 1 --snapshot fake-id some-servertsnapshots$boot --flavor 1 --swap 1 some-servertblankRitswaps:boot --flavor 1 --ephemeral size=1,format=ext4 some-server(R4R9RRo(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_no_image_bdms_v2Bs   cCsc|id|iddhhdd6dd6dd6hd d 6d d 6d 6dd6dd6d6dS(NsLboot --image 1 --flavor 1 --meta foo=bar=pants --meta spam=eggs some-server R<s/serversRMRNs some-serverRORPs bar=pantstfooteggstspamtmetadataiRQRRRS(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_metadatas cCsb|id|iddhhdd6dd6dd6d d 6d d 6d 6hd dgd6d6dS(NsDboot --image 1 --flavor 1 --hint a=b0=c0 --hint a=b1=c1 some-server R<s/serversRMRNs some-serverRORPiRQRRRSsb0=c0sb1=c1tasos:scheduler_hints(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_hintss  cCsld}|i||iddhhdd6dd6dd6d d 6d d 6hd d 6dd6gd6d6dS(NsKboot --image 1 --flavor 1 --nic net-id=a=c,v4-fixed-ip=10.0.0.1 some-serverR<s/serversRMRNs some-serverRORPiRQRRsa=cRs10.0.0.1tfixed_iptnetworksRS(R4R9(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_nicss cCsld}|i||iddhhdd6dd6dd6d d 6d d 6hd d 6dd6gd6d6dS(NsSboot --image 1 --flavor 1 --nic net-id=a=c,v6-fixed-ip=2001:db9:0:1::10 some-serverR<s/serversRMRNs some-serverRORPiRQRRsa=cRs2001:db9:0:1::10RRRS(R4R9(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_nics_ipv6s cCs#d}|iti|i|dS(Nshboot --image 1 --flavor 1 --nic net-id=a=c,v4-fixed-ip=10.0.0.1,v6-fixed-ip=2001:db9:0:1::10 some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_boot_nics_both_ipv4_and_ipv6scCs#d}|iti|i|dS(Ns2boot --image 1 --flavor 1 --nic net-id some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_nics_no_value scCs#d}|iti|i|dS(NsSboot --image 1 --flavor 1 --nic net-id=a=c,v4-fixed-ip=10.0.0.1,foo=bar some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_nics_random_keyscCs#d}|iti|i|dS(Ns@boot --image 1 --flavor 1 --nic v4-fixed-ip=10.0.0.1 some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_boot_nics_no_netid_or_portidscCs#d}|iti|i|dS(NsMboot --image 1 --flavor 1 --nic port-id=some=port,net-id=some=net some-server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_nics_netid_and_portidsc Cstiitiitd}t|i}ti|i di d}d}|i |||f|i ddhhdd6dd 6dd 6d d 6d d 6hdd6|d6hdd6|d6gd6d6dS(Ns testfile.txtsutf-8sKboot some-server --flavor 1 --image 1 --file /tmp/foo=%s --file /tmp/bar=%sR<s/serversRMRNs some-serverRORPiRQRRs/tmp/barRYtcontentss/tmp/foot personalityRS( R@RYRZR[R\R]R^R`RaR_RbR4R9(R RcRdtexpectedR/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_filess!!cCsHtiitiitd}d|}|iti|i|dS(Ntasdfasdfasdfasdfs4boot some-server --flavor 1 --image 1 --file /foo=%s( R@RYRZR[R\RsRRtR4(R RuR/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_invalid_files5s  cCsN|id|iddhhdd6dd6dd6d d 6d d 6d6dS( Ns2boot --image 1 --flavor 1 --num-instances 3 serverR<s/serversRMRNRSRORPiRQiRR(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_num_instances<s cCs#d}|iti|i|dS(Ns3boot --image 1 --flavor 1 --num-instances 0 server(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_invalid_num_instancesJscCsBd}|iti|i|d}|iti|i|dS(Ns>boot --image 1 --flavor 1 --num-instances 3 --min-count 3 servs>boot --image 1 --flavor 1 --num-instances 3 --max-count 3 serv(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_boot_num_instances_and_countNscCsK|id|iddhhdd6dd6dd6d d 6d d 6d6|id |iddhhdd6dd6dd6d d 6d d 6d6|id|iddhhdd6dd6dd6d d 6d d 6d6|id|iddhhdd6dd6dd6d d 6dd 6d6d}|iti|i|dS(Ns.boot --image 1 --flavor 1 --max-count 3 serverR<s/serversRMRNRSRORPiRQiRRs.boot --image 1 --flavor 1 --min-count 3 servers<boot --image 1 --flavor 1 --min-count 3 --max-count 3 servers<boot --image 1 --flavor 1 --min-count 3 --max-count 5 serveris:boot --image 1 --flavor 1 --min-count 3 --max-count 1 serv(R4R9RsRRt(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_min_max_countTsT    s$novaclient.v2.shell._poll_for_statuscCs|id|iddhhdd6dd6dd6d d 6d d 6d 6|id |i|iti|iii i d ddggdS(Ns,boot --flavor 1 --image 1 some-server --pollR<s/serversRMRNs some-serverRORPiRQRRRSitbuildingtactive( R4R9t assertEqualt call_counttassert_has_callstmocktcallR R tserverstget(R t poll_method((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_with_polls cCs|iti|iddS(Ns0boot --flavor 1 --image 1 some-bad-server --poll(RsRtInstanceInErrorStateR4(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt+test_boot_with_poll_to_check_VM_state_errorsc Cs|iddddddddg|id d d d |id d d d|id dd d|id dd d|iddhhdd6dd6dd6dd6dd6d6d ddS(Ntboots--imageRMs--flavors 512 MB Servers --max-countt3RSR:s /images/1tposis/flavors/512 MB Serveris/flavors?is_public=Noneis /flavors/2iR<s/serversRRNRORPRQRRi(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_boot_named_flavors"cCs#d}|iti|i|dS(Ns3boot --flavor 1 --image 1 --ephemeral 1 some-server(RstargparsetArgumentTypeErrorR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt'test_boot_invalid_ephemeral_data_formatscCs!|id|idddS(Ns flavor-listR:s/flavors/detail(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_lists cCs1|id|idd|idddS(Nsflavor-list --extra-specsR:s/flavors/aa1/os-extra_specss/flavors/detail(R4R5R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_flavor_list_with_extra_specss cCs!|id|idddS(Nsflavor-list --allR:s/flavors/detail?is_public=None(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_list_with_alls cCs!|id|idddS(Ns flavor-show 1R:s /flavors/1(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_shows cCs!|id|idddS(Nsflavor-show aa1R:s /flavors/aa1(R4R9(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_flavor_show_with_alphanum_ids cCso|iddg|idddd|idddd|idd dd |idd dd dS( Ns flavor-shows 128 MB ServerR:s/flavors/128 MB ServerRis/flavors?is_public=Noneis /flavors/aa1is/flavors/aa1/os-extra_specsi(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_show_by_names cCso|iddg|idddd|idddd|idd dd |idd dd dS( Ns flavor-shows 512 MB ServerR:s/flavors/512 MB ServerRis/flavors?is_public=Noneis /flavors/2is/flavors/2/os-extra_specsi(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_show_by_name_privs cCs2|id|iddhhdd6d6dS(Nsflavor-key 1 set k1=v1R<s/flavors/1/os-extra_specstv1tk1t extra_specs(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_key_sets  cCs!|id|idddS(Nsflavor-key 1 unset k1RHs/flavors/1/os-extra_specs/k1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_key_unsets cCs!|id|idddS(Nsflavor-access-list --flavor 2R:s/flavors/2/os-flavor-access(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_access_list_flavors cCs#d}|iti|i|dS(Ns,flavor-access-list --flavor 2 --tenant proj2(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt"test_flavor_access_list_bad_filterscCs#d}|iti|i|dS(Nsflavor-access-list(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_flavor_access_list_no_filterscCs2|id|iddhhdd6d6dS(Nsflavor-access-add 2 proj2R<s/flavors/2/actiontproj2ttenanttaddTenantAccess(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_access_add_by_ids  cCs;|idddg|iddhhdd6d6dS(Nsflavor-access-adds 512 MB ServerRR<s/flavors/2/actionRR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_access_add_by_names cCs2|id|iddhhdd6d6dS(Nsflavor-access-remove 2 proj2R<s/flavors/2/actionRRtremoveTenantAccess(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_access_remove_by_ids  cCs;|idddg|iddhhdd6d6dS(Nsflavor-access-removes 512 MB ServerRR<s/flavors/2/actionRR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_flavor_access_remove_by_names cCs!|id|idddS(Ns image-show 1R:s /images/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_show s cCs2|id|iddhhdd6d6dS(Ns$image-meta 1 set test_key=test_valueR<s/images/1/metadatat test_valuettest_keyR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_meta_set s  cCs!|id|idddS(Ns'image-meta 1 delete test_key=test_valueRHs/images/1/metadata/test_key(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_meta_dels cCs|it|iddS(Ns+image-meta 1 BAD_ACTION test_key=test_value(Rst SystemExitR4(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_meta_bad_actionscCs!|id|idddS(Ns image-listR:s/images/detail(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_lists cCs9|id|iddhhdd6hd6d6dS(Ns%image-create sample-server mysnapshotR<s/servers/1234/actiont mysnapshotRORt createImage(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_create_image s cCsa|id\}}|iddhhdd6hd6d6|id||id |dS( Ns,image-create sample-server mysnapshot --showR<s/servers/1234/actionRRORRsMy Server BackuptSAVING(R4R9tassertIn(R toutputt_((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_create_image_show'scCs}|id|iddhhdd6hd6d6|id|i|iti|iii i d d d ggdS( Ns,image-create sample-server mysnapshot --pollR<s/servers/1234/actionRRORRit456t snapshottingR( R4R9RRRRRR R timagesR(R R((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_create_image_with_poll1scCs|iti|iddS(Ns4image-create sample-server mysnapshot_deleted --poll(RsRtInstanceInDeletedStateR4(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt8test_create_image_with_poll_to_check_image_state_deleted>s cCs!|id|idddS(Nsimage-delete 1RHs /images/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_deleteCs cCs=|id|idddd|idddddS(Nsimage-delete 1 2RHs /images/1Ris /images/2i(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_image_delete_multipleGs cCs!|id|idddS(NR+R:s/servers/detail(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_listLs cCs!|id|idddS(Nslist --minimalR:s/servers(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_minimalPs cCs!|id|idddS(Nslist --deletedR:s/servers/detail?deleted=True(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_deletedTs cCs!|id|idddS(Nslist --image 1R:s/servers/detail?image=1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_with_imagesXs cCs!|id|idddS(Nslist --flavor 1R:s/servers/detail?flavor=1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_with_flavors\s cCs!|id|idddS(Nslist --tenant fake_tenantR:s3/servers/detail?all_tenants=1&tenant_id=fake_tenant(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_by_tenant`s cCs!|id|idddS(Nslist --user fake_userR:s//servers/detail?all_tenants=1&user_id=fake_user(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_by_userfs cCs!|id|idddS(Ns list --sort 1R:s(/servers/detail?sort_dir=desc&sort_key=1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt%test_list_with_single_sort_key_no_dirls cCs!|id|idddS(Nslist --sort 1:ascR:s'/servers/detail?sort_dir=asc&sort_key=1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt&test_list_with_single_sort_key_and_dirqs cCs!|id|idddS(Nslist --sort 1,2R:sA/servers/detail?sort_dir=desc&sort_dir=desc&sort_key=1&sort_key=2(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_with_sort_keys_no_dirvs cCs!|id|idddS(Nslist --sort 1:asc,2:descR:s@/servers/detail?sort_dir=asc&sort_dir=desc&sort_key=1&sort_key=2(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_list_with_sort_keys_and_dirs|s cCs!|id|idddS(Nslist --sort 1,2:ascR:s@/servers/detail?sort_dir=desc&sort_dir=asc&sort_key=1&sort_key=2(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt&test_list_with_sort_keys_and_some_dirss cCs#d}|iti|i|dS(Nslist --sort 1:foo(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt#test_list_with_invalid_sort_dir_onescCs#d}|iti|i|dS(Nslist --sort 1:asc,2:foo(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt#test_list_with_invalid_sort_dir_twosc CsyxrdddgD]a}tidii}z<|~}|i||itititiddWdQXqWdS(Nslist --sort keyslist --sort key:descslist --sort key1,key2:ascsnovaclient.utils.print_listt sortby_index(Rtpatcht__exit__t __enter__R4tassert_called_once_withtANYtNone(R R/t_[1]tmock_print_list((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_list_sortby_index_with_sorts& c CsyxrdddgD]a}tidii}z<|~}|i||itititiddWdQXqWdS(NR+slist --minimalslist --deletedsnovaclient.utils.print_listRi(RRRRR4RR(R R/R R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt#test_list_sortby_index_without_sorts & cCsi|id\}}|idd|id||id||id||id|dS(Ns8list --fields host,security_groups,OS-EXT-MOD:some_thingR:s/servers/detailt computenode1tsecuritygroup1sOS-EXT-MOD: Some Thingtmod_some_thing_value(R4R5R(R RR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_fieldsscCs!|id|idddS(Nslist --marker some-uuidR:s /servers/detail?marker=some-uuid(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_with_markers cCs!|id|idddS(Nslist --limit 3R:s/servers/detail?limit=3(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_list_with_limits cCs`|id|iddhhdd6d6|id|iddhhdd6d6dS( Nsreboot sample-serverR<s/servers/1234/actiontSOFTttypetrebootsreboot sample-server --hardtHARD(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_reboots     cCs_|id|iddhhdd6d6dd|idd hhdd6d6dd dS( Ns#reboot sample-server sample-server2R<s/servers/1234/actionRRRRis/servers/5678/actioni(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_reboot_manys    cCs|id\}}|idddd|idddd|idddd |id d hhd d 6d6dd|idddd|idd|id|dS(Nsrebuild sample-server 1R:s/servers?name=sample-serverRis /servers/1234is /images/1iR<s/servers/1234/actioniRPtrebuildis /flavors/1is /images/2t adminPass(R4R5R(R RR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_rebuilds cCs|id\}}|idddd|idddd|idddd |id d hhd d 6dd6d6dd|idddd|idd|id|dS(Ns/rebuild sample-server 1 --rebuild-password asdfR:s/servers?name=sample-serverRis /servers/1234is /images/1iR<s/servers/1234/actioniRPtasdfRRis /flavors/1is /images/2(R4R5R(R RR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_rebuild_passwords cCs|id|idddd|idddd|idddd |id d hhd d 6td6d6dd|idddd|idddS(Ns,rebuild sample-server 1 --preserve-ephemeralR:s/servers?name=sample-serverRis /servers/1234is /images/1iR<s/servers/1234/actioniRPtpreserve_ephemeralRis /flavors/1is /images/2(R4R5Ro(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_rebuild_preserve_ephemerals   cCs|id|idddd|idddd|idddd |id d hhd d 6dd6hdd6d6d6dd|idddd|idddS(Ns2rebuild sample-server 1 --name asdf --meta foo=barR:s/servers?name=sample-serverRis /servers/1234is /images/1iR<s/servers/1234/actioniRPRROtbarRRRis /flavors/1is /images/2(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_rebuild_name_metas   cCs+|id|iddhdd6dS(Nsstart sample-serverR<s/servers/1234/actionsos-start(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_starts cCs+|id|iddhdd6dS(Nsstop sample-serverR<s/servers/1234/actionsos-stop(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_stops cCs+|id|iddhdd6dS(Nspause sample-serverR<s/servers/1234/actiontpause(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_pauses cCs+|id|iddhdd6dS(Nsunpause sample-serverR<s/servers/1234/actiontunpause(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_unpauses cCs+|id|iddhdd6dS(Nslock sample-serverR<s/servers/1234/actiontlock(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_locks cCs+|id|iddhdd6dS(Nsunlock sample-serverR<s/servers/1234/actiontunlock(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_unlocks cCs+|id|iddhdd6dS(Nssuspend sample-serverR<s/servers/1234/actiontsuspend(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_suspend s cCs+|id|iddhdd6dS(Nsresume sample-serverR<s/servers/1234/actiontresume(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_resumes cCs+|id|iddhdd6dS(Nsrescue sample-serverR<s/servers/1234/actiontrescue(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_rescues cCs2|id|iddhhdd6d6dS(Ns$rescue sample-server --password asdfR<s/servers/1234/actionRRR0(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_rescue_passwords  cCs2|id|iddhhdd6d6dS(Nsrescue sample-server --image 1R<s/servers/1234/actionitrescue_image_refR0(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_rescue_images  cCs+|id|iddhdd6dS(Nsunrescue sample-serverR<s/servers/1234/actiontunrescue(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_unrescue!s cCs+|id|iddhdd6dS(Nsshelve sample-serverR<s/servers/1234/actiontshelve(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_shelve%s cCs+|id|iddhdd6dS(Nsshelve-offload sample-serverR<s/servers/1234/actiont shelveOffload(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_shelve_offload)s  cCs+|id|iddhdd6dS(Nsunshelve sample-serverR<s/servers/1234/actiontunshelve(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_unshelve.s cCs+|id|iddhdd6dS(Nsmigrate sample-serverR<s/servers/1234/actiontmigrate(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_migrate2s cCs2|id|iddhhdd6d6dS(Nsrename sample-server newnameRJs /servers/1234tnewnameRORS(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_rename6s  cCs2|id|iddhhdd6d6dS(Nsresize sample-server 1R<s/servers/1234/actioniRNtresize(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_resize;s  cCs+|id|iddhdd6dS(Nsresize-confirm sample-serverR<s/servers/1234/actiont confirmResize(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_resize_confirm@s  cCs+|id|iddhdd6dS(Nsresize-revert sample-serverR<s/servers/1234/actiont revertResize(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_resize_revertEs  sgetpass.getpasst return_valuetpcCs2|id|iddhhdd6d6dS(Nsset-password sample-serverR<s/servers/1234/actionRHRtchangePassword(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_set_passwordJs  cCs2|id|iddhhdd6d6dS(Nsroot-password sample-serverR<s/servers/1234/actionRHRRI(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_root_passwordRs  cCsm|id|idddd|idddd|idd hdd 6dd |id d dS(Ns&scrub 4ffc664c198e435e9853f2538fbcd7a7R:s /os-networksRis!/os-security-groups?all_tenants=1iR<s/os-networks/1/actiont disassociateiRHs/os-security-groups/1(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_scrubXs  cCsM|id|idddd|idddd|idddS( Ns show 1234R:s /servers/1234Ris /flavors/1is /images/2(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_showas cCs=|id|idddd|idddddS(Ns show 9012R:s /servers/9012Ris /flavors/1i(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_show_no_imagegs cCs|iti|iddS(Nsshow xxx(RsRRtR4(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_show_bad_idls cCs{|id\}}|idddd|idddd|idddd |id ||id |dS( Ns show 9013R:s /servers/9013Ris-/flavors/80645cf4-6ad3-410a-bbc8-6f3e1e291f51is,/images/3e861307-73a6-4d1f-8d68-f68b03223032isImage not foundsFlavor not found(R4R5R(R RR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt&test_show_unavailable_image_and_flavorps  s$novaclient.v2.shell.utils.print_dictcCs>|id|i\}}|d}|id|ddS(Ns show 5678issecuritygroup1, securitygroup2Rl(R4t call_argsR(R tmock_print_dictRRt parsed_server((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_print_server|s    cCs>|id|idd|id|idddS(Ns delete 1234RHs /servers/1234sdelete sample-server(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_deletes  cCsR|id|iddhdd6|id|iddhdd6dS(Nsforce-delete 1234R<s/servers/1234/actiont forceDeletesforce-delete sample-server(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_force_deletes     cCsR|id|iddhdd6|id|iddhdd6dS(Ns restore 1234R<s/servers/1234/actiontrestoresrestore sample-server(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_restores  cCs|id|idddd|idddd|id|id d dd |id ddd |idddd |id ddd|id ddd|idddddS(Nsdelete 1234 5678RHs /servers/1234Ris /servers/5678is#delete sample-server sample-server2R:s/servers?name=sample-serveriiis/servers?name=sample-server2i(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_delete_two_with_two_existents     cCs|id|idddd|idddd|idddd |idd dd |idd dd |idd dddS(Ns1delete sample-server sample-server2 --all-tenantsR:s)/servers?all_tenants=1&name=sample-serverRis /servers/1234iRHis*/servers?all_tenants=1&name=sample-server2is /servers/5678ii(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt-test_delete_two_with_two_existent_all_tenantss    cCsbd}|iti|i||iddd}|iti|i||idddS(Nsdelete 1234 123456789RHs /servers/1234s&delete sample-server nonexistentserver(RsRRtR4R9(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt$test_delete_two_with_one_nonexistents cCsBd}|iti|i|d}|iti|i|dS(Nsdelete 123456789sdelete nonexistent-server1(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt$test_delete_one_with_one_nonexistentscCsBd}|iti|i|d}|iti|i|dS(Nsdelete 123456789 987654321s.delete nonexistent-server1 nonexistent-server2(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt$test_delete_two_with_two_nonexistentscCs>|id|idd|id|idddS(Nsdiagnostics 1234R:s/servers/1234/diagnosticssdiagnostics sample-server(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_diagnosticss  cCs<|id|iddhhdd6dd6gd6dS( Nsrefresh-network 1234R<s/os-server-external-eventssnetwork-changedROit server_uuidtevents(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_refresh_networks   cCs9|id|iddhhdd6dd6d6dS( Ns!meta 1234 set key1=val1 key2=val2R<s/servers/1234/metadatatval1tkey1tval2tkey2R(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_set_meta_sets  cCs7|id|idd|idddddS(Ns$meta 1234 delete key1=val1 key2=val2RHs/servers/1234/metadata/key1s/servers/1234/metadata/key2Ri(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_set_meta_delete_dicts cCs7|id|idd|idddddS(Nsmeta 1234 delete key1 key2RHs/servers/1234/metadata/key1s/servers/1234/metadata/key2Ri(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_set_meta_delete_keyss cCs|id|idddd|iddhhdd 6d d 6d 6dd |iddhhdd 6d d 6d 6dd|iddhhdd 6d d 6d 6dd|iddhhdd 6d d 6d 6dddS(Ns'host-meta hyper set key1=val1 key2=val2R:s/os-hypervisors/hyper/serversRiR<s/servers/uuid1/metadataRdReRfRgRis/servers/uuid2/metadatais/servers/uuid3/metadatais/servers/uuid4/metadatai(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_set_host_metas     cCs!|id|idddS(Ns2host-meta hyper_no_servers set key1=val1 key2=val2R:s(/os-hypervisors/hyper_no_servers/servers(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt"test_set_host_meta_with_no_serverss cCsS|id|idddd|idddd|idd dd dS( Nshost-meta hyper delete key1R:s/os-hypervisors/hyper/serversRiRHs/servers/uuid1/metadata/key1is/servers/uuid2/metadata/key1i(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_delete_host_metas cCs>|id|idd|id|idddS(Ns*dns-create 192.168.1.1 testname testdomainRJs//os-floating-ip-dns/testdomain/entries/testnames3dns-create 192.168.1.1 testname testdomain --type A(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_dns_creates     cCs!|id|idddS(Ns:dns-create-public-domain testdomain --project test_projectRJs/os-floating-ip-dns/testdomain(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_dns_create_public_domains cCs!|id|idddS(Ns@dns-create-private-domain testdomain --availability-zone av_zoneRJs/os-floating-ip-dns/testdomain(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_dns_create_private_domain s cCs!|id|idddS(Nsdns-delete testdomain testnameRHs//os-floating-ip-dns/testdomain/entries/testname(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_dns_deletes  cCs!|id|idddS(Nsdns-delete-domain testdomainRHs/os-floating-ip-dns/testdomain(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_dns_delete_domains cCs>|id|idd|id|idddS(Ns$dns-list testdomain --ip 192.168.1.1R:s5/os-floating-ip-dns/testdomain/entries?ip=192.168.1.1s#dns-list testdomain --name testnames//os-floating-ip-dns/testdomain/entries/testname(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_dns_lists     cCs!|id|idddS(Ns dns-domainsR:s/os-floating-ip-dns(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_dns_domains"s cCs!|id|idddS(Nsfloating-ip-listR:s/os-floating-ips(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_floating_ip_list&s cCs!|id|idddS(Nsfloating-ip-createR:s/os-floating-ips/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_floating_ip_create*s cCs!|id|idddS(Nsfloating-ip-delete 11.0.0.1RHs/os-floating-ips/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_floating_ip_delete.s cCs!|id|idddS(Nsfloating-ip-bulk-listR:s/os-floating-ips-bulk(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_floating_ip_bulk_list2s cCs2|id|iddhhdd6d6dS(Ns#floating-ip-bulk-create 10.0.0.1/24R<s/os-floating-ips-bulks 10.0.0.1/24tip_rangetfloating_ips_bulk_create(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_floating_ip_bulk_create6s  cCs@|id|iddhhdd6dd6dd 6d 6dS( NsDfloating-ip-bulk-create 10.0.0.1/24 --pool testPool --interface ethXR<s/os-floating-ips-bulks 10.0.0.1/24RyttestPooltpooltethXt interfaceRz(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt/test_floating_ip_bulk_create_host_and_interface<s    cCs+|id|iddhdd6dS(Ns#floating-ip-bulk-delete 10.0.0.1/24RJs/os-floating-ips-bulk/deletes 10.0.0.1/24Ry(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_floating_ip_bulk_deleteEs  cCs2|id|iddhhdd6d6dS(Ns&add-floating-ip sample-server 11.0.0.1R<s/servers/1234/actions11.0.0.1taddresst addFloatingIp(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_server_floating_ip_addJs  cCs2|id|iddhhdd6d6dS(Ns)remove-floating-ip sample-server 11.0.0.1R<s/servers/1234/actions11.0.0.1RtremoveFloatingIp(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_server_floating_ip_removeOs  cCs2|id|iddhhdd6d6dS(Ns,floating-ip-associate sample-server 11.0.0.1R<s/servers/1234/actions11.0.0.1RR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_server_floating_ip_associateTs  cCs2|id|iddhhdd6d6dS(Ns/floating-ip-disassociate sample-server 11.0.0.1R<s/servers/1234/actions11.0.0.1RR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt$test_server_floating_ip_disassociateYs  cCs-|id|iddddddS(Ns.usage-list --start 2000-01-20 --end 2005-02-01R:s/os-simple-tenant-usage?sstart=2000-01-20T00:00:00&send=2005-02-01T00:00:00&s detailed=1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_usage_list^s   cCs_titiddddd|iti|id|idddd d dS( Niiiis usage-listR:s/os-simple-tenant-usage?sstart=2005-01-04T00:00:00&send=2005-02-02T00:00:00&s detailed=1(Rtset_time_overridetdatetimet addCleanuptclear_time_overrideR4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_usage_list_no_argsfs "   cCs)|id|idddddS(Ns7usage --start 2000-01-20 --end 2005-02-01 --tenant testR:s/os-simple-tenant-usage/test?sstart=2000-01-20T00:00:00&send=2005-02-01T00:00:00(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_usageps  cCs)|id|idddddS(Ns)usage --start 2000-01-20 --end 2005-02-01R:s"/os-simple-tenant-usage/tenant_id?sstart=2000-01-20T00:00:00&send=2005-02-01T00:00:00(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_usage_no_tenantxs  cCs!|id|idddS(Nsflavor-delete 2RHs /flavors/2(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_deletes cCs=|id|idddd|idddddS( NsTflavor-create flavorcreate 1234 512 10 1 --swap 1024 --ephemeral 10 --is-public trueR<s/flavorsRiR:s /flavors/1i(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_flavor_creates cCs!|id|idddS(Nsaggregate-listR:s/os-aggregates(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_lists cCs[|idhhdd6dd6d6}|idd|d d |id d d d dS(Ns aggregate-create test_name nova1t test_nameROtnova1Rht aggregateR<s/os-aggregatesRiR:s/os-aggregates/1i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_creates   cCs!|id|idddS(Nsaggregate-delete 1RHs/os-aggregates/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_delete_by_ids cCs!|id|idddS(Nsaggregate-delete testRHs/os-aggregates/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_delete_by_names cCsT|idhhdd6d6}|idd|dd|id ddd dS( Nsaggregate-update 1 new_nametnew_nameRORRJs/os-aggregates/1RiR:i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_update_by_ids cCsT|idhhdd6d6}|idd|dd|id ddd dS( Nsaggregate-update test new_nameRRORRJs/os-aggregates/1RiR:i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_update_by_names cCs[|idhhdd6dd6d6}|idd|d d |id dd d dS( Nsaggregate-update 1 foo new_zoneRROtnew_zoneRhRRJs/os-aggregates/1RiR:i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt2test_aggregate_update_with_availability_zone_by_ids cCs[|idhhdd6dd6d6}|idd|d d |id dd d dS( Ns"aggregate-update test foo new_zoneRRORRhRRJs/os-aggregates/1RiR:i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt4test_aggregate_update_with_availability_zone_by_names cCs[|idhhhdd6d6d6}|idd|dd |id d dd dS( Ns aggregate-set-metadata 3 foo=barR RRt set_metadataR<s/os-aggregates/3/actionRiR:s/os-aggregates/3i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt%test_aggregate_set_metadata_add_by_ids cCs#d}|iti|i|dS(Ns!aggregate-set-metadata 3 test=dup(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt/test_aggregate_set_metadata_add_duplicate_by_idscCs[|idhhhdd6d6d6}|idd|dd|id d dd dS( Ns!aggregate-set-metadata 3 none_keytnone_keyRRR<s/os-aggregates/3/actionRiR:s/os-aggregates/3i(R4RR5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt(test_aggregate_set_metadata_delete_by_ids cCs#d}|iti|i|dS(Ns$aggregate-set-metadata 3 delete_key2(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt0test_aggregate_set_metadata_delete_missing_by_idscCs[|idhhhdd6d6d6}|idd|dd |id d dd dS( Ns#aggregate-set-metadata test foo=barR RRRR<s/os-aggregates/1/actionRiR:s/os-aggregates/1i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt#test_aggregate_set_metadata_by_names cCsT|idhhdd6d6}|idd|dd|id d dd dS( Nsaggregate-add-host 1 host1thost1thosttadd_hostR<s/os-aggregates/1/actionRiR:s/os-aggregates/1i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_add_host_by_ids cCsT|idhhdd6d6}|idd|dd|id d dd dS( Nsaggregate-add-host test host1RRRR<s/os-aggregates/1/actionRiR:s/os-aggregates/1i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_add_host_by_names cCsT|idhhdd6d6}|idd|dd|id d dd dS( Nsaggregate-remove-host 1 host1RRt remove_hostR<s/os-aggregates/1/actionRiR:s/os-aggregates/1i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_aggregate_remove_host_by_ids cCsT|idhhdd6d6}|idd|dd|id d dd dS( Ns aggregate-remove-host test host1RRRR<s/os-aggregates/1/actionRiR:s/os-aggregates/1i(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt"test_aggregate_remove_host_by_names cCs!|id|idddS(Nsaggregate-details 1R:s/os-aggregates/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_details_by_ids cCs!|id|idddS(Nsaggregate-details testR:s/os-aggregates(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_aggregate_details_by_names cCs|id|iddhhdd6td6td6d6|id |iddhhdd6td6td6d6|id |iddhhdd6td6td6d6dS( Ns%live-migration sample-server hostnameR<s/servers/1234/actionthostnameRtblock_migrationtdisk_over_commitsos-migrateLives5live-migration sample-server hostname --block-migratesHlive-migration sample-server hostname --block-migrate --disk-over-commit(R4R5RRo(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_live_migrations         cCs|id|iddddhhdd6td6td6d 6}|id d |dd |id d |dd|id d|dd|id d|dddS(Nshost-evacuate-live hyperR:s/os-hypervisors/hyper/serversRiRRRsos-migrateLiveR<s/servers/uuid1/actionis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5RR(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt+test_host_evacuate_live_with_no_target_hosts  cCs|id|iddddhhdd6td6td 6d 6}|id d |dd |id d|dd|id d|dd|id d|dddS(Ns/host-evacuate-live hyper --target-host hostnameR:s/os-hypervisors/hyper/serversRiRRRRsos-migrateLiveR<s/servers/uuid1/actionis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5R(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt(test_host_evacuate_live_with_target_host s  cCs|id|iddddhhdd6td6td6d 6}|id d |dd |id d |dd|id d|dd|id d|dddS(Ns(host-evacuate-live --block-migrate hyperR:s/os-hypervisors/hyper/serversRiRRRsos-migrateLiveR<s/servers/uuid1/actionis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5RRoR(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt,test_host_evacuate_live_with_block_migrations  cCs|id|iddddhhdd6td6td6d 6}|id d |dd |id d |dd|id d|dd|id d|dddS(Ns+host-evacuate-live --disk-over-commit hyperR:s/os-hypervisors/hyper/serversRiRRRsos-migrateLiveR<s/servers/uuid1/actionis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5RRRo(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt-test_host_evacuate_live_with_disk_over_commit$s  cCsb|id|iddddhhdd6td6td6d 6}|id d |dd dS( Ns(host-evacuate-live --max-servers 1 hyperR:s/os-hypervisors/hyper/serversRiRRRsos-migrateLiveR<s/servers/uuid1/actioni(R4R5RR(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt(test_host_evacuate_list_with_max_servers/s   cCs`|id|iddhhdd6d6|id|iddhhdd6d6dS( Nsreset-state sample-serverR<s/servers/1234/actionterrortstates os-resetStates"reset-state sample-server --activeR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_reset_state7s     cCs_|id|iddhhdd6d6dd|idd hhdd6d6dd dS( Ns(reset-state sample-server sample-server2R<s/servers/1234/actionRRs os-resetStateRis/servers/5678/actioni(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_reset_state_multiple?s    cCs_|id|iddhhdd6d6dd|idd hhdd6d6dd dS( Ns1reset-state --active sample-server sample-server2R<s/servers/1234/actionRRs os-resetStateRis/servers/5678/actioni(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_reset_state_active_multipleFs    cCs+|id|iddhdd6dS(Nsreset-network sample-serverR<s/servers/1234/actiont resetNetwork(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_reset_networkMs  cCs!|id|idddS(Ns service-listR:s /os-services(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_services_listRs cCs!|id|idddS(Nsservice-list --host host1R:s/os-services?host=host1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_services_list_with_hostVs cCs!|id|idddS(Nsservice-list --binary nova-certR:s/os-services?binary=nova-cert(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_services_list_with_binaryZs cCs!|id|idddS(Ns,service-list --host host1 --binary nova-certR:s(/os-services?host=host1&binary=nova-cert(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt#test_services_list_with_host_binary^s cCs8|idhdd6dd6}|idd|dS(Nsservice-enable host1 nova-certRRs nova-certtbinaryRJs/os-services/enable(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_services_enablebs cCs8|idhdd6dd6}|idd|dS(Nsservice-disable host1 nova-certRRs nova-certRRJs/os-services/disable(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_services_disablegs cCs?|idhdd6dd6dd6}|idd |dS( Ns2service-disable host1 nova-cert --reason no_reasonRRs nova-certRt no_reasontdisabled_reasonRJs/os-services/disable-log-reason(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_services_disable_with_reasonls  cCs!|id|idddS(Nsservice-delete 1RHs/os-services/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_services_deleters cCs!|id|idddS(Nsfixed-ip-get 192.168.1.1R:s/os-fixed-ips/192.168.1.1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_fixed_ips_getvs cCs1|idhdd6}|idd|dS(Nsfixed-ip-reserve 192.168.1.1treserveR<s /os-fixed-ips/192.168.1.1/action(R4RR5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_fixed_ips_reservezs  cCs1|idhdd6}|idd|dS(Nsfixed-ip-unreserve 192.168.1.1t unreserveR<s /os-fixed-ips/192.168.1.1/action(R4RR5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_fixed_ips_unreserves  cCs!|id|idddS(Ns host-listR:s /os-hosts(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_lists cCs!|id|idddS(Nshost-list --zone novaR:s/os-hosts?zone=nova(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_list_with_zones cCs1|idhdd6}|idd|dS(Ns*host-update sample-host_1 --status enabledtenabledtstatusRJs/os-hosts/sample-host_1(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_update_statuss  cCs1|idhdd6}|idd|dS(Ns.host-update sample-host_2 --maintenance enabletenabletmaintenance_modeRJs/os-hosts/sample-host_2(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_update_maintenances  cCs8|idhdd6dd6}|idd|dS(Ns@host-update sample-host_3 --status disabled --maintenance enabletdisabledRRRRJs/os-hosts/sample-host_3(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt"test_host_update_multiple_settingss cCs!|id|idddS(Ns(host-action sample-host --action startupR:s/os-hosts/sample-host/startup(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_startups cCs!|id|idddS(Ns)host-action sample-host --action shutdownR:s/os-hosts/sample-host/shutdown(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_shutdowns cCs!|id|idddS(Ns'host-action sample-host --action rebootR:s/os-hosts/sample-host/reboot(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_reboots cCs|id|idddd|iddhhdd 6td 6d 6dd |idd hhdd 6td 6d 6dd|iddhhdd 6td 6d 6dd|iddhhdd 6td 6d 6dddS(Ns)host-evacuate hyper --target target_hyperR:s/os-hypervisors/hyper/serversRiR<s/servers/uuid1/actiont target_hyperRtonSharedStoragetevacuateis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_evacuates         cCs|id|idddd|iddhhdd 6td 6d 6dd |idd hhdd 6td 6d 6dd|iddhhdd 6td 6d 6dd|iddhhdd 6td 6d 6dddS(Ns=host-evacuate --on-shared-storage hyper --target target_hyperR:s/os-hypervisors/hyper/serversRiR<s/servers/uuid1/actionRRRRis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5Ro(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt&test_host_evacuate_with_shared_storages        cCs|id|idddd|iddhhtd6d 6dd |idd hhtd6d 6dd |idd hhtd6d 6dd|iddhhtd6d 6dddS(Ns'host-evacuate --on-shared-storage hyperR:s/os-hypervisors/hyper/serversRiR<s/servers/uuid1/actionRRis/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5Ro(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt&test_host_evacuate_with_no_target_hosts     cCs|id|idddd|iddhdd6dd |idd hdd6dd |idd hdd6dd |iddhdd6dddS(Nshost-servers-migrate hyperR:s/os-hypervisors/hyper/serversRiR<s/servers/uuid1/actionR=is/servers/uuid2/actionis/servers/uuid3/actionis/servers/uuid4/actioni(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_host_servers_migrates     cCs!|id|idddS(Nshypervisor-listR:s/os-hypervisors(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_lists cCs!|id|idddS(Ns hypervisor-list --matching hyperR:s/os-hypervisors/hyper/search(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_list_matchings cCs!|id|idddS(Nshypervisor-servers hyperR:s/os-hypervisors/hyper/servers(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_serverss cCs!|id|idddS(Nshypervisor-show 1234R:s/os-hypervisors/1234(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_show_by_ids cCs!|id|idddS(Nshypervisor-show region!child@1R:s/os-hypervisors/region!child@1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt$test_hypervisor_list_show_by_cell_ids cCs!|id|idddS(Nshypervisor-show hyper1R:s/os-hypervisors/hyper1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_show_by_names cCs!|id|idddS(Nshypervisor-uptime 1234R:s/os-hypervisors/1234/uptime(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_uptime_by_ids cCs!|id|idddS(Ns hypervisor-uptime region!child@1R:s%/os-hypervisors/region!child@1/uptime(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_hypervisor_uptime_by_cell_ids cCs!|id|idddS(Nshypervisor-uptime hyper1R:s/os-hypervisors/1234/uptime(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_uptime_by_names cCs!|id|idddS(Nshypervisor-statsR:s/os-hypervisors/statistics(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_hypervisor_statss cCs!|id|idddS(Ns4quota-show --tenant 97f4c221bff44578b0300df4ef119353R:s//os-quota-sets/97f4c221bff44578b0300df4ef119353(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_show s cCs!|id|idddS(Ns>quota-show --tenant 97f4c221bff44578b0300df4ef119353 --user u1R:s:/os-quota-sets/97f4c221bff44578b0300df4ef119353?user_id=u1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_user_quota_shows cCs!|id|idddS(Ns quota-showR:s/os-quota-sets/tenant_id(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_show_no_tenants cCs!|id|idddS(Ns8quota-defaults --tenant 97f4c221bff44578b0300df4ef119353R:s8/os-quota-sets/97f4c221bff44578b0300df4ef119353/defaults(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_defaults s cCs!|id|idddS(Nsquota-defaultsR:s!/os-quota-sets/tenant_id/defaults(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_defaults_no_tenant(s cCs2|id|iddhhdd6d6dS(Ns;quota-update 97f4c221bff44578b0300df4ef119353 --instances=5RJs//os-quota-sets/97f4c221bff44578b0300df4ef119353it instancest quota_set(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_update,s cCs2|id|iddhhdd6d6dS(NsEquota-update 97f4c221bff44578b0300df4ef119353 --user=u1 --instances=5RJs:/os-quota-sets/97f4c221bff44578b0300df4ef119353?user_id=u1iRR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_user_quota_update5s cCs9|id|iddhhtd6dd6d6dS(NsCquota-update 97f4c221bff44578b0300df4ef119353 --instances=5 --forceRJs//os-quota-sets/97f4c221bff44578b0300df4ef119353tforceiRR(R4R5Ro(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_force_update?s  cCs2|id|iddhhdd6d6dS(Ns;quota-update 97f4c221bff44578b0300df4ef119353 --fixed-ips=5RJs//os-quota-sets/97f4c221bff44578b0300df4ef119353it fixed_ipsR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_update_fixed_ipHs cCs!|id|idddS(Ns6quota-delete --tenant 97f4c221bff44578b0300df4ef119353RHs//os-quota-sets/97f4c221bff44578b0300df4ef119353(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_deletePs  cCs!|id|idddS(Ns@quota-delete --tenant 97f4c221bff44578b0300df4ef119353 --user u1RHs:/os-quota-sets/97f4c221bff44578b0300df4ef119353?user_id=u1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_user_quota_deleteVs cCs!|id|idddS(Nsquota-class-show testR:s/os-quota-class-sets/test(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_class_show^s cCsid}x\|D]T}|id||didd}hhd|6d6}|idd|q WdS(Ns --instancess--coress--rams--floating-ipss --fixed-ipss--metadata-itemss--injected-filess--injected-file-content-bytess--injected-file-path-bytess --key-pairss--security-groupss--security-group-ruless--server-groupss--server-group-memberss8quota-class-update 97f4c221bff44578b0300df4ef119353 %s=5it-Ritquota_class_setRJs5/os-quota-class-sets/97f4c221bff44578b0300df4ef119353(s --instancess--coress--rams--floating-ipss --fixed-ipss--metadata-itemss--injected-filess--injected-file-content-bytess--injected-file-path-bytess --key-pairss--security-groupss--security-group-ruless--server-groupss--server-group-members(R4treplaceR5(R Rtargt request_paramR8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_quota_class_updatebs cCs!|id|idddS(Ns network-listR:s /os-networks(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_listus cCsI|id\}}|idd|id||id|dS(Ns%network-list --fields vlan,project_idR:s /os-networkst1234t 4ffc664c198e435e9853f2538fbcd7a7(R4R5R(R RR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_list_fieldsys cCs!|id|idddS(Nsnetwork-show 1R:s/os-networks/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_shows cCs!|id|idddS(Nscloudpipe-listR:s /os-cloudpipe(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_cloudpipe_lists cCs8|idhhdd6d6}|idd|dS(Nscloudpipe-create myprojectt myprojectRt cloudpipeR<s /os-cloudpipe(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_cloudpipe_creates cCs?|idhhdd6dd6d6}|idd|dS( Ns$cloudpipe-configure 192.168.1.1 1234s 192.168.1.1tvpn_ipRtvpn_porttconfigure_projectRJs/os-cloudpipe/configure-project(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_cloudpipe_configures  cCs1|idhdd6}|idd|dS(Ns!network-associate-host 1 testHostttestHosttassociate_hostR<s/os-networks/1/action(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_associate_hosts  cCs1|idhdd6}|idd|dS(Nsnetwork-associate-project 1RMtidR<s/os-networks/add(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_associate_projects  cCs1|idhdd6}|idd|dS(Ns$network-disassociate --host-only 1 2tdisassociate_hostR<s/os-networks/2/action(R4RR5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_disassociate_hosts  cCs1|idhdd6}|idd|dS(Ns'network-disassociate --project-only 1 2tdisassociate_projectR<s/os-networks/2/action(R4RR5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_network_disassociate_projects  cCsF|idhhdd6dd6dd6d6}|id d |dS( NsInetwork-create --fixed-range-v4 10.0.1.0/24 --dns1 10.0.1.254 new_networks 10.0.1.0/24tcidrt new_networktlabels 10.0.1.254tdns1tnetworkR<s /os-networks(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_v4s cCs?|idhhdd6dd6d6}|idd|dS( Ns5network-create --fixed-range-v6 2001::/64 new_networks 2001::/64tcidr_v6RRRR<s /os-networks(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_v6s cCs#d}|iti|i|dS(Nsnetwork-create 10.0.1.0(RsRRtR4(R R/((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_invalidscCs |idhhdd6dd6td6d6}|idd ||id hhdd6dd6td6d6}|idd ||id hhdd6dd6td6d6}|idd ||id hhd d6dd6td6d6}|idd |dS(NsInetwork-create --fixed-range-v4 192.168.0.0/24 --multi-host=T new_networks192.168.0.0/24RRRt multi_hostRR<s /os-networkssLnetwork-create --fixed-range-v4 192.168.0.0/24 --multi-host=True new_networksInetwork-create --fixed-range-v4 192.168.0.0/24 --multi-host=1 new_networksInetwork-create --fixed-range-v4 192.168.1.0/24 --multi-host=F new_networks192.168.1.0/24(R4RoR5R(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_multi_hosts     cCsF|idhhdd6dd6dd6d6}|id d |dS( NsEnetwork-create --fixed-range-v4 192.168.0.0/24 --vlan=200 new_networks192.168.0.0/24RRRitvlanRR<s /os-networks(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_vlans cCsF|idhhdd6dd6dd6d6}|id d |dS( NsKnetwork-create --fixed-range-v4 192.168.0.0/24 --vlan-start=100 new_networks192.168.0.0/24RRRidt vlan_startRR<s /os-networks(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_vlan_starts cCsi|idhhdd6dd6td6dd6td 6d d 6d d 6dd6d6}|idd|dS(Nsnetwork-create --fixed-range-v4 192.168.0.0/24 --enable-dhcp F --dhcp-server 192.168.0.2 --share-address T --allowed-start 192.168.0.10 --allowed-end 192.168.0.20 --mtu 9000 new_networks192.168.0.0/24RRRt enable_dhcps 192.168.0.2t dhcp_servert share_addressi(#tmtus 192.168.0.10t allowed_starts 192.168.0.20t allowed_endRR<s /os-networks(R4RRoR5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_create_extra_argss cCs!|id|idddS(Nsnetwork-delete 1RHs/os-networks/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_network_deletes cCs!|id|idddS(Nstenant-network-listR:s/os-tenant-networks(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_tenant_network_lists cCs!|id|idddS(Nstenant-network-show 1R:s/os-tenant-networks/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_tenant_network_shows cCs?|idhhdd6dd6d6}|idd|dS( Ns-tenant-network-create new_network 10.0.1.0/24s 10.0.1.0/24RRRRR<s/os-tenant-networks(R4R5(R R8((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_tenant_network_creates cCs!|id|idddS(Nstenant-network-delete 1RHs/os-tenant-networks/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_tenant_network_deletes cCs2|id|iddhhdd6d6dS(Nsadd-fixed-ip sample-server 1R<s/servers/1234/actionRMt networkIdt addFixedIp(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_add_fixed_ips  cCs2|id|iddhhdd6d6dS(Ns'remove-fixed-ip sample-server 10.0.0.10R<s/servers/1234/actions 10.0.0.10Rt removeFixedIp(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_remove_fixed_ips  cCs||id|iddhhdd6dd6dd 6d 6|id |iddhhdd6dd6dd 6d 6dS( Ns"backup sample-server back1 daily 1R<s/servers/1234/actiontback1ROtdailyt backup_typeRMtrotationt createBackupsbackup 1234 back1 daily 1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_backup s      cCs[|id|idd|id|idd|id|idddS(Nsabsolute-limitsR:s/limitssabsolute-limits --reserveds/limits?reserved=1sabsolute-limits --tenant 1234s/limits?tenant_id=1234(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_absolute_limitss    cCs|id|idd|id|idd|id|idd|id\}}|id||id |dS( NtlimitsR:s/limitsslimits --reserveds/limits?reserved=1slimits --tenant 1234s/limits?tenant_id=1234tVerbtName(R4R5R(R tstdoutR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_limits!s   cCs|id|iddhhdd6td6d6|id|iddhhdd6td6d d 6d6|id |iddhhdd6td6d6dS( Nsevacuate sample-server new_hostR<s/servers/1234/actiontnew_hostRRRs7evacuate sample-server new_host --password NewAdminPasst NewAdminPassRs3evacuate sample-server new_host --on-shared-storage(R4R5RRo(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_evacuate/s         cCs|id|iddhhtd6d6|id|iddhhtd6dd6d6|id |iddhhtd6d6dS( Nsevacuate sample-serverR<s/servers/1234/actionRRs.evacuate sample-server --password NewAdminPassRHRs*evacuate sample-server --on-shared-storage(R4R5RRo(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_evacuate_with_no_target_host@s       cCs!|id|idddS(Ns&get-password sample-server /foo/id_rsaR:s /servers/1234/os-server-password(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_get_passwordLs cCs!|id|idddS(Nsget-password sample-serverR:s /servers/1234/os-server-password(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_get_password_without_keyPs cCs!|id|idddS(Nsclear-password sample-serverRHs /servers/1234/os-server-password(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_clear_passwordTs cCs!|id|idddS(Nsavailability-zone-listR:s/os-availability-zone/detail(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_availability_zone_listXs cCs9|id|iddhhdd6dd6d6dS( Ns(secgroup-create test FAKE_SECURITY_GROUPR<s/os-security-groupsttestROtFAKE_SECURITY_GROUPt descriptiontsecurity_group(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_create\s    cCs9|id|iddhhdd6dd6d6dS( Ns+secgroup-update test te FAKE_SECURITY_GROUPRJs/os-security-groups/1tteRORPRQRR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_updatecs    cCs!|id|idddS(Ns secgroup-listR:s/os-security-groups(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_listjs cCsU|id|iddhhdd6dd6dd6d d 6d d 6dd 6d6dS(Ns+secgroup-add-rule test tcp 22 22 10.0.0.0/8R<s/os-security-group-rulesit from_portttcpt ip_protocoltto_portitparent_group_ids 10.0.0.0/8Rtgroup_idtsecurity_group_rule(R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_add_rulens   cCs!|id|idddS(Ns.secgroup-delete-rule test TCP 22 22 10.0.0.0/8RHs/os-security-group-rules/11(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_delete_ruleys cCs!|id|idddS(Ns.secgroup-delete-rule test tcp 22 22 10.0.0.0/8RHs/os-security-group-rules/11(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt-test_security_group_delete_rule_protocol_case}s cCsU|id|iddhhdd6dd6dd6d d 6dd 6d d 6d6dS(Ns,secgroup-add-group-rule test test2 tcp 22 22R<s/os-security-group-rulesiRWtTCPRYRZiR[RiR\R](R4R5R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt"test_security_group_add_group_rules   cCs!|id|idddS(Ns1secgroup-delete-group-rule test test2 TCP 222 222RHs/os-security-group-rules/12(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt+test_security_group_delete_valid_group_rules cCs!|id|idddS(Ns1secgroup-delete-group-rule test test2 tcp 222 222RHs/os-security-group-rules/12(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt9test_security_group_delete_valid_group_rule_protocol_cases cCs!|id|idddS(Ns/secgroup-delete-group-rule test test4 TCP -1 -1RHs/os-security-group-rules/14(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt-test_security_group_delete_invalid_group_rules cCs!|id|idddS(Ns/secgroup-delete-group-rule test test4 tcp -1 -1RHs/os-security-group-rules/14(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt;test_security_group_delete_invalid_group_rule_protocol_cases cCs!|id|idddS(Nssecgroup-list-rules testR:s/os-security-groups(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_list_ruless cCs!|id|idddS(Nssecgroup-list --all-tenants 1R:s!/os-security-groups?all_tenants=1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt$test_security_group_list_all_tenantss cCs!|id|idddS(Nssecgroup-delete testRHs/os-security-groups/1(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_security_group_deletes cCs2|id|iddhhdd6d6dS(Ns$add-secgroup sample-server testgroupR<s/servers/1234/actiont testgroupROtaddSecurityGroup(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_server_security_group_adds  cCs2|id|iddhhdd6d6dS(Ns'remove-secgroup sample-server testgroupR<s/servers/1234/actionRjROtremoveSecurityGroup(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_server_security_group_removes  cCs!|id|idddS(Nslist-secgroup 1234R:s /servers/1234/os-security-groups(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_server_security_group_lists cCs!|id|idddS(Nsinterface-list 1234R:s/servers/1234/os-interface(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_interface_lists cCs2|id|iddhhdd6d6dS(Ns'interface-attach --port-id port_id 1234R<s/servers/1234/os-interfacetport_idtinterfaceAttachment(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_interface_attachs  cCs!|id|idddS(Nsinterface-detach 1234 port_idRHs"/servers/1234/os-interface/port_id(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_interface_detachs cCs9|id\}}|id||idddS(Ns volume-lists!Command volume-list is deprecatedR:s/volumes/detail(R4RR5(R Rterr((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_listscCsU|id\}}|id||idddd|idddddS( Nsvolume-show Works!Command volume-show is deprecatedR:s/volumes?display_name=WorkRis-/volumes/15e59938-07d5-11e1-90e3-e3dffe0c5983i(R4RR5(R RRu((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_showscCst|id\}}|id||iddhhdd6dd6dd6dd 6dd 6dd 6d d 6d6dS(Ns#volume-create 2 --display-name Works#Command volume-create is deprecatedR<s/volumestWorkt display_nameRPRht volume_typetdisplay_descriptiont snapshot_iditsizeR(R4RR5R(R RRu((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_creates  cCs9|id\}}|id||idddS(Nsvolume-delete Works#Command volume-delete is deprecatedRHs-/volumes/15e59938-07d5-11e1-90e3-e3dffe0c5983(R4RR5(R RRu((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_deletes cCs=|id|idddd|idddddS(Nsvolume-delete Work Work2RHs-/volumes/15e59938-07d5-11e1-90e3-e3dffe0c5983Ris-/volumes/15e59938-07d5-11e1-90e3-ee32ba30feaai(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_delete_multiples   cCs9|id|iddhhdd6dd6d6dS( Ns)volume-attach sample-server Work /dev/vdbR<s#/servers/1234/os-volume_attachmentss/dev/vdbtdeviceRxtvolumeIdtvolumeAttachment(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_attachs    cCs2|id|iddhhdd6d6dS(Ns volume-attach sample-server WorkR<s#/servers/1234/os-volume_attachmentsRxRR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt!test_volume_attach_without_devices  cCs2|id|iddhhdd6d6dS(Ns%volume-update sample-server Work WorkRJs(/servers/1234/os-volume_attachments/WorkRxRR(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_updates  cCs!|id|idddS(Ns volume-detach sample-server WorkRHs(/servers/1234/os-volume_attachments/Work(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_volume_detach s  cCs!|id|idddS(Ns"instance-action-list sample-serverR:s!/servers/1234/os-instance-actions(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_instance_action_list s cCs!|id|idddS(Ns,instance-action sample-server req-abcde12345R:s0/servers/1234/os-instance-actions/req-abcde12345(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_instance_action_get s cCs!|id|idddS(Nscell-show child_cellR:s/os-cells/child_cell(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_cell_show s cCs!|id|idddS(Ns!cell-capacities --cell child_cellR:s/os-cells/child_cell/capacities(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt#test_cell_capacities_with_cell_name s cCs!|id|idddS(Nscell-capacitiesR:s/os-cells/capacities(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt&test_cell_capacities_without_cell_name s cCs!|id|idddS(Nsmigration-listR:s/os-migrations(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_migration_list s cCs!|id|idddS(Ns@migration-list --host host1 --cell_name child1 --status finishedR:s:/os-migrations?cell_name=child1&host=host1&status=finished(R4R5(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt test_migration_list_with_filters s  s novaclient.v2.shell._find_servers os.systemcCs^dtfdY}||_|id|id|id|id|id|id|id |id |id |id |id |id|id|id|id|id|id|id|id|id|id|id|id|iddS(Nt FakeResourcescBsneZhhdd6dd6dd6hdd6dd6dd6hdd6d d6dd6hdd6d d6gd 6ZRS( iRCs1.1.1.1taddrtfixedsOS-EXT-IPS:types2.2.2.2tfloatingis2607:f0d0:1002::4s7612:a1b2:2004::6tskynet(RRt addresses(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR) ssssh --login bob serversssh -4 -p22 bob@2.2.2.2 sssh alice@serversssh -4 -p22 alice@2.2.2.2 sssh --port 202 serversssh -4 -p202 root@2.2.2.2 sssh --private serversssh -4 -p22 root@1.1.1.1 s$ssh -i ~/my_rsa_key server --privates)ssh -4 -p22 -i ~/my_rsa_key root@1.1.1.1 sssh --extra-opts -1 serversssh -4 -p22 root@2.2.2.2 -1sssh --ipv6 --login carol servers%ssh -6 -p22 carol@7612:a1b2:2004::6 sssh --ipv6 dan@servers#ssh -6 -p22 dan@7612:a1b2:2004::6 sssh --ipv6 --port 2022 servers&ssh -6 -p2022 root@7612:a1b2:2004::6 sssh --ipv6 --private servers$ssh -6 -p22 root@2607:f0d0:1002::4 s:ssh --ipv6 --identity /home/me/my_dsa_key --private servers:ssh -6 -p22 -i /home/me/my_dsa_key root@2607:f0d0:1002::4 s+ssh --ipv6 --private --extra-opts -1 servers&ssh -6 -p22 root@2607:f0d0:1002::4 -1(tobjectRGR4tassert_called_with(R t mock_systemtmock_find_serverR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_ssh& s4                        cCssdtfdY}||_|id|id|id|id|iti|iddS(NRcBseZhhdd6dd6dd6hdd6dd6hdd6dd6dd6gd 6hdd6d d6hdd6d d6gd 6ZRS( iRCs1.1.1.1RRsOS-EXT-IPS:types2.2.2.2is2607:f0d0:1002::4Rs2.3.4.5s7612:a1b2:2004::6tother(RRR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyRY ssssh --network other serversssh -4 -p22 root@2.3.4.5 s!ssh --ipv6 --network other servers$ssh -6 -p22 root@7612:a1b2:2004::6 s'ssh --ipv6 --network nonexistent server(RRGR4RRsRtResourceNotFound(R RRR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_ssh_multinetV s      RcCs[|id|d|hhdd6d6}|o||ddR@RBRDRFtMockRJRKRMRNRORPRQRURVRXRZR[R\R]R^R_R`RcRhRiRjRkRlRmRnRoRpRqRrRsRtRuRvRwRxR{RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR R R RRRRRR R"R#R%R'R)R0R1R2R3R4R5R8R:R@RARFRIRJRKRLRMRNRSRURVR^R_R`RbRcRdReRfRgRhRiRlRnRoRpRsRtRvRwR~RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR5s                   $ y               6                     $                                             ''                                                                                                                                                                      /                t ShellTestV11cBs8eZhdd6dd6dd6dd6dd 6d d 6ZRS( RRRRRRs1.1Rshttp://no.whereRshttp://no.where/v2.0R(RRR!(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR stShellWithSessionClientTestcBseZdZRS(cCs3tt|i|itidddS(sRun before each test.snovaclient.client.Clientc_sti||S((RtFakeSessionClient(RR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR sN(RRRR"R#R%(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR s (RRR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR stGetSecgroupTestcBs,eZdZdZdZdZRS(cCs\tihdd6gd6}tiii|d}|id||iii ddS(Nt sec_groups security_groups.get.return_values!security_groups.list.return_valueRM( RRRtv2R t _get_secgroupRRlRR(R R tresult((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_with_integer s   cCs\tihdd6gd6}tiii|d}|id||iii ddS(NRs security_groups.get.return_values!security_groups.list.return_values$c0c32459-dc5f-44dc-9a0a-473b28bac831( RRRRR RRRlRR(R R R((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_with_uuid s     cCsCtihdd6gd6}|ititiii|ddS(NRs security_groups.get.return_values!security_groups.list.return_valuetabc( RRRsRRtRRR R(R R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_with_an_nonexisting_name s    cCs^ti}d|_tihdd6||gd6}|ititii i |ddS(Nt group_oneRs security_groups.get.return_values!security_groups.list.return_value( Rt MagicMockRORRsRt NoUniqueMatchRRR R(R RR ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_with_non_unique_name s     (RRRRRR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR s tGetFirstEndpointTestcBs,eZdZdZdZdZRS(cCs<hdd6}tiii|gd}|i||dS(s.If there is only one endpoint, it is returned.ROR7tXYZN(RRR t_get_first_endpointR(R tendpointR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_only_one_endpoint s cCsbhdd6hdd6dd6hdd6dd6g}tiii|d}|i|d|dS(sgIf there are multiple endpoints, the first one of the appropriate region is returned. RtregiontORDitnumberiN(RRR RR(R t endpointsR((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_multiple_endpoints s  cCsGhdd6hdd6hdd6g}|ittiii|ddS(shIf there are multiple endpoints but none of them are suitable, an exception is raised. RRtPQRtSTURN(Rst LookupErrorRRR R(R R((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyt)test_multiple_endpoints_but_none_suitable s     cCs#|ittiiigddS(s<If there are no endpoints available, an exception is raised.RN(RsRRRR R(R ((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyttest_no_endpoints- s  (RRRRRR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyR s  (RR`RR@R#Rt oslo_utilsRRt six.movesRtnovaclient.clientRRtnovaclient.shelltnovaclient.tests.unitRtnovaclient.tests.unit.v2Rtnovaclient.v2.shelltFixtureRtTestCaseRRRRR(((sN/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/v2/test_shell.pyts:            ,