Skip to content

Commit

Permalink
Test with OPA 0.46.1
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwille committed Nov 10, 2022
1 parent 6d1ea30 commit 0b69f01
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sample-policies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Main file from https://github.com/open-policy-agent/opa/tree/main/capabilities

`
.\concat-capabilities.ps1 -Files v0.44.0.json, simple-custom-builtincall.capabilities.json, custom-builtincall.capabilities.json -Destination unittest.capabilities.json
.\concat-capabilities.ps1 -Files v0.46.1.json, simple-custom-builtincall.capabilities.json, custom-builtincall.capabilities.json -Destination unittest.capabilities.json
`

## Step 2: Building WASMs
Expand Down
172 changes: 166 additions & 6 deletions sample-policies/unittest.capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -1149,10 +1149,42 @@
"decl": {
"args": [
{
"type": "string"
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
},
{
"type": "string"
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
}
],
"result": {
Expand All @@ -1166,10 +1198,42 @@
"decl": {
"args": [
{
"type": "string"
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
},
{
"type": "string"
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
}
],
"result": {
Expand Down Expand Up @@ -1207,10 +1271,42 @@
"decl": {
"args": [
{
"type": "string"
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
},
{
"type": "string"
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
}
],
"result": {
Expand Down Expand Up @@ -1290,6 +1386,36 @@
"type": "function"
}
},
{
"name": "graphql.schema_is_valid",
"decl": {
"args": [
{
"of": [
{
"type": "string"
},
{
"dynamic": {
"key": {
"type": "any"
},
"value": {
"type": "any"
}
},
"type": "object"
}
],
"type": "any"
}
],
"result": {
"type": "boolean"
},
"type": "function"
}
},
{
"name": "gt",
"decl": {
Expand Down Expand Up @@ -2563,6 +2689,20 @@
"type": "function"
}
},
{
"name": "net.cidr_is_valid",
"decl": {
"args": [
{
"type": "string"
}
],
"result": {
"type": "boolean"
},
"type": "function"
}
},
{
"name": "net.cidr_merge",
"decl": {
Expand Down Expand Up @@ -3139,6 +3279,26 @@
"type": "function"
}
},
{
"name": "regex.replace",
"decl": {
"args": [
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
}
],
"result": {
"type": "string"
},
"type": "function"
}
},
{
"name": "regex.split",
"decl": {
Expand Down
2 changes: 1 addition & 1 deletion src/Opa.Wasm/docs/PackageReadme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## About

Built and tested against Open Policy Agent v0.43.
Built and tested against Open Policy Agent v0.46.1.

Note: 0.30 and higher changed the target framework to net6.0 (from netstandard2.1) because Wasmtime changed its TFM.

Expand Down

0 comments on commit 0b69f01

Please sign in to comment.