Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ThomasHerve/AsymetricUnityTemplate …
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
ThomasHerve committed Apr 2, 2024
2 parents fdfd8df + 43b78ef commit c053c34
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/app/handlers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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)
Expand Down
Empty file.
1 change: 1 addition & 0 deletions frontend/src/app/main-game/main-game.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>main-game works!</p>
23 changes: 23 additions & 0 deletions frontend/src/app/main-game/main-game.component.spec.ts
Original file line number Diff line number Diff line change
@@ -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<MainGameComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ MainGameComponent ]
})
.compileComponents();

fixture = TestBed.createComponent(MainGameComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions frontend/src/app/main-game/main-game.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-main-game',
templateUrl: './main-game.component.html',
styleUrls: ['./main-game.component.css']
})
export class MainGameComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}

0 comments on commit c053c34

Please sign in to comment.