Skip to content

Implement UUID builtins#155

Draft
Aayush10016 wants to merge 1 commit into
open-policy-agent:mainfrom
Aayush10016:issue-134-uuid-builtins
Draft

Implement UUID builtins#155
Aayush10016 wants to merge 1 commit into
open-policy-agent:mainfrom
Aayush10016:issue-134-uuid-builtins

Conversation

@Aayush10016

Copy link
Copy Markdown

Summary

Implements the UUID builtins requested in #134:

  • uuid.parse, including RFC 4122 metadata for version 1 and 2 UUIDs
  • uuid.rfc4122, including stable repeated values for the same key during evaluation
  • registration with the evaluator builtin registry
  • focused tests for parsing, supported input formats, invalid values, and generated RFC 4122 UUIDs

Validation

  • .\gradlew.bat --no-daemon --console=plain :opa-evaluator:test --tests io.github.open_policy_agent.opa.ast.builtin.impls.UUIDBuiltinsTest
  • .\gradlew.bat --no-daemon --console=plain :opa-evaluator:test --tests io.github.open_policy_agent.opa.ast.builtin.impls.UUIDBuiltinsTest --tests io.github.open_policy_agent.opa.ast.builtin.CapabilitiesGeneratorTest :opa-evaluator:checkstyleMain :opa-evaluator:checkstyleTest

I also tried :opa-evaluator:check; it did not complete cleanly because of unrelated existing local failures in GoTimeLayoutConverterTest and FileSystemBundleLoaderTest.

Fixes #134.

Signed-off-by: Aayush Tiwari <aayushtiwari1001@gmail.com>
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.

Implement UUID builtins (uuid.*)

1 participant