Use fictional hostname for VMHost

This commit is contained in:
ahmadbilalkhalid 2020-03-02 17:42:54 +05:00
parent 0c3e6d10ae
commit 750d8c8cbf

View file

@ -11,7 +11,8 @@ from uncloud_pay.models import Order
User = get_user_model()
# If you want to check the test database then use the following connecting parameters
# If you want to check the test database using some GUI/cli tool
# then use the following connecting parameters
# host: localhost
# database: test_uncloud
@ -24,7 +25,7 @@ class VMTestCase(TestCase):
def setUpClass(cls):
# Setup vm host
cls.vm_host, created = VMHost.objects.get_or_create(
hostname='server1.place11.ungleich.ch', physical_cores=32, usable_cores=320,
hostname='serverx.placey.ungleich.ch', physical_cores=32, usable_cores=320,
usable_ram_in_gb=512.0, status='active'
)
super().setUpClass()