Skip to content

Commit

Permalink
[TF-7968] Assert presence of expected error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hashimoon committed Aug 14, 2023
1 parent 0afbe21 commit 654d7ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions registry_module_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ func TestRegistryModulesShowVersion(t *testing.T) {
rmvRead, errRead := client.RegistryModules.ReadVersion(ctx, registryModuleIDTest, *invalidVersion)

require.Error(t, errRead)
assert.Equal(t, ErrResourceNotFound, err)
assert.Empty(t, rmvRead)
})
}
Expand Down Expand Up @@ -594,6 +595,7 @@ func TestRegistryModulesListCommit(t *testing.T) {

assert.Empty(t, cm)
require.Error(t, errCm)
assert.Equal(t, ErrResourceNotFound, errCm)
})
})
}
Expand Down

0 comments on commit 654d7ff

Please sign in to comment.