mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-24 17:25:16 -06:00
2cc948d872
- Updated test fixtures and various test fixes. Signed-off-by: Jacob Hochstetler <jacob.hochstetler@gmail.com>
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
# correct namespace+path in inspect output
|
|
exec $OPA inspect a/b/c/bundle
|
|
[!windows] cmp stdout expected_stdout
|
|
[windows] stdout 'a\\b\\c\\bundle\\namespace\\data\.json'
|
|
[windows] stdout 'a\\b\\c\\bundle\\test\.rego'
|
|
! stderr .
|
|
|
|
-- a/b/c/bundle/namespace/data.json --
|
|
{}
|
|
-- a/b/c/bundle/test.rego --
|
|
package test
|
|
|
|
result if input.yay
|
|
-- expected_stdout --
|
|
NAMESPACES:
|
|
┌────────────────┬──────────────────────────────────┐
|
|
│ NAMESPACE │ FILE │
|
|
├────────────────┼──────────────────────────────────┤
|
|
│ data.namespace │ a/b/c/bundle/namespace/data.json │
|
|
│ data.test │ a/b/c/bundle/test.rego │
|
|
└────────────────┴──────────────────────────────────┘
|