Skip to content

Conversation

@JillRegan
Copy link
Contributor

@JillRegan JillRegan commented Nov 24, 2025

✨ Summary

  • Added two E2E tests
  • TestAccItemDataSource_DetectManualChanges — verifies the data source picks up manual updates and removed fields.
  • TestAccItemResource_DetectManualChanges — verifies the resource detects manual changes and removal fields
  • Replaced usages of the external connect item category type with the internal model.ItemCategory.

🔗 Resolves:

✅ Checklist

  • 🖊️ Commits are signed
  • 🧪 Tests added/updated: (See the Testing Guide for when to use each type and how to run them)
    • 🔹 Unit /🔸 Integration
    • 🌐 E2E
  • 📚 Docs updated (if behavior changed)

🕵️ Review Notes & ⚠️ Risks

@JillRegan JillRegan changed the title [DRAFT] Add tests for state management Add tests for state management Nov 28, 2025
@JillRegan JillRegan marked this pull request as ready for review November 28, 2025 16:50
var testItems = map[op.ItemCategory]testItem{
op.Login: {
var testItems = map[model.ItemCategory]testItem{
model.Login: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch! 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also update op.Vault in internal/provider/onepassword_vault_data_source_test.go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually have a PR open as I found several other spots where we still reference connect data instead of new models. In that I update internal/provider/onepassword_vault_data_source_test.go 👍

@JillRegan JillRegan merged commit 89263ae into feature/configure-provider-to-use-sdk Dec 2, 2025
8 checks passed
@JillRegan JillRegan deleted the jill/add-e2e-test-for-state-management branch December 2, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants