diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3b9c686..6d691ce 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 0f4e928..7b3a7c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/README.md b/README.md index 66606e7..6e59529 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/scripts/pre-push b/scripts/pre-push index 98774d1..b08b9ad 100755 --- a/scripts/pre-push +++ b/scripts/pre-push @@ -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 diff --git a/scripts/yaml-test-eval b/scripts/yaml-test-eval deleted file mode 100755 index 7bc185c..0000000 --- a/scripts/yaml-test-eval +++ /dev/null @@ -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" diff --git a/scripts/yaml-test-parse b/scripts/yaml-test-parse deleted file mode 100755 index d14213e..0000000 --- a/scripts/yaml-test-parse +++ /dev/null @@ -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" diff --git a/tests/opa.passing b/tests/opa.passing index 833babd..013e54d 100644 --- a/tests/opa.passing +++ b/tests/opa.passing @@ -95,6 +95,7 @@ subset toarray topdowndynamicdispatch toset +time trim trimleft trimprefix