diff --git a/core/app/handlers/core.py b/core/app/handlers/core.py index 918540d..ceedc4d 100644 --- a/core/app/handlers/core.py +++ b/core/app/handlers/core.py @@ -61,7 +61,7 @@ def delete_room(body): pods_list = v1.list_namespaced_pod(namespace=namespace) pods = [item.metadata.name for item in pods_list.items] - if not f"instance-{body["instance"]}" in pods: + if not f"instance-{body['instance']}" in pods: return "Instance " + body["instance"] + " does not exist" v1.delete_namespaced_pod(namespace=namespace, name='instance-'+body["instance"]) @@ -71,7 +71,7 @@ def delete_room(body): networking = client.NetworkingV1Api() current_ingress = networking.read_namespaced_ingress(name=ingress, namespace=namespace) current_ingress_paths = current_ingress.spec.rules[0].http.paths - current_ingress_paths = list(filter(lambda x: x.backend.service.name != f"instance-{body["instance"]}", current_ingress_paths)) + current_ingress_paths = list(filter(lambda x: x.backend.service.name != f"instance-{body['instance']}", current_ingress_paths)) current_ingress.spec.rules[0].http.paths = current_ingress_paths networking.patch_namespaced_ingress(ingress, namespace, current_ingress) diff --git a/frontend/src/app/main-game/main-game.component.css b/frontend/src/app/main-game/main-game.component.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/main-game/main-game.component.html b/frontend/src/app/main-game/main-game.component.html new file mode 100644 index 0000000..c0f9900 --- /dev/null +++ b/frontend/src/app/main-game/main-game.component.html @@ -0,0 +1 @@ +
main-game works!
diff --git a/frontend/src/app/main-game/main-game.component.spec.ts b/frontend/src/app/main-game/main-game.component.spec.ts new file mode 100644 index 0000000..e01cb73 --- /dev/null +++ b/frontend/src/app/main-game/main-game.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { MainGameComponent } from './main-game.component'; + +describe('MainGameComponent', () => { + let component: MainGameComponent; + let fixture: ComponentFixture