Chi Song (from Dev Box)
b3be1ce23f
fix UT to load from a real file
2024-10-03 08:42:21 -07:00
Lili Deng
cf99e697a8
add unit test test_env_retry_on_deployment_fail
2024-09-19 11:48:42 +08:00
Lili Deng
a87bba5021
add retry_on_deployment
2024-09-19 11:48:42 +08:00
Chi Song (from Dev Box)
660c472b69
test: fix retry test case failure
...
Replace another retry test case in runner.
2024-08-12 08:41:19 -07:00
lubaihua33
a234307870
Move load_location_info_from_file with related class and function to common.py
2024-05-14 10:37:06 +08:00
Chi Song
ae92900ae7
util: get first combination
...
It will be used to get Azure vm sizes for multiple VMs.
2023-11-20 08:18:19 -08:00
Chi Song
f9bb4e8d46
test: fix side effects of test cases.
2023-11-16 21:15:39 -08:00
Chi Song
2f8e77e447
fix test comments and name.
2023-11-16 21:15:39 -08:00
Chi Song
c27cbabc3e
support encoding parameter on node and tools
2023-10-23 11:53:04 +08:00
Kameron Carr
36f9249bc5
BaseRunner: Pass RunbookBuilder
2023-09-19 11:22:52 -07:00
Kameron Carr
ba04ef56b7
Rename disk_type to data_disk_type
...
Also change all the test requirements to set both data disk and os disk types as to keep the same behavior as before.
2023-08-22 10:58:40 +08:00
lubaihua33
7abc2d3848
Add tearDown in SecretTestCase to avoid effecting other tests
2023-07-07 09:52:56 +08:00
paxue
ada83d442f
change before_case to handle exception, not mark as Skipped ( #2795 )
...
Co-authored-by: panfengxue <paxue@microsoft.om>
2023-06-26 17:23:12 +08:00
Lili Deng
161386f88b
fix UT issue
2023-04-18 17:58:44 +08:00
Avram Lubkin
7c8c43725a
Replace unhashable defaults in dataclasses
2023-04-04 14:01:43 +08:00
Lili Deng
97b9490765
use before_case and after_case replace before_suite and after_suite
2023-03-17 11:00:19 +08:00
Avram Lubkin
d71b1da594
Pin to latest isort and black
2023-02-01 09:56:04 -05:00
Lili Deng
6b79bf6f10
[fix issue] add is_test_target flag for node
2023-01-14 11:19:42 +08:00
Avram Lubkin
ee1ee590f2
Pylint: Enable redefined-builtin
2023-01-09 22:51:35 +08:00
Avram Lubkin
dc4fd3952f
Pylint: Enable variable checks
2023-01-04 08:12:32 -08:00
Chi Song
c0c6797101
Azure: move default locations to westus3
2022-10-31 09:11:38 -07:00
Chi Song
95b82fe598
test: lisa runner: fix awaitable messages.
...
With new implementation, the awaitable resource has a different error
message with normal no available capability.
2022-10-03 10:00:35 -07:00
Chi Song
f7d6b896af
test: azure prepare: remove to set nodes raw
2022-10-03 10:00:35 -07:00
Chi Song
7e535f0261
test: azure prepare use original
2022-10-03 10:00:35 -07:00
Chi Song
fe15b59c9d
UT: runner: set awaitable timeout to 0
2022-10-03 10:00:35 -07:00
Chi Song
70ea7518a5
Exception: add args to ResourceAwaitableException
2022-10-03 10:00:35 -07:00
Chi Song
4fcdc93ab6
Azure: fix no capability case failed to skip
2022-09-01 17:39:01 -06:00
Chi Song
c5f244c9fd
exception: move and rename to ResourceAwaitableException
...
The original name is WaitMoreResourceError.
2022-09-01 17:39:01 -06:00
Chi Song
d513ef4c3e
Azure: refactoring and support multiple vm sizes.
...
Breaking change:
For non-exists vm size, it needs to add "maximize_capability" to force
run. This is acceptable, because it's not a common scenario.
1. Support to specify multiple vm sizes by comma.
2. Merged duplicate logic, and extract methods.
3. Provide TODO to support all wait for resource check.
4. Add UTs for max cap, multiple locations, and multiple vm sizes.
2022-08-18 11:53:46 -07:00
Chi Song
789243b6b9
Test: fix test data of wrong location
2022-08-18 11:53:46 -07:00
Chi Song
aa564e7a6c
Azure: removed cached sorted capabilities
...
In next refactoring, Azure supports to check quota availability, and the
static sorted result is not useful.
2022-08-18 11:53:46 -07:00
Chi Song
cf07bc08ad
Azure: change cache to dict to improve query.
2022-08-18 11:53:46 -07:00
Chi Song
b76d908595
azure: refactoring to rename method and variables.
2022-08-18 11:53:46 -07:00
Chi Song
b5c0bf054c
schema: save original node req for reload.
...
The original node req shouldn't be changed in following logic to keep it
original state.
2022-08-18 11:53:46 -07:00
Chi Song
6f88461bd1
node: move cost to property and change to float
2022-08-18 11:53:46 -07:00
Chi Song
9a1f74416f
search space: improve error messages
2022-08-02 12:33:39 -07:00
Divyansh
54b51c74e1
Add community test case result
2022-06-17 09:22:03 -07:00
Chi Song
0e26ae0027
refactoring and fix typos
...
* rename to _setspace_by_priority
2022-05-13 11:05:34 -07:00
Chris Gunn
19016b3169
Add JUnit notifier. ( #1889 )
...
* Add JUnit notifier.
1. Add timestamp to all notifier messages.
2. Add stacktrace to test result failure messages.
3. On test result messages, report relative function name (in addition to the fully
qualified name), and fully qualified test suite name.
4. Add a new notifier type for outputting test results in the JUnit format.
2022-04-18 21:21:19 -07:00
Lili Deng
57e29bad6f
vCPUsAvailable capability reflect actual vcpu in the guest
2022-04-09 23:55:36 -07:00
Chi Song
1ec1a102cc
fix typos
2022-03-17 22:35:53 -07:00
Chi Song
4a81801bf9
add local working path
...
1. With this change, it supports to use different folder for log and
working. It's easy to copy the whole log folder to another place without
any binary of the working folder.
2. The working folder of test cases won't be created automatically,
because the path may not be used. It needs the user to create it before
using.
2022-03-11 14:48:45 -08:00
Chi Song
594921b8e1
variable: flat settings to avoid ambiguous.
...
The current schema uses nested dict to save complex variable structure.
It's ambiguous, if the value is a dict. So move all settings to upper
level, and remove unused schema.
2022-02-25 16:54:38 -08:00
Chi Song
1094f47a4d
result: skip test, if os doesn't match.
...
If one of OS mismatches, mark the test case is skipped. It assumes no
more env can meet the requirements, instead of checking the rest envs
one by one. The reason is this checking is a dynamic checking, and it
needs to be checked in each deployed environment. It may cause to deploy
a lot of environment for checking. In another hand, the OS should be the
same for all environments in the same lisa runner. So it's safe to skip
a test case on first os mismatched.
2022-01-25 16:29:02 -08:00
isaiahduncan
e8ae64d3da
[LISAv3] Adding vm hot resize test case ( #1622 )
...
* Adding Resize Feature
* [LISAv3] Adding vm hot resize test case
2022-01-03 17:52:26 -08:00
Chi Song
68a04c880c
remove unused QueuedException
2021-12-21 15:31:11 -08:00
Chi Song
b3e14ea2c2
refactoring move constants to lisa level.
2021-12-21 15:31:11 -08:00
Divyansh
72c4f0cdf8
Return fetch if combinator has no items
...
Fix issue causing combinator to run once if no item present
2021-11-02 15:49:56 -07:00
Lili Deng
cdadbe6e50
Update max_nic_count for unit test.
2021-10-25 23:35:10 -07:00
Chi Song
75f21bbc0f
platform: Refine name constants and imports
2021-10-20 14:25:52 -07:00