GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add YAML policy test cases by copybara-service[bot] · Pull Request #375 · cel-expr/cel-java

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 26, 2024

Copy link
Copy Markdown
Contributor

Add YAML policy test cases

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@copybara-service
copybara-service Bot force-pushed the test_646669820 branch 5 times, most recently from 9c80532 to 15ba0e9 Compare July 2, 2024 20:13
@l46kok @copybara-github
Add YAML policy test cases
b9fe54d
PiperOrigin-RevId: 648822357
@copybara-service
copybara-service Bot force-pushed the test_646669820 branch from 15ba0e9 to b9fe54d Compare July 2, 2024 20:21
@copybara-service
copybara-service Bot merged commit b9fe54d into main Jul 2, 2024
@copybara-service
copybara-service Bot deleted the test_646669820 branch July 2, 2024 20:21
lqiu96 referenced this pull request in googleapis/sdk-platform-java Jul 23, 2024
@renovate-bot
deps: update dependency dev.cel:cel to v0.6.0 (#3050)
bc332d9
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [dev.cel:cel](https://togithub.com/google/cel-java) | `0.5.2` ->
`0.6.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/dev.cel:cel/0.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/dev.cel:cel/0.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/dev.cel:cel/0.5.2/0.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/dev.cel:cel/0.5.2/0.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>google/cel-java (dev.cel:cel)</summary>

### [`v0.6.0`](https://togithub.com/google/cel-java/releases/tag/v0.6.0)

[Compare
Source](https://togithub.com/google/cel-java/compare/v0.5.2...v0.6.0)

This release features CEL-based policy compilers with YAML support
[(example)](https://togithub.com/google/cel-java/tree/main/policy/src/test/resources/restricted_destinations),
[adds a new extension
library](https://togithub.com/google/cel-java/blob/main/extensions/src/main/java/dev/cel/extensions/README.md#sets)
for handling set operations and includes minor bug fixes along with
performance improvements.

#### Fixes

- Copy the suppress warning annotations to autovalue gened celexpr in
[https://github.com/google/cel-java/pull/359](https://togithub.com/google/cel-java/pull/359)
- Check for presence of optional indices to prevent autoboxing in
[https://github.com/google/cel-java/pull/366](https://togithub.com/google/cel-java/pull/366)
- Adapt the function dispatch result to allow for automatic Any
unpacking in
[https://github.com/google/cel-java/pull/376](https://togithub.com/google/cel-java/pull/376)

#### What's Changed

- Implement CEL Set Extension in
[https://github.com/google/cel-java/pull/360](https://togithub.com/google/cel-java/pull/360)
- Remove PartialMessage and IncompleteData in
[https://github.com/google/cel-java/pull/365](https://togithub.com/google/cel-java/pull/365)
- Compute line offsets once when constructing CelCodePointArray
[https://github.com/google/cel-java/pull/368](https://togithub.com/google/cel-java/pull/368)
- Remove celVarToDecl method in
[https://github.com/google/cel-java/pull/371](https://togithub.com/google/cel-java/pull/371)
- Add an interface for encapsulating Source properties in
[https://github.com/google/cel-java/pull/369](https://togithub.com/google/cel-java/pull/369)
- Add PolicySource in
[https://github.com/google/cel-java/pull/370](https://togithub.com/google/cel-java/pull/370)
- Flag guard the function dispatch result adaptation change in
[https://github.com/google/cel-java/pull/383](https://togithub.com/google/cel-java/pull/383)
- Implement YAML parser for policy configs in
[https://github.com/google/cel-java/pull/372](https://togithub.com/google/cel-java/pull/372)
- Create a separate interface for validating required fields in a
builder in
[https://github.com/google/cel-java/pull/373](https://togithub.com/google/cel-java/pull/373)
- Add the capability to extend CEL environment from parsed config in
[https://github.com/google/cel-java/pull/374](https://togithub.com/google/cel-java/pull/374)
- Add YAML policy test cases in
[https://github.com/google/cel-java/pull/375](https://togithub.com/google/cel-java/pull/375)
- Implement YAML parser for policies in
[https://github.com/google/cel-java/pull/377](https://togithub.com/google/cel-java/pull/377)
- Move computing offset location into CelSourceHelper for reuse in
[https://github.com/google/cel-java/pull/379](https://togithub.com/google/cel-java/pull/379)
- Add AstMutator methods to construct cel.bind macro with varInit
containing macros in
[https://github.com/google/cel-java/pull/380](https://togithub.com/google/cel-java/pull/380)
- Add AstMutator methods to construct function calls in
[https://github.com/google/cel-java/pull/381](https://togithub.com/google/cel-java/pull/381)
- Add Policy Compiler in
[https://github.com/google/cel-java/pull/378](https://togithub.com/google/cel-java/pull/378)
- Add factories for policy parser and policy compiler in
[https://github.com/google/cel-java/pull/382](https://togithub.com/google/cel-java/pull/382)
- Add capability to visit custom tags in
[https://github.com/google/cel-java/pull/384](https://togithub.com/google/cel-java/pull/384)
- Pull getIssueString logic into CelIssue in
[https://github.com/google/cel-java/pull/385](https://togithub.com/google/cel-java/pull/385)
- Introduce protobuf message testing to policies in
[https://github.com/google/cel-java/pull/386](https://togithub.com/google/cel-java/pull/386)
- Validate required fields for policy variables in
[https://github.com/google/cel-java/pull/387](https://togithub.com/google/cel-java/pull/387)
- Compute absolute source location correctly for multiline YAML strings
in
[https://github.com/google/cel-java/pull/395](https://togithub.com/google/cel-java/pull/395)
- Make iteration limit configurable for rule composer in
[https://github.com/google/cel-java/pull/393](https://togithub.com/google/cel-java/pull/393)
- Decompose policy compile API into rule compilation and composition in
[https://github.com/google/cel-java/pull/397](https://togithub.com/google/cel-java/pull/397)
- Surface type-mismatch errors in a readable fashion during rule
composition in
[https://github.com/google/cel-java/pull/399](https://togithub.com/google/cel-java/pull/399)

**Full Changelog**:
cel-expr/cel-java@v0.5.2...v0.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/googleapis/sdk-platform-java).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@l46kok
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.