Skip to content

Commit 02ed333

Browse files
committed
Fixed scaling updates
1 parent 8645d57 commit 02ed333

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: tests/DeploymentTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public function test_deployment_api_interaction()
7070
$this->runCreationTests();
7171
$this->runGetAllTests();
7272
$this->runGetTests();
73+
$this->runScalingTests();
7374
$this->runUpdateTests();
7475
$this->runWatchAllTests();
7576
$this->runWatchTests();
76-
$this->runScalingTests();
7777
$this->runDeletionTests();
7878
}
7979

@@ -199,7 +199,7 @@ public function runUpdateTests()
199199
$this->assertEquals('mysql', $dep->getName());
200200
$this->assertEquals(['tier' => 'backend'], $dep->getLabels());
201201
$this->assertEquals([], $dep->getAnnotations());
202-
$this->assertEquals(1, $dep->getReplicas());
202+
$this->assertEquals(2, $dep->getReplicas());
203203

204204
$this->assertInstanceOf(K8sPod::class, $dep->getTemplate());
205205
}

Diff for: tests/StatefulSetTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public function test_stateful_set_api_interaction()
108108
$this->runCreationTests();
109109
$this->runGetAllTests();
110110
$this->runGetTests();
111+
$this->runScalingTests();
111112
$this->runUpdateTests();
112113
$this->runWatchAllTests();
113114
$this->runWatchTests();
114-
$this->runScalingTests();
115115
$this->runDeletionTests();
116116
}
117117

@@ -255,7 +255,7 @@ public function runUpdateTests()
255255
$this->assertEquals('mysql', $sts->getName());
256256
$this->assertEquals(['tier' => 'backend'], $sts->getLabels());
257257
$this->assertEquals([], $sts->getAnnotations());
258-
$this->assertEquals(1, $sts->getReplicas());
258+
$this->assertEquals(2, $sts->getReplicas());
259259

260260
$this->assertInstanceOf(K8sPod::class, $sts->getTemplate());
261261
$this->assertInstanceOf(K8sPersistentVolumeClaim::class, $sts->getVolumeClaims()[0]);

0 commit comments

Comments
 (0)