This is an automated email from the ASF dual-hosted git repository. weizhou pushed a commit to branch 4.19-fix-test_vm_autoscaling in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit f6366fa0c45186fecee9c7524ea7d4bc57715634 Author: Wei Zhou <[email protected]> AuthorDate: Tue Aug 29 14:34:44 2023 +0200 test: fix test_vm_autoscaling.py which does not work due to userdata improvement --- test/integration/smoke/test_vm_autoscaling.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_vm_autoscaling.py b/test/integration/smoke/test_vm_autoscaling.py index 316f94fd5fd..7ae61ce57da 100644 --- a/test/integration/smoke/test_vm_autoscaling.py +++ b/test/integration/smoke/test_vm_autoscaling.py @@ -204,7 +204,10 @@ class TestVmAutoScaling(cloudstackTestCase): cls.apiUserdata = UserData.register( cls.apiclient, name="ApiUserdata", - userdata="QVBJdXNlcmRhdGE=", #APIuserdata + userdata="IyEvYmluL2Jhc2gKCmVjaG8gIkFQSVVzZXJkYXRhIgoK", + # #!/bin/bash + # + # echo "APIUserData" account=cls.regular_user.name, domainid=cls.regular_user.domainid ) @@ -327,7 +330,10 @@ class TestVmAutoScaling(cloudstackTestCase): serviceofferingid=cls.service_offering.id, zoneid=cls.zone.id, templateid=cls.template.id, - userdata="VGVzdFVzZXJEYXRh", #TestUserData + userdata="IyEvYmluL2Jhc2gKCmVjaG8gIlRlc3RVc2VyRGF0YSIKCg==", + # #!/bin/bash + # + # echo "TestUserData" expungevmgraceperiod=DEFAULT_EXPUNGE_VM_GRACE_PERIOD, otherdeployparams=cls.otherdeployparams )
