Skip to content

Commit 4f329af

Browse files
committed
Adding highlights
Signed-off-by: Johan Fylling <[email protected]>
1 parent cc6be30 commit 4f329af

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

CHANGELOG.md

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,47 @@ project adheres to [Semantic Versioning](http://semver.org/).
55

66
## 0.66.0
77

8+
This release contains a mix of features, performance improvements, and bugfixes.
9+
10+
### Improved Test Reports ([2546](https://github.com/open-policy-agent/opa/issues/2546))
11+
12+
The `opa test` command now includes a new `--var-values` flag that enriches reporting of failed tests with the values and locations for variables in the failing expression.
13+
E.g.:
14+
15+
```
16+
FAILURES
17+
--------------------------------------------------------------------------------
18+
data.test.test_my_policy: FAIL (0ms)
19+
20+
test.rego:8:
21+
x == y + z
22+
| | |
23+
| | 3
24+
| y + z: 5
25+
| y: 2
26+
1
27+
28+
SUMMARY
29+
--------------------------------------------------------------------------------
30+
test.rego:
31+
data.test.test_foo: FAIL (0ms)
32+
--------------------------------------------------------------------------------
33+
FAIL: 1/1
34+
```
35+
36+
Authored by @johanfylling, reported by @grosser.
37+
38+
### Reading stdin in `opa exec` ([#6538](https://github.com/open-policy-agent/opa/issues/6538))
39+
40+
The `opa exec` command now supports reading `input` documents from stdin with the `--stdin-input` (`-I`) flag.
41+
E.g.:
42+
43+
```shell
44+
$ echo '{"user": "alice"}' | opa exec --stdin-input --bundle my_bundle
45+
```
46+
47+
Authored by @colinjlacy, reported by @humbertoc-silva.
48+
849
### Topdown and Rego
950

1051
- ast: Fix blanket "unexpected assign token" error message / usability issue ([#6563](https://github.com/open-policy-agent/opa/issues/6563)) authored by @anderseknert
@@ -18,12 +59,10 @@ project adheres to [Semantic Versioning](http://semver.org/).
1859

1960
- build: Use chainguard images from dockerhub ([#6830](https://github.com/open-policy-agent/opa/pull/6830)) authored by @srenatus
2061
- bundle: Preallocate buffers for file contents. ([#6818](https://github.com/open-policy-agent/opa/pull/6818)) authored by @philipaconrad
21-
- cmd/exec: adds `--stdin-input` (`-I`) flag for input piping or manual entry ([#6538]https://github.com/open-policy-agent/opa/issues/6538) authored by @colinjlacy reported by @humbertoc-silva
2262
- plugins: Reduce locks during decision logging ([#6797](https://github.com/open-policy-agent/opa/pull/6797)) authored by @mjungsbluth
2363
- plugins/rest: Do local map modification in OAuth2 client credentials flow ([#6769](https://github.com/open-policy-agent/opa/issues/6769)) authored and reported by @eubaranov
2464
- loader: Use a better error message when trying to merge non-objects ([#6803](https://github.com/open-policy-agent/opa/issues/6803)) authored by @anderseknert
2565
- server/authorizer: Fix gzip payload handling ([#6804](https://github.com/open-policy-agent/opa/issues/6804)) authored by @philipaconrad reported by @nevumx
26-
- trace+tester: Adding local var values to trace and test report ([2546](https://github.com/open-policy-agent/opa/issues/2546)) authored by @johanfylling reported by @grosser
2766

2867
### Docs, Website, Ecosystem
2968

@@ -32,7 +71,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
3271
- docs: Fix spelling and grammar of `an HTTP` ([#6786](https://github.com/open-policy-agent/opa/pull/6786)) authored by @jdbaldry
3372
- docs/website: Add vs code and zed to ecosystem page ([#6788](https://github.com/open-policy-agent/opa/pull/6788)) authored by @charlieegan3
3473
- docs/website: Add Flipt to the OPA ecosystem ([#6781](https://github.com/open-policy-agent/opa/pull/6781)) authored by @markphelps
35-
- docs/website: Add flipt blog to their ecosystem page ([#6789](https://github.com/open-policy-agent/opa/pull/6789)) authored by @charlieegan3
74+
- docs/website: Add Flipt blog to their ecosystem page ([#6789](https://github.com/open-policy-agent/opa/pull/6789)) authored by @charlieegan3
3675
- docs/website: Revise language SDK content ([#6811](https://github.com/open-policy-agent/opa/pull/6811)) authored by @charlieegan3
3776

3877
### Miscellaneous

0 commit comments

Comments
 (0)