Conflicting Error Code Bump (#6002)

* Bump up the error code for InvalidListToken such that it does not conflict with the error code Paused

* chore: reorder the errors and give 136 to InvalidListToken over Pausedx

* chore(errors): Add missing tests and err info

---------

Co-authored-by: Louis Ruch <louisruch@gmail.com>
This commit is contained in:
Ryan DerrandLouis Ruch authored and GitHub committed 2025-08-28 12:30:41 -05:00
1 parent 39d8d967f4
commit bd4dd9808a
3 files changed
+62 -20

No files matched your search

+35
View File
@@ -300,6 +300,11 @@ func TestCode_Both_String_Info(t *testing.T) {
c: VaultInvalidCredentialMapping,
want: VaultInvalidCredentialMapping,
},
{
name: "VaultTokenMissingCapabilities",
c: VaultTokenMissingCapabilities,
want: VaultTokenMissingCapabilities,
},
{
name: "OidcProviderCallbackError",
c: OidcProviderCallbackError,
@@ -425,6 +430,36 @@ func TestCode_Both_String_Info(t *testing.T) {
c: InvalidTextRepresentation,
want: InvalidTextRepresentation,
},
{
name: "Sign",
c: Sign,
want: Sign,
},
{
name: "Verify",
c: Verify,
want: Verify,
},
{
name: "Unauthorized",
c: Unauthorized,
want: Unauthorized,
},
{
name: "Conflict",
c: Conflict,
want: Conflict,
},
{
name: "Paused",
c: Paused,
want: Paused,
},
{
name: "ImmutableColumn",
c: ImmutableColumn,
want: ImmutableColumn,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {