client/blueprints_test.go: delete condition for composer version < 83

The version check is failing on the "dot" version, while trying to
convert "118.1" to an integer. Delete the condition for skipping the
test, because it will never be running on anything older than v83
anyway.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-04-03 08:51:19 +02:00 committed by Tomáš Hozza
parent 5ccac6b007
commit 169f9a4308

View file

@ -11,10 +11,7 @@
package client
import (
"fmt"
"os/exec"
"sort"
"strconv"
"testing"
"github.com/osbuild/osbuild-composer/internal/common"
@ -1063,22 +1060,6 @@ func TestBlueprintFreezeGlobsV0(t *testing.T) {
t.Skip()
}
// works with osbuild-composer v83 and later
rpm_q := exec.Command("rpm", "-q", "--qf", "%{version}", "osbuild-composer")
out, err := rpm_q.CombinedOutput()
if err != nil {
assert.Fail(t, fmt.Sprintf("Error during rpm -q: %s", err))
}
rpm_version, err := strconv.Atoi(string(out))
if err != nil {
assert.Fail(t, "Error during str-int conversion", err)
}
if rpm_version < 83 {
t.Skip()
}
bp := `{
"name": "test-freeze-blueprint-glob-v0",
"description": "TestBlueprintFreezeGlobsV0",