feat: Label new volumes as managed by uncloud (#79)

This commit is contained in:
Anton Ovchinnikov
2025-06-23 22:05:05 +02:00
committed by GitHub
parent 26f34df3e6
commit 44549c00fd
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -121,6 +121,9 @@ func TestComposeDeployment(t *testing.T) {
})
require.NoError(t, err)
assert.Len(t, volumes, 2, "Expected 2 volumes to be created")
// Check that the volumes have the correct labels
assert.Equal(t, map[string]string{"uncloud.managed": ""}, volumes[0].Volume.Labels)
assert.Equal(t, map[string]string{"uncloud.managed": ""}, volumes[1].Volume.Labels)
data1Volume, data2Volume := volumes[0], volumes[1]
if volumes[0].Volume.Name == "test-compose-volumes-data2" {