Update docs (#136)

* Add `time` to opa.passing. Disable WASM from rust.yml

Bindings will be tested using a separate workflow.
Also remove scripts that are no longer useful

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>

* Remove alpha tag from version

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>

---------

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2024-02-08 06:56:14 -08:00
committed by GitHub
parent d4dcbe7b9e
commit 5fd826d79a
7 changed files with 10 additions and 26 deletions

View File

@@ -36,12 +36,12 @@ jobs:
run: cargo test -r --test aci
- name: Run tests (OPA Conformance)
run: >-
cargo test -r --test opa -- $(tr '\n' ' ' < tests/opa.passing)
cargo test -r --test opa --features opa-testutil -- $(tr '\n' ' ' < tests/opa.passing)
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# - name: Install wasm-pack
# run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Run wasm binding tests
run: |
cd bindings/wasm
wasm-pack test --node -r
# - name: Run wasm binding tests
# run: |
# cd bindings/wasm
# wasm-pack test --node -r

View File

@@ -9,7 +9,7 @@ members = [
[package]
name = "regorus"
description = "A fast, lightweight Rego (OPA policy language) interpreter"
version = "0.1.0-alpha.3"
version = "0.1.0"
edition = "2021"
license-file = "LICENSE"
repository = "https://github.com/microsoft/regorus"

View File

@@ -269,7 +269,6 @@ The following test suites don't pass fully due to mising builtins:
- `regometadatarule`
- `regoparsemodule`
- `rendertemplate`
- `time`
They are captured in the following [github issues](https://github.com/microsoft/regorus/issues?q=is%3Aopen+is%3Aissue+label%3Alib).

View File

@@ -16,5 +16,5 @@ if [ -f Cargo.toml ]; then
fi
# Ensure that OPA conformance tests don't regress.
cargo test -r --test opa -- $(tr '\n' ' ' < tests/opa.passing)
cargo test -r --features opa-testutil --test opa -- $(tr '\n' ' ' < tests/opa.passing)
fi

View File

@@ -1,8 +0,0 @@
#!/bin/bash
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
set -e
yaml=$(realpath -e $1)
RUST_BACKTRACE=1 cargo test interpreter::one_yaml -- --include-ignored --nocapture "$yaml"

View File

@@ -1,8 +0,0 @@
#!/bin/bash
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
set -e
yaml=$(realpath -e $1)
RUST_BACKTRACE=1 cargo test parser::one_yaml -- --include-ignored --nocapture "$yaml"

View File

@@ -95,6 +95,7 @@ subset
toarray
topdowndynamicdispatch
toset
time
trim
trimleft
trimprefix