Skip to content

fix: entitlement external resource got deleted when it should be updated#600

Merged
enrico-kaack-comp merged 3 commits intomainfrom
push-zkrlxxztxomn
Apr 15, 2026
Merged

fix: entitlement external resource got deleted when it should be updated#600
enrico-kaack-comp merged 3 commits intomainfrom
push-zkrlxxztxomn

Conversation

@dattito
Copy link
Copy Markdown
Contributor

@dattito dattito commented Mar 27, 2026

Fixes #597.

Cherry-picked the commit from #527.

On-behalf-of: David Siregar <david.siregar@sap.com>
Signed-off-by: David Siregar <david.siregar@sap.com>
@dattito dattito added the release-notes/bugfix Marks PR as bugfix for release note generation label Mar 27, 2026
@dattito
Copy link
Copy Markdown
Contributor Author

dattito commented Mar 27, 2026

FYI @jtucci

Copy link
Copy Markdown
Contributor

@enrico-kaack-comp enrico-kaack-comp left a comment

Choose a reason for hiding this comment

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

thank you for picking this out of the bigger PR.

Did you manually test this behaviour? Do you want to add unit tests for this?

@dattito
Copy link
Copy Markdown
Contributor Author

dattito commented Mar 30, 2026

@enrico-kaack-comp I tested it manually. Writing unit tests is hard because it requires communication with the BTP server that would need to be mocked in a complicated manner. Also doing e2e testing this is very hard, because you try to observe that a certain event is not happening.

@enrico-kaack-comp
Copy link
Copy Markdown
Contributor

on quick glance the communication with the btp should be mockable since the client already has a mock client. But your call how you want to proceed, you are more in the code than me

On-behalf-of: David Siregar <david.siregar@sap.com>
Signed-off-by: David Siregar <david.siregar@sap.com>
@dattito
Copy link
Copy Markdown
Contributor Author

dattito commented Mar 31, 2026

@enrico-kaack-comp you are right, it is indeed possible to mock them. I added some relevant unit tests.

@enrico-kaack-comp enrico-kaack-comp enabled auto-merge (squash) April 15, 2026 13:47
@enrico-kaack-comp enrico-kaack-comp merged commit ad28226 into main Apr 15, 2026
41 checks passed
@enrico-kaack-comp enrico-kaack-comp deleted the push-zkrlxxztxomn branch April 15, 2026 13:51
jtucci pushed a commit to jtucci/crossplane-provider-btp that referenced this pull request Apr 24, 2026
…ted (SAP#600)

On-behalf-of: David Siregar <david.siregar@sap.com>
Signed-off-by: David Siregar <david.siregar@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes/bugfix Marks PR as bugfix for release note generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Entitlement quota zeroed out when deleting one of multiple Entitlement CRs for the same service plan

2 participants