Skip to content

Commit

Permalink
Merge pull request #71 from soketi/feature/soketi-0.17
Browse files Browse the repository at this point in the history
[6.x] Updated specs for soketi 0.17
  • Loading branch information
rennokki committed Nov 26, 2021
2 parents cc0bbea + fdc8b6e commit 19f30a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Commands/WatchNetworkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class WatchNetworkCommand extends Command implements SignalableCommandInterface
protected $signature = 'network:watch
{--pod-namespace=default : The Pod namespace. Defaults to the current Pod namespace.}
{--pod-name=some-pod : The Pod name to watch. Defaults to the current Pod name.}
{--server-port=6001 : The Server port.}
{--server-port=9601 : The Server port.}
{--memory-percent=75 : The threshold at which new connections close for a specific server.}
{--interval=1 : The interval in seconds between each checks.}
{--kubernetes-label=ws.soketi.app/accepts-new-connections : The label to attach to the Kubernetes services.}
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/NetworkWatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function test_watch_pod_rejecting_connections()
$this->artisan('network:watch', [
'--pod-namespace' => 'default',
'--pod-name' => $pod->getName(),
'--server-port' => 6001,
'--server-port' => 9601,
'--memory-percent' => 80,
'--interval' => 1,
'--test' => true,
Expand Down Expand Up @@ -75,7 +75,7 @@ public function test_watch_pod_accepting_connections()
$this->artisan('network:watch', [
'--pod-namespace' => 'default',
'--pod-name' => $pod->getName(),
'--server-port' => 6001,
'--server-port' => 9601,
'--memory-percent' => 90,
'--interval' => 1,
'--test' => true,
Expand Down
3 changes: 2 additions & 1 deletion tests/fixtures/soketi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: soketi
image: quay.io/soketi/soketi:0.13-16-alpine
image: quay.io/soketi/soketi:0.17-16-alpine
env:
- name: PRESENCE_STORAGE_DATABASE
value: socket
Expand All @@ -34,6 +34,7 @@ spec:
- start
ports:
- containerPort: 6001
- containerPort: 9601
resources:
limits:
cpu: 500m
Expand Down

0 comments on commit 19f30a7

Please sign in to comment.