From 3a77fdd91f4e92bcdfafa61414fe2a6f1ba820bd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 3 Jul 2024 15:59:48 +0200 Subject: [PATCH] cli/command/trust: unconvert Signed-off-by: Sebastiaan van Stijn --- cli/command/trust/inspect_pretty_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/command/trust/inspect_pretty_test.go b/cli/command/trust/inspect_pretty_test.go index f564a5f7c6..13519f1390 100644 --- a/cli/command/trust/inspect_pretty_test.go +++ b/cli/command/trust/inspect_pretty_test.go @@ -187,7 +187,7 @@ func TestNotaryRoleToSigner(t *testing.T) { } assert.Check(t, is.Equal(role.String(), notaryRoleToSigner(role))) } - assert.Check(t, is.Equal("notarole", notaryRoleToSigner(data.RoleName("notarole")))) + assert.Check(t, is.Equal("notarole", notaryRoleToSigner("notarole"))) } // check if a role name is "released": either targets/releases or targets TUF roles @@ -196,9 +196,9 @@ func TestIsReleasedTarget(t *testing.T) { for _, role := range data.BaseRoles { assert.Check(t, is.Equal(role == data.CanonicalTargetsRole, isReleasedTarget(role))) } - assert.Check(t, !isReleasedTarget(data.RoleName("targets/not-releases"))) - assert.Check(t, !isReleasedTarget(data.RoleName("random"))) - assert.Check(t, !isReleasedTarget(data.RoleName("targets/releases/subrole"))) + assert.Check(t, !isReleasedTarget("targets/not-releases")) + assert.Check(t, !isReleasedTarget("random")) + assert.Check(t, !isReleasedTarget("targets/releases/subrole")) } // creates a mock delegation with a given name and no keys