This is an automated email from the ASF dual-hosted git repository.
weizhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 78411fd405c test: fix test_vm_autoscaling.py which does not work due
to userdata improvement (#7921)
78411fd405c is described below
commit 78411fd405c6dfe83381f010c143d6bb90b6b7e4
Author: Wei Zhou <[email protected]>
AuthorDate: Wed Aug 30 23:51:52 2023 +0200
test: fix test_vm_autoscaling.py which does not work due to userdata
improvement (#7921)
---
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
)