Skip to content

Commit

Permalink
cli/command/trust: unconvert
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jul 3, 2024
1 parent 26223f7 commit 3a77fdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/command/trust/inspect_pretty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3a77fdd

Please sign in to comment.