File tree Expand file tree Collapse file tree
samples/Compute/v2/server_groups Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 'region ' => '{region} ' ,
88 'user ' => [
99 'id ' => '{userId} ' ,
10- 'password ' => '{password} '
10+ 'password ' => '{password} ' ,
1111 ],
12- 'scope ' => ['project ' => ['id ' => '{projectId} ' ]]
12+ 'scope ' => ['project ' => ['id ' => '{projectId} ' ]],
1313]);
1414
15- $ compute = $ openstack ->computeV2 (['region ' => '{region} ' ]);
15+ $ compute = $ openstack ->computeV2 (['region ' => '{region} ' , ' microVersion ' => ' 2.64 ' ]);
1616
1717$ serverGroup = $ compute ->createServerGroup ([
18- 'name ' => '{serverGroupName} ' ,
19- 'policies ' => ['affinity ' ],
18+ 'name ' => '{serverGroupName} ' ,
19+ 'policy ' => 'anti-affinity ' ,
20+ 'rules ' => ['max_server_per_host ' => 3 ],
2021]);
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testCreate(): ServerGroup
2222
2323 $ this ->assertInstanceOf (ServerGroup::class, $ serverGroup );
2424 $ this ->assertEquals ($ name , $ serverGroup ->name );
25- $ this ->assertPolicy ($ serverGroup , 'affinity ' );
25+ $ this ->assertPolicy ($ serverGroup , 'anti- affinity ' );
2626
2727 return $ serverGroup ;
2828 }
@@ -60,7 +60,7 @@ public function testRead(ServerGroup $createdServerGroup)
6060 $ this ->assertInstanceOf (ServerGroup::class, $ serverGroup );
6161 $ this ->assertEquals ($ createdServerGroup ->id , $ serverGroup ->id );
6262 $ this ->assertEquals ($ createdServerGroup ->name , $ serverGroup ->name );
63- $ this ->assertPolicy ($ serverGroup , 'affinity ' );
63+ $ this ->assertPolicy ($ serverGroup , 'anti- affinity ' );
6464 }
6565
6666 /**
You can’t perform that action at this time.
0 commit comments