fix: instance_names in tests must be alphanumeric and be < 20 chars
ci/woodpecker/push/woodpecker Pipeline failed Details
ci/woodpecker/pr/woodpecker Pipeline failed Details

closes: https://gitea.gna.org/Hostea/dashboard/issues/57
Hostea dashboard 2022-09-12 02:25:56 +05:30
parent 3019d9d739
commit 588ccf95ee
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
3 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ class BillingTest(TestCase):
def test_payments(self):
c = Client()
login_util(self, c, "accounts.home")
instance_name = "test_payments"
instance_name = "tpayments"
create_instance_util(
t=self, c=c, instance_name=instance_name, config=self.instance_config[0]
)
@ -154,7 +154,7 @@ class GenerateInvoiceCommand(TestCase):
def test_cmd(self):
c = Client()
login_util(self, c, "accounts.home")
instance_name = "test_generate_invoice_cmd"
instance_name = "tgeninvmd"
create_instance_util(
t=self, c=c, instance_name=instance_name, config=self.instance_config[0]
)

View File

@ -236,14 +236,14 @@ class CreateInstance(TestCase):
self.assertEqual(str.encode(test) in resp.content, True)
# create instance
instance_name = "testirenrs"
payload = {
"name": "test_create_instance_renders",
"name": instance_name,
"configuration": self.instance_config[0].name,
}
self.assertEqual(Instance.objects.filter(name=payload["name"]).exists(), False)
instance_name = "test_create_instance_renders"
create_instance_util(
t=self, c=c, instance_name=instance_name, config=self.instance_config[0]
)

View File

@ -185,7 +185,7 @@ class InfraUtilTest(TestCase):
"""
c = Client()
login_util(self, c, "accounts.home")
instance_name = "test_vm_delete_payments"
instance_name = "trmpayments"
infra = Infra()