mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 19:38:11 +00:00
Specifying initial size for scaleset create in integration-tests. (#2307)
* Specifying initial size for scaleset create in integration-tests. * Spell check.
This commit is contained in:
committed by
GitHub
parent
c94ae0bbb6
commit
163e324227
@ -288,7 +288,9 @@ class TestOnefuzz:
|
|||||||
self.logger.info("creating pool: %s:%s", entry.name, name)
|
self.logger.info("creating pool: %s:%s", entry.name, name)
|
||||||
self.of.pools.create(name, entry)
|
self.of.pools.create(name, entry)
|
||||||
self.logger.info("creating scaleset for pool: %s", name)
|
self.logger.info("creating scaleset for pool: %s", name)
|
||||||
self.of.scalesets.create(name, pool_size, region=region)
|
self.of.scalesets.create(
|
||||||
|
name, pool_size, region=region, initial_size=pool_size
|
||||||
|
)
|
||||||
|
|
||||||
def launch(
|
def launch(
|
||||||
self, path: Directory, *, os_list: List[OS], targets: List[str], duration=int
|
self, path: Directory, *, os_list: List[OS], targets: List[str], duration=int
|
||||||
@ -859,7 +861,10 @@ class TestOnefuzz:
|
|||||||
break
|
break
|
||||||
|
|
||||||
# ignore logging.info coming from Azure Functions
|
# ignore logging.info coming from Azure Functions
|
||||||
if entry.get("customDimensions", {}).get("LogLevel") == "Information" or entry.get("severityLevel") <= 2:
|
if (
|
||||||
|
entry.get("customDimensions", {}).get("LogLevel") == "Information"
|
||||||
|
or entry.get("severityLevel") <= 2
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# ignore warnings coming from the rust code, only be concerned
|
# ignore warnings coming from the rust code, only be concerned
|
||||||
@ -978,7 +983,9 @@ class Run(Command):
|
|||||||
if test_id is None:
|
if test_id is None:
|
||||||
test_id = uuid4()
|
test_id = uuid4()
|
||||||
self.logger.info("launching test_id: %s", test_id)
|
self.logger.info("launching test_id: %s", test_id)
|
||||||
self.logger.info("dotnet configuration: %s, %s", dotnet_endpoint, dotnet_functions)
|
self.logger.info(
|
||||||
|
"dotnet configuration: %s, %s", dotnet_endpoint, dotnet_functions
|
||||||
|
)
|
||||||
|
|
||||||
def try_setup(data: Any) -> None:
|
def try_setup(data: Any) -> None:
|
||||||
self.onefuzz.__setup__(
|
self.onefuzz.__setup__(
|
||||||
|
Reference in New Issue
Block a user