def test_id_generation(self, provisioner, user): provisioner.save(check_status=False) user.save() empty = Cluster(provisioner._object_namespace, name='test', provisioner=provisioner, owner=user) empty.save() empty.delete()
} ) provisioner.save(check_status=False) except: raise Exception('Adding AWS provisioner failed') try: cluster = Cluster( id=uuid_jenkins, name='AWS Calico SM 33', state='OK', provisioner=provisioner, kubeconfig=yaml.load(requests.get(kubeconfig_url).text), ) cluster.save() except: raise Exception('Adding AWS cluster failed') # Local cluster try: provisioner = Provisioner( id=uuid_provisioner_local, name='Manual provisioner', state='OK', engine='kqueen.engines.ManualEngine', parameters={} ) provisioner.save(check_status=False) except:
def test_id_generation(self, provisioner): provisioner.save(check_status=False) empty = Cluster(name='test', provisioner=provisioner) empty.save()
def test_id_generation(self): empty = Cluster() empty.save()