Consolidated createOverlayFile and updateOverlayFile to addOverlayFile

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-07-25 17:23:16 -06:00
parent 62d1aa654d
commit 9884aad504
6 changed files with 23 additions and 87 deletions

View File

@@ -732,7 +732,7 @@ func Test_CreateOverlayFile(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
newOverlay := GetSiteOverlay(tt.overlayName)
err := newOverlay.CreateOverlayFile(tt.filePath, tt.content, tt.force)
err := newOverlay.AddFile(tt.filePath, tt.content, true, tt.force)
assert.NoError(t, err)
newFile := newOverlay.File(tt.filePath)