Граф коммитов

43 Коммитов

Автор SHA1 Сообщение Дата
hezijie ce45ab1bfd try to fix golangci-lint issues by fix golangci-lint version 2024-08-20 09:19:23 +08:00
hezijie 3bf523b23d add internal lock to serialize terraform init to avoid potential provider plugin cache concurrent error 2024-05-27 12:56:10 +08:00
zjhe 4591fa9ca3 restore idempotent test for e2e test 2024-05-09 09:53:48 +08:00
hezijie 96e8615f55 skip destroy for unit test 2023-07-28 13:07:12 +08:00
zjhe e11b923142 add new e2e test method so we can skip idempotent check since some examples would try to retrieve data from data plane api and would failed due to the network policy 2023-03-22 13:28:53 +08:00
zjhe 9d6cdf0478 remove init lock since we don't use plugin cache in test container any more 2023-03-16 16:34:47 +08:00
zjhe 4af3de4917 set upgrade to false while terraform init because we're running tests in parallel, upgrade would try to remove the plugin while it's being used by other test 2023-03-16 16:11:00 +08:00
zjhe 7ea4a3f0eb add log for init lock acuired and released 2023-03-16 15:45:55 +08:00
zjhe 1803a8c40e change skip env var name because terratest would change it's behavior when a env var named SKIP_XXX has been set 2023-03-16 15:08:55 +08:00
zjhe d95b1574de add env var to skip cleanup temp test folder for debug 2023-03-16 14:55:07 +08:00
zjhe 229c0c0fd4 remove tmp folders after test 2023-03-14 15:55:08 +08:00
zjhe 4aa248ec47 add global lock in tf init to avoid potential concurrent error 2023-03-14 15:46:20 +08:00
zjhe 4f72af60b3 fallback from parallel when panic 2023-03-08 09:41:23 +08:00
hezijie c1ac612533 add lock on CopyTerraformFolderToTemp method to avoid concurrent error (One goroutine might try to copy a temp tfvars file generated by another gorouteine, then found it as been deleted by another goroutine) 2023-03-02 16:44:06 +08:00
hezijie 23b757dd86 remove unused function 2023-02-21 13:54:55 +08:00
hezijie 98bfb4448c add unit test method, no synchronized logger or test snapshot in unit test 2023-02-21 13:40:38 +08:00
zjhe 168522dd58 setup default retry options if we have retryable errors 2023-02-06 19:20:49 +08:00
zjhe c67cf55b97 refactor code, ignore TestRecord.md.tmp 2023-02-03 07:16:57 +08:00
zjhe f17df608c3 remove redundant init 2023-02-02 14:29:01 +08:00
zjhe 437dc452ed save test provider version snapshot 2023-02-02 14:13:59 +08:00
zjhe 36c5e97148 lock only when execute init 2023-02-02 13:45:09 +08:00
zjhe 8226c191c8 remove logger name because the test logger output contains test name; add global lock for terraform init since we're running tests in parallel 2023-02-02 11:51:42 +08:00
zjhe 7711f1f4f9 add log buffered notice, add test progress log 2023-02-02 11:23:36 +08:00
zjhe a343e69a87 remove redundant parameter check 2023-02-01 23:06:31 +08:00
zjhe 4f61f1b813 refactor code, add stream logger serialize output to stdout test 2023-02-01 19:35:12 +08:00
Dingjia Chen 5831ee4351
Prepare for concurrent tests (#9)
Add stream logger to support parallel tests.
2023-02-01 14:10:03 +08:00
zjhe 6d506d80d8 skip destroy if there is no tfstate file 2023-01-13 23:46:53 +08:00
zjhe 20e82e21ef try destroy without refresh first to avoid invalid tf code blocking destroy 2023-01-13 19:45:47 +08:00
zjhe 904a2b967c do not retry on apply 2023-01-13 19:30:20 +08:00
zjhe 2db9ef1446 try to avoid unnecessary retry 2023-01-13 19:22:06 +08:00
zjhe 85fb2fe72e when execute destroy, try 5 times destroy with refresh, then 5 times without refresh 2023-01-13 10:24:25 +08:00
zjhe 95c1e9f2c5 add error check for destroy 2022-12-30 14:13:30 +08:00
zjhe 100c98b89e disable refresh when execute destroy so config validation error won't block destroy 2022-12-30 13:47:57 +08:00
zjhe 6738c52682 use tfmodredirector to modify hcl file directly so we don't need override file anymore 2022-12-01 19:14:31 +08:00
zjhe 3c0a9809e6 retry 10 times on any error to destroy test infra 2022-11-01 16:00:27 +08:00
zjhe 4ccb72bfb4 refactor code 2022-09-06 13:53:01 +08:00
zjhe 357ef70897 retry when error message suggest retry 2022-07-06 14:16:29 +08:00
zjhe 7a037715d4 Change idempotent check in e2e test to easy mode. 2022-06-29 20:43:03 +08:00
zjhe 065cee0665 set e2e test's output logger to discard to hide potential sensitive data 2022-05-17 17:09:33 +08:00
zjhe a65aa7fc9a render override.tf file in e2e test when the template file exists. 2022-05-13 14:38:59 +08:00
zjhe 3b121ffff8 some refactor... add function to calculate current version number from env variable 2022-04-07 15:59:38 +08:00
zjhe a376d1a3cb simplify the e2e test method signature 2022-03-01 15:12:45 +08:00
lonegunmanb 3bd1b4d408
init commit (#1)
Co-authored-by: zjhe <hezijie@microsoft.com>
2022-03-01 13:17:23 +08:00