Skip to content

Comments

Yet more tests ported#32

Merged
andyyu2004 merged 7 commits intomasterfrom
tests
Feb 8, 2026
Merged

Yet more tests ported#32
andyyu2004 merged 7 commits intomasterfrom
tests

Conversation

@andyyu2004
Copy link
Owner

No description provided.

Ported from krusty/configmaps_test.go:
- TestGeneratorIntVsStringNoMerge - Numbers and booleans are quoted
- TestGeneratorIntVsStringWithMerge - Quoting preserved when merging
- TestGeneratorFromProperties - ConfigMap generation from properties files with merge

Tests: 234 → 237
Ported from krusty/configmaps_test.go:
- TestIssue3393 - ConfigMap generator merge with existing resource
- TestGeneratorSimpleOverlay - Simple overlay with merge behavior
- TestDataEndsWithQuotes - Regression test for issue #4233
- TestDataIsSingleQuote - Single quote character handling

Tests: 237 → 241
Ported from krusty/basic_io_test.go:
- TestBasicIO_1 - Annotations sorted by key, numbers and booleans quoted
- TestBasicIO_2 - Annotations already quoted in input

Tests: 241 → 243
Ported from inlinelabels_test.go - tests for labels transformer with various options like includeTemplates and includeSelectors on different resource types (Deployment, DaemonSet, StatefulSet, CronJob, Job).
Ported from baseandoverlaysmall_test.go - tests for base/overlay composition with namePrefix, commonLabels, patches, and JSON patches.
- TestGeneratorBasics (configmap with various sources)
- TestIssue1251_Patches_Overlayed (diamond composition)
- TestIssue1251_Patches_Local (multiple patches in one kustomization)
- TestMergeEnvFrom (envFrom merge behavior)
- TestMergeEnvFromViaJsonInline (envFrom with JSON patch)
- TestNamespacedGenerator (generators with namespace field)
- TestNamespacedGeneratorWithOverlays (namespace override in overlay)
- TestRemoveEmptyDirAddPersistentDisk (volume type replacement)
@andyyu2004 andyyu2004 enabled auto-merge (squash) February 8, 2026 22:46
@andyyu2004 andyyu2004 merged commit 8425914 into master Feb 8, 2026
1 check passed
@andyyu2004 andyyu2004 deleted the tests branch February 8, 2026 22:49
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.

1 participant