Skip to content

Add random suffix to CustomIPBlocksInfo resource names#1375

Open
zhengxiexie wants to merge 1 commit intovmware-tanzu:mainfrom
zhengxiexie:topic/zhengxie/main/ip_block_test_random
Open

Add random suffix to CustomIPBlocksInfo resource names#1375
zhengxiexie wants to merge 1 commit intovmware-tanzu:mainfrom
zhengxiexie:topic/zhengxie/main/ip_block_test_random

Conversation

@zhengxiexie
Copy link
Contributor

@zhengxiexie zhengxiexie commented Feb 10, 2026

Summary

Add random suffix to avoid resource name conflicts when running tests in parallel or repeatedly.

Changes

  • Generate random suffix using existing getRandomString() function
  • Apply suffix to: ipBlockName, vpcProfileName, vpcId, vpcConfigName

@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.64%. Comparing base (0334455) to head (8854601).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1375      +/-   ##
==========================================
- Coverage   76.65%   76.64%   -0.01%     
==========================================
  Files         151      151              
  Lines       21102    21102              
==========================================
- Hits        16175    16173       -2     
- Misses       3773     3774       +1     
- Partials     1154     1155       +1     
Flag Coverage Δ
unit-tests 76.64% <ø> (-0.01%) ⬇️
see 1 file with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/ip_block_test_random branch from 350f073 to 2d82282 Compare February 10, 2026 07:37
- Updated `ZapCustomLogger` to accept `enableColor` flag instead of relying on log level.
- Added `--log-color` flag to main programs and test frameworks for explicit control.
- Updated tests to validate color handling based on the flag setting.
- Replace `getRandomString` with `generateUniqueID` for consistent unique ID generation in resource naming

Change-Id: I80a900072a535f0879f82ea99a90d68763da2aaf
@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/ip_block_test_random branch from 2d82282 to 8854601 Compare February 10, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants