Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 163e324

Browse files
authored
Specifying initial size for scaleset create in integration-tests. (#2307)
* Specifying initial size for scaleset create in integration-tests. * Spell check.
1 parent c94ae0b commit 163e324

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/integration-tests/integration-test.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ def try_info_get(data: Any) -> None:
288288
self.logger.info("creating pool: %s:%s", entry.name, name)
289289
self.of.pools.create(name, entry)
290290
self.logger.info("creating scaleset for pool: %s", name)
291-
self.of.scalesets.create(name, pool_size, region=region)
291+
self.of.scalesets.create(
292+
name, pool_size, region=region, initial_size=pool_size
293+
)
292294

293295
def launch(
294296
self, path: Directory, *, os_list: List[OS], targets: List[str], duration=int
@@ -859,7 +861,10 @@ def check_logs_for_errors(self) -> None:
859861
break
860862

861863
# ignore logging.info coming from Azure Functions
862-
if entry.get("customDimensions", {}).get("LogLevel") == "Information" or entry.get("severityLevel") <= 2:
864+
if (
865+
entry.get("customDimensions", {}).get("LogLevel") == "Information"
866+
or entry.get("severityLevel") <= 2
867+
):
863868
continue
864869

865870
# ignore warnings coming from the rust code, only be concerned
@@ -978,7 +983,9 @@ def setup(
978983
if test_id is None:
979984
test_id = uuid4()
980985
self.logger.info("launching test_id: %s", test_id)
981-
self.logger.info("dotnet configuration: %s, %s", dotnet_endpoint, dotnet_functions)
986+
self.logger.info(
987+
"dotnet configuration: %s, %s", dotnet_endpoint, dotnet_functions
988+
)
982989

983990
def try_setup(data: Any) -> None:
984991
self.onefuzz.__setup__(

0 commit comments

Comments
 (0)