Skip to content

Conversation

@lovisaberggren
Copy link
Collaborator

@lovisaberggren lovisaberggren commented Mar 20, 2025

Proposed changes

Adds IPA 113 rules:

  • xgen-IPA-113-singleton-must-not-have-delete-method
  • xgen-IPA-113-singleton-should-have-update-method

Note: xgen-IPA-113-singleton-must-not-have-delete-method is covering the statement "Singleton resources must not define the Create or Delete standard methods" however I only implemented the check for DELETE since we use the absence of POST to determine if a resource is a singleton resource.

Note: xgen-IPA-113-singleton-should-have-update-method in the guidelines mentions GET as well, but this is already covered by a rule for 104, so didn't include this validation here.

Testing

  • Added unit tests
  • Ran validation, currently:
    • 3 violations for xgen-IPA-113-singleton-must-not-have-delete-method
    • 24 violations for xgen-IPA-113-singleton-should-have-update-method

Jira ticket: CLOUDP-304958

@lovisaberggren lovisaberggren marked this pull request as ready for review March 20, 2025 14:06
@lovisaberggren lovisaberggren requested a review from a team as a code owner March 20, 2025 14:06
Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb left a comment

Choose a reason for hiding this comment

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

LGTM! One PR, two rules!

@lovisaberggren lovisaberggren merged commit 99823b3 into main Mar 20, 2025
7 checks passed
@lovisaberggren lovisaberggren deleted the CLOUDP-304958 branch March 20, 2025 16:05
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.

2 participants