@voxgig/sdkgen 1.3.8 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/package.json +1 -1
- package/project/.sdk/model/feature/audit.aontu +22 -0
- package/project/.sdk/model/feature/cache.aontu +23 -0
- package/project/.sdk/model/feature/clienttrack.aontu +20 -0
- package/project/.sdk/model/feature/debug.aontu +25 -0
- package/project/.sdk/model/feature/feature-index.aontu +20 -1
- package/project/.sdk/model/feature/idempotency.aontu +21 -0
- package/project/.sdk/model/feature/metrics.aontu +20 -0
- package/project/.sdk/model/feature/netsim.aontu +36 -0
- package/project/.sdk/model/feature/paging.aontu +23 -0
- package/project/.sdk/model/feature/proxy.aontu +23 -0
- package/project/.sdk/model/feature/ratelimit.aontu +21 -0
- package/project/.sdk/model/feature/rbac.aontu +24 -0
- package/project/.sdk/model/feature/retry.aontu +23 -0
- package/project/.sdk/model/feature/streaming.aontu +22 -0
- package/project/.sdk/model/feature/telemetry.aontu +21 -0
- package/project/.sdk/model/feature/timeout.aontu +18 -0
- package/project/.sdk/model/target/c.aontu +37 -0
- package/project/.sdk/model/target/clojure.aontu +36 -0
- package/project/.sdk/model/target/cpp.aontu +35 -0
- package/project/.sdk/model/target/csharp.aontu +35 -0
- package/project/.sdk/model/target/dart.aontu +34 -0
- package/project/.sdk/model/target/elixir.aontu +33 -0
- package/project/.sdk/model/target/haskell.aontu +47 -0
- package/project/.sdk/model/target/java.aontu +37 -0
- package/project/.sdk/model/target/kotlin.aontu +37 -0
- package/project/.sdk/model/target/ocaml.aontu +36 -0
- package/project/.sdk/model/target/perl.aontu +37 -0
- package/project/.sdk/model/target/rust.aontu +37 -0
- package/project/.sdk/model/target/scala.aontu +37 -0
- package/project/.sdk/model/target/swift.aontu +35 -0
- package/project/.sdk/model/target/zig.aontu +27 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +109 -0
- package/project/.sdk/src/cmp/c/EntityBase_c.ts +61 -0
- package/project/.sdk/src/cmp/c/EntityOperation_c.ts +41 -0
- package/project/.sdk/src/cmp/c/Entity_c.ts +85 -0
- package/project/.sdk/src/cmp/c/Gitignore_c.ts +29 -0
- package/project/.sdk/src/cmp/c/MainEntity_c.ts +31 -0
- package/project/.sdk/src/cmp/c/Main_c.ts +83 -0
- package/project/.sdk/src/cmp/c/Package_c.ts +17 -0
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +227 -0
- package/project/.sdk/src/cmp/c/TestEntity_c.ts +82 -0
- package/project/.sdk/src/cmp/c/Test_c.ts +51 -0
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +265 -0
- package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +27 -0
- package/project/.sdk/src/cmp/c/fragment/EntityListOp.fragment.c +24 -0
- package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +29 -0
- package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +29 -0
- package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +29 -0
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +220 -0
- package/project/.sdk/src/cmp/c/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/c/utility_c.ts +102 -0
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +94 -0
- package/project/.sdk/src/cmp/clojure/EntityOperation_clojure.ts +35 -0
- package/project/.sdk/src/cmp/clojure/Entity_clojure.ts +77 -0
- package/project/.sdk/src/cmp/clojure/Gitignore_clojure.ts +28 -0
- package/project/.sdk/src/cmp/clojure/MainEntity_clojure.ts +21 -0
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +88 -0
- package/project/.sdk/src/cmp/clojure/Package_clojure.ts +41 -0
- package/project/.sdk/src/cmp/clojure/Test_clojure.ts +120 -0
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +158 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityCreateOp.fragment.clj +14 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityListOp.fragment.clj +17 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/fragment/EntityUpdateOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/clojure/utility_clojure.ts +82 -0
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +136 -0
- package/project/.sdk/src/cmp/cpp/EntityBase_cpp.ts +51 -0
- package/project/.sdk/src/cmp/cpp/EntityOperation_cpp.ts +37 -0
- package/project/.sdk/src/cmp/cpp/Entity_cpp.ts +78 -0
- package/project/.sdk/src/cmp/cpp/Gitignore_cpp.ts +27 -0
- package/project/.sdk/src/cmp/cpp/MainEntity_cpp.ts +35 -0
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +84 -0
- package/project/.sdk/src/cmp/cpp/Package_cpp.ts +17 -0
- package/project/.sdk/src/cmp/cpp/TestDirect_cpp.ts +258 -0
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +454 -0
- package/project/.sdk/src/cmp/cpp/Test_cpp.ts +36 -0
- package/project/.sdk/src/cmp/cpp/fragment/Entity.fragment.cpp +40 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +22 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityListOp.fragment.cpp +21 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +25 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +21 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +22 -0
- package/project/.sdk/src/cmp/cpp/fragment/Main.fragment.cpp +43 -0
- package/project/.sdk/src/cmp/cpp/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/cpp/utility_cpp.ts +83 -0
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +134 -0
- package/project/.sdk/src/cmp/csharp/EntityBase_csharp.ts +39 -0
- package/project/.sdk/src/cmp/csharp/EntityOperation_csharp.ts +41 -0
- package/project/.sdk/src/cmp/csharp/Entity_csharp.ts +85 -0
- package/project/.sdk/src/cmp/csharp/Gitignore_csharp.ts +38 -0
- package/project/.sdk/src/cmp/csharp/MainEntity_csharp.ts +36 -0
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +91 -0
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +101 -0
- package/project/.sdk/src/cmp/csharp/SdkError_csharp.ts +42 -0
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +560 -0
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +618 -0
- package/project/.sdk/src/cmp/csharp/Test_csharp.ts +38 -0
- package/project/.sdk/src/cmp/csharp/fragment/Entity.fragment.cs +28 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +268 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityCreateOp.fragment.cs +37 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityListOp.fragment.cs +35 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityLoadOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityRemoveOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityUpdateOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +278 -0
- package/project/.sdk/src/cmp/csharp/fragment/SdkError.fragment.cs +21 -0
- package/project/.sdk/src/cmp/csharp/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/csharp/utility_csharp.ts +143 -0
- package/project/.sdk/src/cmp/dart/Config_dart.ts +99 -0
- package/project/.sdk/src/cmp/dart/EntityBase_dart.ts +34 -0
- package/project/.sdk/src/cmp/dart/EntityOperation_dart.ts +43 -0
- package/project/.sdk/src/cmp/dart/EntityTypes_dart.ts +190 -0
- package/project/.sdk/src/cmp/dart/Entity_dart.ts +79 -0
- package/project/.sdk/src/cmp/dart/Gitignore_dart.ts +34 -0
- package/project/.sdk/src/cmp/dart/MainEntity_dart.ts +33 -0
- package/project/.sdk/src/cmp/dart/Main_dart.ts +105 -0
- package/project/.sdk/src/cmp/dart/Package_dart.ts +81 -0
- package/project/.sdk/src/cmp/dart/SdkError_dart.ts +42 -0
- package/project/.sdk/src/cmp/dart/TestDirect_dart.ts +498 -0
- package/project/.sdk/src/cmp/dart/TestEntity_dart.ts +552 -0
- package/project/.sdk/src/cmp/dart/Test_dart.ts +105 -0
- package/project/.sdk/src/cmp/dart/fragment/Config.fragment.dart +48 -0
- package/project/.sdk/src/cmp/dart/fragment/Direct.test.fragment.dart +25 -0
- package/project/.sdk/src/cmp/dart/fragment/Entity.fragment.dart +31 -0
- package/project/.sdk/src/cmp/dart/fragment/Entity.test.fragment.dart +67 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityBase.fragment.dart +285 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityCreateOp.fragment.dart +90 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityListOp.fragment.dart +90 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityLoadOp.fragment.dart +94 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityRemoveOp.fragment.dart +94 -0
- package/project/.sdk/src/cmp/dart/fragment/EntityUpdateOp.fragment.dart +94 -0
- package/project/.sdk/src/cmp/dart/fragment/Main.fragment.dart +240 -0
- package/project/.sdk/src/cmp/dart/fragment/SdkError.fragment.dart +18 -0
- package/project/.sdk/src/cmp/dart/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/dart/utility_dart.ts +86 -0
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +101 -0
- package/project/.sdk/src/cmp/elixir/EntityOperation_elixir.ts +27 -0
- package/project/.sdk/src/cmp/elixir/Entity_elixir.ts +54 -0
- package/project/.sdk/src/cmp/elixir/Gitignore_elixir.ts +28 -0
- package/project/.sdk/src/cmp/elixir/MainEntity_elixir.ts +26 -0
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +124 -0
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +64 -0
- package/project/.sdk/src/cmp/elixir/TestDirect_elixir.ts +95 -0
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +115 -0
- package/project/.sdk/src/cmp/elixir/Test_elixir.ts +47 -0
- package/project/.sdk/src/cmp/elixir/fragment/Entity.fragment.ex +37 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityCreateOp.fragment.ex +28 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityListOp.fragment.ex +30 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityLoadOp.fragment.ex +32 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityRemoveOp.fragment.ex +32 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityUpdateOp.fragment.ex +30 -0
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +218 -0
- package/project/.sdk/src/cmp/elixir/fragment/Pipeline.fragment.ex +62 -0
- package/project/.sdk/src/cmp/elixir/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/elixir/utility_elixir.ts +85 -0
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +62 -0
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +133 -0
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -8
- package/project/.sdk/src/cmp/haskell/Config_haskell.ts +115 -0
- package/project/.sdk/src/cmp/haskell/Entity_haskell.ts +13 -0
- package/project/.sdk/src/cmp/haskell/Gitignore_haskell.ts +27 -0
- package/project/.sdk/src/cmp/haskell/Main_haskell.ts +123 -0
- package/project/.sdk/src/cmp/haskell/Package_haskell.ts +58 -0
- package/project/.sdk/src/cmp/haskell/Test_haskell.ts +263 -0
- package/project/.sdk/src/cmp/haskell/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/haskell/utility_haskell.ts +105 -0
- package/project/.sdk/src/cmp/java/Config_java.ts +138 -0
- package/project/.sdk/src/cmp/java/EntityBase_java.ts +50 -0
- package/project/.sdk/src/cmp/java/EntityOperation_java.ts +48 -0
- package/project/.sdk/src/cmp/java/Entity_java.ts +95 -0
- package/project/.sdk/src/cmp/java/Gitignore_java.ts +37 -0
- package/project/.sdk/src/cmp/java/MainEntity_java.ts +41 -0
- package/project/.sdk/src/cmp/java/Main_java.ts +100 -0
- package/project/.sdk/src/cmp/java/Package_java.ts +126 -0
- package/project/.sdk/src/cmp/java/SdkError_java.ts +49 -0
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +509 -0
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +599 -0
- package/project/.sdk/src/cmp/java/Test_java.ts +42 -0
- package/project/.sdk/src/cmp/java/fragment/Entity.fragment.java +35 -0
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +235 -0
- package/project/.sdk/src/cmp/java/fragment/EntityCreateOp.fragment.java +42 -0
- package/project/.sdk/src/cmp/java/fragment/EntityListOp.fragment.java +39 -0
- package/project/.sdk/src/cmp/java/fragment/EntityLoadOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/fragment/EntityRemoveOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/fragment/EntityUpdateOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/fragment/Main.fragment.java +34 -0
- package/project/.sdk/src/cmp/java/fragment/SdkError.fragment.java +27 -0
- package/project/.sdk/src/cmp/java/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/java/utility_java.ts +102 -0
- package/project/.sdk/src/cmp/js/Config_js.ts +4 -2
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +1 -0
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +32 -1
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +81 -0
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +10 -5
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +128 -0
- package/project/.sdk/src/cmp/kotlin/EntityBase_kotlin.ts +50 -0
- package/project/.sdk/src/cmp/kotlin/EntityOperation_kotlin.ts +48 -0
- package/project/.sdk/src/cmp/kotlin/Entity_kotlin.ts +93 -0
- package/project/.sdk/src/cmp/kotlin/Gitignore_kotlin.ts +41 -0
- package/project/.sdk/src/cmp/kotlin/MainEntity_kotlin.ts +40 -0
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +94 -0
- package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +110 -0
- package/project/.sdk/src/cmp/kotlin/SdkError_kotlin.ts +48 -0
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +479 -0
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +567 -0
- package/project/.sdk/src/cmp/kotlin/Test_kotlin.ts +42 -0
- package/project/.sdk/src/cmp/kotlin/fragment/Entity.fragment.kt +28 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +195 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityCreateOp.fragment.kt +37 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityListOp.fragment.kt +34 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityLoadOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityRemoveOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityUpdateOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/fragment/Main.fragment.kt +28 -0
- package/project/.sdk/src/cmp/kotlin/fragment/SdkError.fragment.kt +24 -0
- package/project/.sdk/src/cmp/kotlin/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +101 -0
- package/project/.sdk/src/cmp/lua/Entity_lua.ts +7 -9
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +55 -0
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +137 -0
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +9 -6
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +114 -0
- package/project/.sdk/src/cmp/ocaml/EntityOperation_ocaml.ts +63 -0
- package/project/.sdk/src/cmp/ocaml/Entity_ocaml.ts +152 -0
- package/project/.sdk/src/cmp/ocaml/Gitignore_ocaml.ts +37 -0
- package/project/.sdk/src/cmp/ocaml/MainEntity_ocaml.ts +28 -0
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +111 -0
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +47 -0
- package/project/.sdk/src/cmp/ocaml/SdkError_ocaml.ts +42 -0
- package/project/.sdk/src/cmp/ocaml/TestDirect_ocaml.ts +47 -0
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +130 -0
- package/project/.sdk/src/cmp/ocaml/Test_ocaml.ts +35 -0
- package/project/.sdk/src/cmp/ocaml/fragment/RunOp.fragment.ml +32 -0
- package/project/.sdk/src/cmp/ocaml/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +129 -0
- package/project/.sdk/src/cmp/perl/Config_perl.ts +127 -0
- package/project/.sdk/src/cmp/perl/EntityOperation_perl.ts +42 -0
- package/project/.sdk/src/cmp/perl/Entity_perl.ts +84 -0
- package/project/.sdk/src/cmp/perl/Gitignore_perl.ts +32 -0
- package/project/.sdk/src/cmp/perl/MainEntity_perl.ts +34 -0
- package/project/.sdk/src/cmp/perl/Main_perl.ts +140 -0
- package/project/.sdk/src/cmp/perl/Package_perl.ts +63 -0
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +433 -0
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +515 -0
- package/project/.sdk/src/cmp/perl/Test_perl.ts +54 -0
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +235 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityCreateOp.fragment.pm +31 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityListOp.fragment.pm +43 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +34 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +32 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityUpdateOp.fragment.pm +32 -0
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +263 -0
- package/project/.sdk/src/cmp/perl/fragment/SdkError.fragment.pm +27 -0
- package/project/.sdk/src/cmp/perl/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/perl/utility_perl.ts +30 -0
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +53 -0
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +124 -0
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +13 -6
- package/project/.sdk/src/cmp/py/Entity_py.ts +8 -9
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +48 -0
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +135 -28
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +9 -6
- package/project/.sdk/src/cmp/rb/Entity_rb.ts +8 -9
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +4 -1
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +50 -0
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +122 -23
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +9 -6
- package/project/.sdk/src/cmp/rust/Config_rust.ts +118 -0
- package/project/.sdk/src/cmp/rust/EntityBase_rust.ts +59 -0
- package/project/.sdk/src/cmp/rust/EntityOperation_rust.ts +44 -0
- package/project/.sdk/src/cmp/rust/Entity_rust.ts +94 -0
- package/project/.sdk/src/cmp/rust/Gitignore_rust.ts +29 -0
- package/project/.sdk/src/cmp/rust/MainEntity_rust.ts +37 -0
- package/project/.sdk/src/cmp/rust/Main_rust.ts +146 -0
- package/project/.sdk/src/cmp/rust/Package_rust.ts +80 -0
- package/project/.sdk/src/cmp/rust/SdkError_rust.ts +42 -0
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +448 -0
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +635 -0
- package/project/.sdk/src/cmp/rust/Test_rust.ts +51 -0
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +288 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +29 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +26 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +35 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityRemoveOp.fragment.rs +35 -0
- package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +35 -0
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +296 -0
- package/project/.sdk/src/cmp/rust/fragment/SdkError.fragment.rs +34 -0
- package/project/.sdk/src/cmp/rust/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/rust/utility_rust.ts +104 -0
- package/project/.sdk/src/cmp/scala/Config_scala.ts +126 -0
- package/project/.sdk/src/cmp/scala/EntityBase_scala.ts +50 -0
- package/project/.sdk/src/cmp/scala/EntityOperation_scala.ts +46 -0
- package/project/.sdk/src/cmp/scala/Entity_scala.ts +87 -0
- package/project/.sdk/src/cmp/scala/Gitignore_scala.ts +31 -0
- package/project/.sdk/src/cmp/scala/MainEntity_scala.ts +40 -0
- package/project/.sdk/src/cmp/scala/Main_scala.ts +93 -0
- package/project/.sdk/src/cmp/scala/Package_scala.ts +22 -0
- package/project/.sdk/src/cmp/scala/TestDirect_scala.ts +233 -0
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +397 -0
- package/project/.sdk/src/cmp/scala/Test_scala.ts +93 -0
- package/project/.sdk/src/cmp/scala/fragment/Entity.fragment.scala +24 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +169 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityCreateOp.fragment.scala +32 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityListOp.fragment.scala +28 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityLoadOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityRemoveOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityUpdateOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/fragment/Main.fragment.scala +27 -0
- package/project/.sdk/src/cmp/scala/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/scala/utility_scala.ts +99 -0
- package/project/.sdk/src/cmp/swift/Config_swift.ts +127 -0
- package/project/.sdk/src/cmp/swift/EntityBase_swift.ts +38 -0
- package/project/.sdk/src/cmp/swift/EntityOperation_swift.ts +39 -0
- package/project/.sdk/src/cmp/swift/Entity_swift.ts +86 -0
- package/project/.sdk/src/cmp/swift/Gitignore_swift.ts +32 -0
- package/project/.sdk/src/cmp/swift/MainEntity_swift.ts +35 -0
- package/project/.sdk/src/cmp/swift/Main_swift.ts +94 -0
- package/project/.sdk/src/cmp/swift/Package_swift.ts +66 -0
- package/project/.sdk/src/cmp/swift/SdkError_swift.ts +41 -0
- package/project/.sdk/src/cmp/swift/TestDirect_swift.ts +84 -0
- package/project/.sdk/src/cmp/swift/TestEntity_swift.ts +84 -0
- package/project/.sdk/src/cmp/swift/Test_swift.ts +39 -0
- package/project/.sdk/src/cmp/swift/fragment/Entity.fragment.swift +23 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +202 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityCreateOp.fragment.swift +23 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityListOp.fragment.swift +21 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityLoadOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityRemoveOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityUpdateOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +211 -0
- package/project/.sdk/src/cmp/swift/fragment/SdkError.fragment.swift +22 -0
- package/project/.sdk/src/cmp/swift/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/swift/utility_swift.ts +76 -0
- package/project/.sdk/src/cmp/ts/Config_ts.ts +4 -2
- package/project/.sdk/src/cmp/ts/Package_ts.ts +12 -0
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +8 -0
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +81 -0
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +10 -5
- package/project/.sdk/src/cmp/zig/Config_zig.ts +113 -0
- package/project/.sdk/src/cmp/zig/EntityOperation_zig.ts +39 -0
- package/project/.sdk/src/cmp/zig/Entity_zig.ts +89 -0
- package/project/.sdk/src/cmp/zig/Gitignore_zig.ts +27 -0
- package/project/.sdk/src/cmp/zig/MainEntity_zig.ts +38 -0
- package/project/.sdk/src/cmp/zig/Main_zig.ts +78 -0
- package/project/.sdk/src/cmp/zig/Test_zig.ts +114 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +278 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityCreateOp.fragment.zig +24 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityListOp.fragment.zig +21 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityLoadOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityRemoveOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/EntityUpdateOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +258 -0
- package/project/.sdk/src/cmp/zig/tsconfig.json +15 -0
- package/project/.sdk/src/cmp/zig/utility_zig.ts +95 -0
- package/project/.sdk/tm/c/LICENSE +22 -0
- package/project/.sdk/tm/c/Makefile +50 -0
- package/project/.sdk/tm/c/VERSION +1 -0
- package/project/.sdk/tm/c/core/context.c +145 -0
- package/project/.sdk/tm/c/core/control.c +19 -0
- package/project/.sdk/tm/c/core/error.c +24 -0
- package/project/.sdk/tm/c/core/helpers.c +228 -0
- package/project/.sdk/tm/c/core/operation.c +34 -0
- package/project/.sdk/tm/c/core/point.c +49 -0
- package/project/.sdk/tm/c/core/response.c +29 -0
- package/project/.sdk/tm/c/core/result.c +60 -0
- package/project/.sdk/tm/c/core/sdk.h +514 -0
- package/project/.sdk/tm/c/core/spec.c +94 -0
- package/project/.sdk/tm/c/core/utility.c +74 -0
- package/project/.sdk/tm/c/feature/audit.c +134 -0
- package/project/.sdk/tm/c/feature/base.c +40 -0
- package/project/.sdk/tm/c/feature/cache.c +262 -0
- package/project/.sdk/tm/c/feature/clienttrack.c +144 -0
- package/project/.sdk/tm/c/feature/debug.c +230 -0
- package/project/.sdk/tm/c/feature/idempotency.c +164 -0
- package/project/.sdk/tm/c/feature/log.c +79 -0
- package/project/.sdk/tm/c/feature/metrics.c +177 -0
- package/project/.sdk/tm/c/feature/netsim.c +211 -0
- package/project/.sdk/tm/c/feature/paging.c +223 -0
- package/project/.sdk/tm/c/feature/proxy.c +249 -0
- package/project/.sdk/tm/c/feature/ratelimit.c +124 -0
- package/project/.sdk/tm/c/feature/rbac.c +167 -0
- package/project/.sdk/tm/c/feature/retry.c +164 -0
- package/project/.sdk/tm/c/feature/streaming.c +147 -0
- package/project/.sdk/tm/c/feature/support.c +115 -0
- package/project/.sdk/tm/c/feature/telemetry.c +205 -0
- package/project/.sdk/tm/c/feature/test.c +385 -0
- package/project/.sdk/tm/c/feature/timeout.c +106 -0
- package/project/.sdk/tm/c/src/feature/README.md +1 -0
- package/project/.sdk/tm/c/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/c/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/c/tests/ctest.h +58 -0
- package/project/.sdk/tm/c/tests/feature_harness.h +441 -0
- package/project/.sdk/tm/c/tests/feature_test.c +1210 -0
- package/project/.sdk/tm/c/tests/pipeline_test.c +561 -0
- package/project/.sdk/tm/c/tests/primary_utility_test.c +573 -0
- package/project/.sdk/tm/c/tests/runner.h +274 -0
- package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +89 -0
- package/project/.sdk/tm/c/tests/struct_corpus_test.c +939 -0
- package/project/.sdk/tm/c/utility/clean.c +20 -0
- package/project/.sdk/tm/c/utility/done.c +26 -0
- package/project/.sdk/tm/c/utility/feature_add.c +42 -0
- package/project/.sdk/tm/c/utility/feature_hook.c +22 -0
- package/project/.sdk/tm/c/utility/feature_init.c +22 -0
- package/project/.sdk/tm/c/utility/fetcher.c +78 -0
- package/project/.sdk/tm/c/utility/jsonparse.c +11 -0
- package/project/.sdk/tm/c/utility/make_context.c +7 -0
- package/project/.sdk/tm/c/utility/make_error.c +66 -0
- package/project/.sdk/tm/c/utility/make_fetch_def.c +43 -0
- package/project/.sdk/tm/c/utility/make_options.c +179 -0
- package/project/.sdk/tm/c/utility/make_point.c +109 -0
- package/project/.sdk/tm/c/utility/make_request.c +62 -0
- package/project/.sdk/tm/c/utility/make_response.c +45 -0
- package/project/.sdk/tm/c/utility/make_result.c +61 -0
- package/project/.sdk/tm/c/utility/make_spec.c +60 -0
- package/project/.sdk/tm/c/utility/make_url.c +88 -0
- package/project/.sdk/tm/c/utility/param.c +58 -0
- package/project/.sdk/tm/c/utility/prepare_auth.c +65 -0
- package/project/.sdk/tm/c/utility/prepare_body.c +12 -0
- package/project/.sdk/tm/c/utility/prepare_headers.c +13 -0
- package/project/.sdk/tm/c/utility/prepare_method.c +16 -0
- package/project/.sdk/tm/c/utility/prepare_params.c +30 -0
- package/project/.sdk/tm/c/utility/prepare_path.c +17 -0
- package/project/.sdk/tm/c/utility/prepare_query.c +37 -0
- package/project/.sdk/tm/c/utility/result_basic.c +43 -0
- package/project/.sdk/tm/c/utility/result_body.c +17 -0
- package/project/.sdk/tm/c/utility/result_headers.c +17 -0
- package/project/.sdk/tm/c/utility/struct/inject.c +703 -0
- package/project/.sdk/tm/c/utility/struct/re_util.c +221 -0
- package/project/.sdk/tm/c/utility/struct/regex.c +1103 -0
- package/project/.sdk/tm/c/utility/struct/regex.h +84 -0
- package/project/.sdk/tm/c/utility/struct/transform.c +2224 -0
- package/project/.sdk/tm/c/utility/struct/utility.c +1971 -0
- package/project/.sdk/tm/c/utility/struct/value.c +640 -0
- package/project/.sdk/tm/c/utility/struct/value.h +273 -0
- package/project/.sdk/tm/c/utility/struct/value_io.c +366 -0
- package/project/.sdk/tm/c/utility/struct/value_io.h +31 -0
- package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +216 -0
- package/project/.sdk/tm/c/utility/transform_request.c +21 -0
- package/project/.sdk/tm/c/utility/transform_response.c +36 -0
- package/project/.sdk/tm/clojure/LICENSE +22 -0
- package/project/.sdk/tm/clojure/Makefile +15 -0
- package/project/.sdk/tm/clojure/VERSION +1 -0
- package/project/.sdk/tm/clojure/src/feature/README.md +1 -0
- package/project/.sdk/tm/clojure/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/clojure/src/sdk/client.clj +119 -0
- package/project/.sdk/tm/clojure/src/sdk/core.clj +901 -0
- package/project/.sdk/tm/clojure/src/sdk/features.clj +1027 -0
- package/project/.sdk/tm/clojure/src/voxgig/struct.clj +1734 -0
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +596 -0
- package/project/.sdk/tm/clojure/test/sdk/test/netsim.clj +42 -0
- package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +314 -0
- package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +52 -0
- package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +337 -0
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +39 -0
- package/project/.sdk/tm/clojure/test/sdk/testutil.clj +35 -0
- package/project/.sdk/tm/cpp/LICENSE +22 -0
- package/project/.sdk/tm/cpp/Makefile +36 -0
- package/project/.sdk/tm/cpp/VERSION +1 -0
- package/project/.sdk/tm/cpp/core/sdk.hpp +16 -0
- package/project/.sdk/tm/cpp/core/struct.hpp +225 -0
- package/project/.sdk/tm/cpp/core/types.hpp +1105 -0
- package/project/.sdk/tm/cpp/feature/audit.hpp +107 -0
- package/project/.sdk/tm/cpp/feature/base.hpp +34 -0
- package/project/.sdk/tm/cpp/feature/cache.hpp +189 -0
- package/project/.sdk/tm/cpp/feature/clienttrack.hpp +105 -0
- package/project/.sdk/tm/cpp/feature/debug.hpp +157 -0
- package/project/.sdk/tm/cpp/feature/idempotency.hpp +119 -0
- package/project/.sdk/tm/cpp/feature/log.hpp +90 -0
- package/project/.sdk/tm/cpp/feature/metrics.hpp +103 -0
- package/project/.sdk/tm/cpp/feature/netsim.hpp +152 -0
- package/project/.sdk/tm/cpp/feature/options.hpp +156 -0
- package/project/.sdk/tm/cpp/feature/paging.hpp +156 -0
- package/project/.sdk/tm/cpp/feature/proxy.hpp +145 -0
- package/project/.sdk/tm/cpp/feature/ratelimit.hpp +87 -0
- package/project/.sdk/tm/cpp/feature/rbac.hpp +108 -0
- package/project/.sdk/tm/cpp/feature/retry.hpp +130 -0
- package/project/.sdk/tm/cpp/feature/streaming.hpp +98 -0
- package/project/.sdk/tm/cpp/feature/telemetry.hpp +139 -0
- package/project/.sdk/tm/cpp/feature/test.hpp +289 -0
- package/project/.sdk/tm/cpp/feature/timeout.hpp +88 -0
- package/project/.sdk/tm/cpp/src/feature/README.md +1 -0
- package/project/.sdk/tm/cpp/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +57 -0
- package/project/.sdk/tm/cpp/test/exists_test.cpp +16 -0
- package/project/.sdk/tm/cpp/test/feature_test.cpp +911 -0
- package/project/.sdk/tm/cpp/test/harness.hpp +344 -0
- package/project/.sdk/tm/cpp/test/netsim_test.cpp +48 -0
- package/project/.sdk/tm/cpp/test/pipeline_test.cpp +526 -0
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +841 -0
- package/project/.sdk/tm/cpp/test/runner_support.hpp +437 -0
- package/project/.sdk/tm/cpp/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +494 -0
- package/project/.sdk/tm/cpp/test/struct_runner.hpp +314 -0
- package/project/.sdk/tm/cpp/test/testlib.hpp +82 -0
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +1054 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +525 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +315 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +3379 -0
- package/project/.sdk/tm/csharp/LICENSE +22 -0
- package/project/.sdk/tm/csharp/Makefile +43 -0
- package/project/.sdk/tm/csharp/VERSION +1 -0
- package/project/.sdk/tm/csharp/core/Context.cs +257 -0
- package/project/.sdk/tm/csharp/core/Control.cs +17 -0
- package/project/.sdk/tm/csharp/core/Helpers.cs +61 -0
- package/project/.sdk/tm/csharp/core/Operation.cs +51 -0
- package/project/.sdk/tm/csharp/core/Point.cs +68 -0
- package/project/.sdk/tm/csharp/core/Response.cs +45 -0
- package/project/.sdk/tm/csharp/core/Result.cs +63 -0
- package/project/.sdk/tm/csharp/core/Spec.cs +81 -0
- package/project/.sdk/tm/csharp/core/Types.cs +21 -0
- package/project/.sdk/tm/csharp/core/Utility.cs +88 -0
- package/project/.sdk/tm/csharp/feature/AuditFeature.cs +116 -0
- package/project/.sdk/tm/csharp/feature/BaseFeature.cs +39 -0
- package/project/.sdk/tm/csharp/feature/CacheFeature.cs +186 -0
- package/project/.sdk/tm/csharp/feature/ClienttrackFeature.cs +103 -0
- package/project/.sdk/tm/csharp/feature/DebugFeature.cs +157 -0
- package/project/.sdk/tm/csharp/feature/FeatureOptions.cs +197 -0
- package/project/.sdk/tm/csharp/feature/IdempotencyFeature.cs +97 -0
- package/project/.sdk/tm/csharp/feature/LogFeature.cs +109 -0
- package/project/.sdk/tm/csharp/feature/MetricsFeature.cs +117 -0
- package/project/.sdk/tm/csharp/feature/NetsimFeature.cs +200 -0
- package/project/.sdk/tm/csharp/feature/PagingFeature.cs +187 -0
- package/project/.sdk/tm/csharp/feature/ProxyFeature.cs +138 -0
- package/project/.sdk/tm/csharp/feature/RatelimitFeature.cs +89 -0
- package/project/.sdk/tm/csharp/feature/RbacFeature.cs +124 -0
- package/project/.sdk/tm/csharp/feature/RetryFeature.cs +174 -0
- package/project/.sdk/tm/csharp/feature/StreamingFeature.cs +93 -0
- package/project/.sdk/tm/csharp/feature/TelemetryFeature.cs +145 -0
- package/project/.sdk/tm/csharp/feature/TestFeature.cs +368 -0
- package/project/.sdk/tm/csharp/feature/TimeoutFeature.cs +69 -0
- package/project/.sdk/tm/csharp/src/feature/README.md +1 -0
- package/project/.sdk/tm/csharp/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/csharp/test/CustomUtilityTest.cs +51 -0
- package/project/.sdk/tm/csharp/test/ExistsTest.cs +17 -0
- package/project/.sdk/tm/csharp/test/FeatureTest.cs +1653 -0
- package/project/.sdk/tm/csharp/test/NetsimTest.cs +67 -0
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +605 -0
- package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +957 -0
- package/project/.sdk/tm/csharp/test/Runner.cs +626 -0
- package/project/.sdk/tm/csharp/test/StructRunner.cs +276 -0
- package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +1273 -0
- package/project/.sdk/tm/csharp/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/csharp/utility/Clean.cs +11 -0
- package/project/.sdk/tm/csharp/utility/Done.cs +28 -0
- package/project/.sdk/tm/csharp/utility/FeatureAdd.cs +54 -0
- package/project/.sdk/tm/csharp/utility/FeatureHook.cs +35 -0
- package/project/.sdk/tm/csharp/utility/FeatureInit.cs +28 -0
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +181 -0
- package/project/.sdk/tm/csharp/utility/MakeContext.cs +11 -0
- package/project/.sdk/tm/csharp/utility/MakeError.cs +69 -0
- package/project/.sdk/tm/csharp/utility/MakeFetchDef.cs +38 -0
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +203 -0
- package/project/.sdk/tm/csharp/utility/MakePoint.cs +127 -0
- package/project/.sdk/tm/csharp/utility/MakeRequest.cs +87 -0
- package/project/.sdk/tm/csharp/utility/MakeResponse.cs +55 -0
- package/project/.sdk/tm/csharp/utility/MakeResult.cs +64 -0
- package/project/.sdk/tm/csharp/utility/MakeSpec.cs +64 -0
- package/project/.sdk/tm/csharp/utility/MakeUrl.cs +54 -0
- package/project/.sdk/tm/csharp/utility/Param.cs +67 -0
- package/project/.sdk/tm/csharp/utility/PrepareAuth.cs +54 -0
- package/project/.sdk/tm/csharp/utility/PrepareBody.cs +19 -0
- package/project/.sdk/tm/csharp/utility/PrepareHeaders.cs +22 -0
- package/project/.sdk/tm/csharp/utility/PrepareMethod.cs +22 -0
- package/project/.sdk/tm/csharp/utility/PrepareParams.cs +38 -0
- package/project/.sdk/tm/csharp/utility/PreparePath.cs +18 -0
- package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +40 -0
- package/project/.sdk/tm/csharp/utility/Register.cs +41 -0
- package/project/.sdk/tm/csharp/utility/ResultBasic.cs +39 -0
- package/project/.sdk/tm/csharp/utility/ResultBody.cs +22 -0
- package/project/.sdk/tm/csharp/utility/ResultHeaders.cs +26 -0
- package/project/.sdk/tm/csharp/utility/TransformRequest.cs +39 -0
- package/project/.sdk/tm/csharp/utility/TransformResponse.cs +53 -0
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +3582 -0
- package/project/.sdk/tm/dart/LICENSE +22 -0
- package/project/.sdk/tm/dart/Makefile +50 -0
- package/project/.sdk/tm/dart/lib/Context.dart +150 -0
- package/project/.sdk/tm/dart/lib/Control.dart +15 -0
- package/project/.sdk/tm/dart/lib/Operation.dart +31 -0
- package/project/.sdk/tm/dart/lib/Point.dart +43 -0
- package/project/.sdk/tm/dart/lib/Response.dart +32 -0
- package/project/.sdk/tm/dart/lib/Result.dart +39 -0
- package/project/.sdk/tm/dart/lib/Spec.dart +49 -0
- package/project/.sdk/tm/dart/lib/feature/audit/AuditFeature.dart +103 -0
- package/project/.sdk/tm/dart/lib/feature/base/BaseFeature.dart +76 -0
- package/project/.sdk/tm/dart/lib/feature/cache/CacheFeature.dart +152 -0
- package/project/.sdk/tm/dart/lib/feature/clienttrack/ClienttrackFeature.dart +104 -0
- package/project/.sdk/tm/dart/lib/feature/debug/DebugFeature.dart +153 -0
- package/project/.sdk/tm/dart/lib/feature/idempotency/IdempotencyFeature.dart +92 -0
- package/project/.sdk/tm/dart/lib/feature/log/LogFeature.dart +85 -0
- package/project/.sdk/tm/dart/lib/feature/metrics/MetricsFeature.dart +103 -0
- package/project/.sdk/tm/dart/lib/feature/netsim/NetsimFeature.dart +186 -0
- package/project/.sdk/tm/dart/lib/feature/paging/PagingFeature.dart +145 -0
- package/project/.sdk/tm/dart/lib/feature/proxy/ProxyFeature.dart +118 -0
- package/project/.sdk/tm/dart/lib/feature/ratelimit/RatelimitFeature.dart +103 -0
- package/project/.sdk/tm/dart/lib/feature/rbac/RbacFeature.dart +121 -0
- package/project/.sdk/tm/dart/lib/feature/retry/RetryFeature.dart +155 -0
- package/project/.sdk/tm/dart/lib/feature/streaming/StreamingFeature.dart +97 -0
- package/project/.sdk/tm/dart/lib/feature/telemetry/TelemetryFeature.dart +136 -0
- package/project/.sdk/tm/dart/lib/feature/test/TestFeature.dart +270 -0
- package/project/.sdk/tm/dart/lib/feature/timeout/TimeoutFeature.dart +104 -0
- package/project/.sdk/tm/dart/lib/utility/CleanUtility.dart +12 -0
- package/project/.sdk/tm/dart/lib/utility/DoneUtility.dart +18 -0
- package/project/.sdk/tm/dart/lib/utility/ErrUtility.dart +46 -0
- package/project/.sdk/tm/dart/lib/utility/FeatureAddUtility.dart +35 -0
- package/project/.sdk/tm/dart/lib/utility/FeatureHookUtility.dart +20 -0
- package/project/.sdk/tm/dart/lib/utility/FeatureInitUtility.dart +9 -0
- package/project/.sdk/tm/dart/lib/utility/FetcherUtility.dart +95 -0
- package/project/.sdk/tm/dart/lib/utility/MakeContextUtility.dart +6 -0
- package/project/.sdk/tm/dart/lib/utility/MakeErrorUtility.dart +67 -0
- package/project/.sdk/tm/dart/lib/utility/MakeFetchDefUtility.dart +42 -0
- package/project/.sdk/tm/dart/lib/utility/MakeOptionsUtility.dart +147 -0
- package/project/.sdk/tm/dart/lib/utility/MakePointUtility.dart +84 -0
- package/project/.sdk/tm/dart/lib/utility/MakeRequestUtility.dart +63 -0
- package/project/.sdk/tm/dart/lib/utility/MakeResponseUtility.dart +54 -0
- package/project/.sdk/tm/dart/lib/utility/MakeResultUtility.dart +49 -0
- package/project/.sdk/tm/dart/lib/utility/MakeSpecUtility.dart +61 -0
- package/project/.sdk/tm/dart/lib/utility/MakeUrlUtility.dart +51 -0
- package/project/.sdk/tm/dart/lib/utility/ParamUtility.dart +56 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareAuthUtility.dart +46 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareBodyUtility.dart +19 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareHeadersUtility.dart +11 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareMethodUtility.dart +15 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareParamsUtility.dart +23 -0
- package/project/.sdk/tm/dart/lib/utility/PreparePathUtility.dart +9 -0
- package/project/.sdk/tm/dart/lib/utility/PrepareQueryUtility.dart +18 -0
- package/project/.sdk/tm/dart/lib/utility/ResultBasicUtility.dart +29 -0
- package/project/.sdk/tm/dart/lib/utility/ResultBodyUtility.dart +15 -0
- package/project/.sdk/tm/dart/lib/utility/ResultHeadersUtility.dart +18 -0
- package/project/.sdk/tm/dart/lib/utility/StructUtility.dart +127 -0
- package/project/.sdk/tm/dart/lib/utility/TransformRequestUtility.dart +28 -0
- package/project/.sdk/tm/dart/lib/utility/TransformResponseUtility.dart +44 -0
- package/project/.sdk/tm/dart/lib/utility/Utility.dart +230 -0
- package/project/.sdk/tm/dart/lib/utility/voxgig_struct.dart +2456 -0
- package/project/.sdk/tm/dart/src/feature/README.md +3 -0
- package/project/.sdk/tm/dart/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/dart/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/dart/test/custom_test.dart +65 -0
- package/project/.sdk/tm/dart/test/exists_test.dart +12 -0
- package/project/.sdk/tm/dart/test/feature/harness.dart +329 -0
- package/project/.sdk/tm/dart/test/feature_test.dart +1139 -0
- package/project/.sdk/tm/dart/test/harness.dart +153 -0
- package/project/.sdk/tm/dart/test/netsim_test.dart +48 -0
- package/project/.sdk/tm/dart/test/pipeline_test.dart +608 -0
- package/project/.sdk/tm/dart/test/primary_test.dart +411 -0
- package/project/.sdk/tm/dart/test/runner.dart +406 -0
- package/project/.sdk/tm/dart/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/dart/test/struct_corpus.dart +531 -0
- package/project/.sdk/tm/dart/test/struct_test.dart +41 -0
- package/project/.sdk/tm/dart/test/utility.dart +159 -0
- package/project/.sdk/tm/elixir/LICENSE +21 -0
- package/project/.sdk/tm/elixir/Makefile +15 -0
- package/project/.sdk/tm/elixir/VERSION +1 -0
- package/project/.sdk/tm/elixir/lib/projectname/context.ex +138 -0
- package/project/.sdk/tm/elixir/lib/projectname/core.ex +125 -0
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +155 -0
- package/project/.sdk/tm/elixir/lib/projectname/error.ex +16 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/audit.ex +125 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/cache.ex +170 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/clienttrack.ex +136 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/debug.ex +232 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/idempotency.ex +107 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/log.ex +62 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/metrics.ex +130 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/netsim.ex +213 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/paging.ex +191 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/proxy.ex +142 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/ratelimit.ex +81 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/rbac.ex +139 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/retry.ex +150 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/streaming.ex +107 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/telemetry.ex +172 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +285 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature/timeout.ex +64 -0
- package/project/.sdk/tm/elixir/lib/projectname/feature.ex +90 -0
- package/project/.sdk/tm/elixir/lib/projectname/helpers.ex +66 -0
- package/project/.sdk/tm/elixir/lib/projectname/json.ex +115 -0
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +1257 -0
- package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +2615 -0
- package/project/.sdk/tm/elixir/src/feature/README.md +3 -0
- package/project/.sdk/tm/elixir/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/elixir/test/feature_test.exs +879 -0
- package/project/.sdk/tm/elixir/test/netsim_test.exs +58 -0
- package/project/.sdk/tm/elixir/test/pipeline_test.exs +558 -0
- package/project/.sdk/tm/elixir/test/primary_utility_test.exs +133 -0
- package/project/.sdk/tm/elixir/test/stream_test.exs +119 -0
- package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +18 -0
- package/project/.sdk/tm/elixir/test/support/feature_harness.ex +346 -0
- package/project/.sdk/tm/elixir/test/support/struct_corpus.ex +677 -0
- package/project/.sdk/tm/elixir/test/test_helper.exs +1 -0
- package/project/.sdk/tm/go/core/context.go +10 -0
- package/project/.sdk/tm/go/core/control.go +2 -0
- package/project/.sdk/tm/go/core/result.go +6 -0
- package/project/.sdk/tm/go/core/types.go +1 -0
- package/project/.sdk/tm/go/feature/audit_feature.go +110 -0
- package/project/.sdk/tm/go/feature/base_feature.go +8 -0
- package/project/.sdk/tm/go/feature/cache_feature.go +171 -0
- package/project/.sdk/tm/go/feature/clienttrack_feature.go +100 -0
- package/project/.sdk/tm/go/feature/debug_feature.go +159 -0
- package/project/.sdk/tm/go/feature/feature_options.go +204 -0
- package/project/.sdk/tm/go/feature/idempotency_feature.go +115 -0
- package/project/.sdk/tm/go/feature/metrics_feature.go +112 -0
- package/project/.sdk/tm/go/feature/netsim_feature.go +184 -0
- package/project/.sdk/tm/go/feature/paging_feature.go +173 -0
- package/project/.sdk/tm/go/feature/proxy_feature.go +121 -0
- package/project/.sdk/tm/go/feature/ratelimit_feature.go +88 -0
- package/project/.sdk/tm/go/feature/rbac_feature.go +126 -0
- package/project/.sdk/tm/go/feature/retry_feature.go +165 -0
- package/project/.sdk/tm/go/feature/streaming_feature.go +119 -0
- package/project/.sdk/tm/go/feature/telemetry_feature.go +142 -0
- package/project/.sdk/tm/go/feature/test_feature.go +78 -3
- package/project/.sdk/tm/go/feature/timeout_feature.go +88 -0
- package/project/.sdk/tm/go/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/go/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/go/test/feature_test.go +1465 -0
- package/project/.sdk/tm/go/test/netsim_test.go +70 -0
- package/project/.sdk/tm/go/test/pipeline_test.go +571 -0
- package/project/.sdk/tm/go/utility/feature_add.go +38 -0
- package/project/.sdk/tm/go/utility/fetcher.go +13 -1
- package/project/.sdk/tm/go/utility/make_error.go +8 -0
- package/project/.sdk/tm/go/utility/make_options.go +62 -0
- package/project/.sdk/tm/go/utility/make_point.go +6 -0
- package/project/.sdk/tm/go-cli/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/go-cli/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/go-mcp/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/LICENSE +21 -0
- package/project/.sdk/tm/haskell/Makefile +22 -0
- package/project/.sdk/tm/haskell/VERSION +1 -0
- package/project/.sdk/tm/haskell/src/SdkFeatures.hs +1278 -0
- package/project/.sdk/tm/haskell/src/SdkHelpers.hs +337 -0
- package/project/.sdk/tm/haskell/src/SdkRuntime.hs +1007 -0
- package/project/.sdk/tm/haskell/src/SdkTypes.hs +186 -0
- package/project/.sdk/tm/haskell/src/VoxgigStruct.hs +2299 -0
- package/project/.sdk/tm/haskell/src/Vregex.hs +237 -0
- package/project/.sdk/tm/haskell/src/feature/README.md +5 -0
- package/project/.sdk/tm/haskell/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/haskell/test/Harness.hs +276 -0
- package/project/.sdk/tm/haskell/test/Runner.hs +47 -0
- package/project/.sdk/tm/haskell/test/StructCorpus.hs +449 -0
- package/project/.sdk/tm/haskell/test/TCustomUtility.hs +38 -0
- package/project/.sdk/tm/haskell/test/TFeature.hs +794 -0
- package/project/.sdk/tm/haskell/test/TNetsim.hs +50 -0
- package/project/.sdk/tm/haskell/test/TPipeline.hs +334 -0
- package/project/.sdk/tm/haskell/test/TPrimaryUtility.hs +386 -0
- package/project/.sdk/tm/haskell/test/TestJson.hs +107 -0
- package/project/.sdk/tm/haskell/test/Testutil.hs +59 -0
- package/project/.sdk/tm/java/LICENSE +22 -0
- package/project/.sdk/tm/java/Makefile +44 -0
- package/project/.sdk/tm/java/VERSION +1 -0
- package/project/.sdk/tm/java/core/Context.java +269 -0
- package/project/.sdk/tm/java/core/Control.java +23 -0
- package/project/.sdk/tm/java/core/Entity.java +13 -0
- package/project/.sdk/tm/java/core/Feature.java +45 -0
- package/project/.sdk/tm/java/core/FeaturePlacement.java +13 -0
- package/project/.sdk/tm/java/core/Helpers.java +50 -0
- package/project/.sdk/tm/java/core/Operation.java +47 -0
- package/project/.sdk/tm/java/core/Point.java +90 -0
- package/project/.sdk/tm/java/core/Response.java +48 -0
- package/project/.sdk/tm/java/core/Result.java +64 -0
- package/project/.sdk/tm/java/core/SdkClient.java +280 -0
- package/project/.sdk/tm/java/core/SdkEntity.java +28 -0
- package/project/.sdk/tm/java/core/Spec.java +84 -0
- package/project/.sdk/tm/java/core/Utility.java +128 -0
- package/project/.sdk/tm/java/feature/AuditFeature.java +113 -0
- package/project/.sdk/tm/java/feature/BaseFeature.java +91 -0
- package/project/.sdk/tm/java/feature/CacheFeature.java +184 -0
- package/project/.sdk/tm/java/feature/ClienttrackFeature.java +103 -0
- package/project/.sdk/tm/java/feature/DebugFeature.java +163 -0
- package/project/.sdk/tm/java/feature/FeatureOptions.java +204 -0
- package/project/.sdk/tm/java/feature/IdempotencyFeature.java +115 -0
- package/project/.sdk/tm/java/feature/LogFeature.java +143 -0
- package/project/.sdk/tm/java/feature/MetricsFeature.java +115 -0
- package/project/.sdk/tm/java/feature/NetsimFeature.java +181 -0
- package/project/.sdk/tm/java/feature/PagingFeature.java +178 -0
- package/project/.sdk/tm/java/feature/ProxyFeature.java +122 -0
- package/project/.sdk/tm/java/feature/RatelimitFeature.java +83 -0
- package/project/.sdk/tm/java/feature/RbacFeature.java +132 -0
- package/project/.sdk/tm/java/feature/RetryFeature.java +156 -0
- package/project/.sdk/tm/java/feature/StreamingFeature.java +110 -0
- package/project/.sdk/tm/java/feature/TelemetryFeature.java +146 -0
- package/project/.sdk/tm/java/feature/TestFeature.java +333 -0
- package/project/.sdk/tm/java/feature/TimeoutFeature.java +89 -0
- package/project/.sdk/tm/java/src/feature/README.md +1 -0
- package/project/.sdk/tm/java/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/java/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/java/test/CustomUtilityTest.java +59 -0
- package/project/.sdk/tm/java/test/ExistsTest.java +16 -0
- package/project/.sdk/tm/java/test/FeatureHarness.java +448 -0
- package/project/.sdk/tm/java/test/FeatureTest.java +1018 -0
- package/project/.sdk/tm/java/test/NetsimTest.java +59 -0
- package/project/.sdk/tm/java/test/PipelineTest.java +618 -0
- package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +864 -0
- package/project/.sdk/tm/java/test/RunnerSupport.java +545 -0
- package/project/.sdk/tm/java/test/StructCorpusTest.java +351 -0
- package/project/.sdk/tm/java/test/StructRunner.java +281 -0
- package/project/.sdk/tm/java/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/java/utility/Clean.java +12 -0
- package/project/.sdk/tm/java/utility/Done.java +29 -0
- package/project/.sdk/tm/java/utility/FeatureAdd.java +59 -0
- package/project/.sdk/tm/java/utility/FeatureHookUtil.java +72 -0
- package/project/.sdk/tm/java/utility/FeatureInit.java +35 -0
- package/project/.sdk/tm/java/utility/Fetcher.java +170 -0
- package/project/.sdk/tm/java/utility/Json.java +268 -0
- package/project/.sdk/tm/java/utility/MakeContext.java +14 -0
- package/project/.sdk/tm/java/utility/MakeError.java +81 -0
- package/project/.sdk/tm/java/utility/MakeFetchDef.java +48 -0
- package/project/.sdk/tm/java/utility/MakeOptions.java +168 -0
- package/project/.sdk/tm/java/utility/MakePoint.java +118 -0
- package/project/.sdk/tm/java/utility/MakeRequest.java +83 -0
- package/project/.sdk/tm/java/utility/MakeResponse.java +54 -0
- package/project/.sdk/tm/java/utility/MakeResult.java +68 -0
- package/project/.sdk/tm/java/utility/MakeSpec.java +69 -0
- package/project/.sdk/tm/java/utility/MakeUrl.java +67 -0
- package/project/.sdk/tm/java/utility/Param.java +74 -0
- package/project/.sdk/tm/java/utility/PrepareAuth.java +66 -0
- package/project/.sdk/tm/java/utility/PrepareBody.java +16 -0
- package/project/.sdk/tm/java/utility/PrepareHeaders.java +28 -0
- package/project/.sdk/tm/java/utility/PrepareMethod.java +28 -0
- package/project/.sdk/tm/java/utility/PrepareParams.java +50 -0
- package/project/.sdk/tm/java/utility/PreparePath.java +26 -0
- package/project/.sdk/tm/java/utility/PrepareQuery.java +54 -0
- package/project/.sdk/tm/java/utility/Register.java +41 -0
- package/project/.sdk/tm/java/utility/ResultBasic.java +36 -0
- package/project/.sdk/tm/java/utility/ResultBody.java +23 -0
- package/project/.sdk/tm/java/utility/ResultHeaders.java +36 -0
- package/project/.sdk/tm/java/utility/TransformRequest.java +35 -0
- package/project/.sdk/tm/java/utility/TransformResponse.java +52 -0
- package/project/.sdk/tm/java/utility/struct/Struct.java +3550 -0
- package/project/.sdk/tm/js/src/feature/audit/AuditFeature.js +96 -0
- package/project/.sdk/tm/js/src/feature/cache/CacheFeature.js +150 -0
- package/project/.sdk/tm/js/src/feature/clienttrack/ClienttrackFeature.js +104 -0
- package/project/.sdk/tm/js/src/feature/debug/DebugFeature.js +132 -0
- package/project/.sdk/tm/js/src/feature/idempotency/IdempotencyFeature.js +95 -0
- package/project/.sdk/tm/js/src/feature/metrics/MetricsFeature.js +102 -0
- package/project/.sdk/tm/js/src/feature/netsim/NetsimFeature.js +187 -0
- package/project/.sdk/tm/js/src/feature/paging/PagingFeature.js +139 -0
- package/project/.sdk/tm/js/src/feature/proxy/ProxyFeature.js +110 -0
- package/project/.sdk/tm/js/src/feature/ratelimit/RatelimitFeature.js +106 -0
- package/project/.sdk/tm/js/src/feature/rbac/RbacFeature.js +102 -0
- package/project/.sdk/tm/js/src/feature/retry/RetryFeature.js +158 -0
- package/project/.sdk/tm/js/src/feature/streaming/StreamingFeature.js +96 -0
- package/project/.sdk/tm/js/src/feature/telemetry/TelemetryFeature.js +128 -0
- package/project/.sdk/tm/js/src/feature/test/TestFeature.js +58 -1
- package/project/.sdk/tm/js/src/feature/timeout/TimeoutFeature.js +101 -0
- package/project/.sdk/tm/js/src/utility/FeatureHookUtility.js +4 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +9 -0
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +31 -1
- package/project/.sdk/tm/js/test/feature/harness.js +275 -0
- package/project/.sdk/tm/js/test/feature.test.js +772 -0
- package/project/.sdk/tm/js/test/netsim.test.js +43 -0
- package/project/.sdk/tm/js/test/pipeline.test.js +382 -0
- package/project/.sdk/tm/kotlin/LICENSE +22 -0
- package/project/.sdk/tm/kotlin/Makefile +43 -0
- package/project/.sdk/tm/kotlin/VERSION +1 -0
- package/project/.sdk/tm/kotlin/core/Context.kt +247 -0
- package/project/.sdk/tm/kotlin/core/Control.kt +21 -0
- package/project/.sdk/tm/kotlin/core/Helpers.kt +49 -0
- package/project/.sdk/tm/kotlin/core/Interfaces.kt +88 -0
- package/project/.sdk/tm/kotlin/core/Operation.kt +43 -0
- package/project/.sdk/tm/kotlin/core/Point.kt +83 -0
- package/project/.sdk/tm/kotlin/core/Response.kt +43 -0
- package/project/.sdk/tm/kotlin/core/Result.kt +61 -0
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +266 -0
- package/project/.sdk/tm/kotlin/core/Spec.kt +76 -0
- package/project/.sdk/tm/kotlin/core/Utility.kt +93 -0
- package/project/.sdk/tm/kotlin/feature/AuditFeature.kt +96 -0
- package/project/.sdk/tm/kotlin/feature/BaseFeature.kt +57 -0
- package/project/.sdk/tm/kotlin/feature/CacheFeature.kt +167 -0
- package/project/.sdk/tm/kotlin/feature/ClienttrackFeature.kt +84 -0
- package/project/.sdk/tm/kotlin/feature/DebugFeature.kt +141 -0
- package/project/.sdk/tm/kotlin/feature/FeatureOptions.kt +191 -0
- package/project/.sdk/tm/kotlin/feature/IdempotencyFeature.kt +98 -0
- package/project/.sdk/tm/kotlin/feature/LogFeature.kt +92 -0
- package/project/.sdk/tm/kotlin/feature/MetricsFeature.kt +96 -0
- package/project/.sdk/tm/kotlin/feature/NetsimFeature.kt +162 -0
- package/project/.sdk/tm/kotlin/feature/PagingFeature.kt +143 -0
- package/project/.sdk/tm/kotlin/feature/ProxyFeature.kt +109 -0
- package/project/.sdk/tm/kotlin/feature/RatelimitFeature.kt +77 -0
- package/project/.sdk/tm/kotlin/feature/RbacFeature.kt +100 -0
- package/project/.sdk/tm/kotlin/feature/RetryFeature.kt +140 -0
- package/project/.sdk/tm/kotlin/feature/StreamingFeature.kt +90 -0
- package/project/.sdk/tm/kotlin/feature/TelemetryFeature.kt +118 -0
- package/project/.sdk/tm/kotlin/feature/TestFeature.kt +306 -0
- package/project/.sdk/tm/kotlin/feature/TimeoutFeature.kt +74 -0
- package/project/.sdk/tm/kotlin/src/feature/README.md +1 -0
- package/project/.sdk/tm/kotlin/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/kotlin/test/CustomUtilityTest.kt +51 -0
- package/project/.sdk/tm/kotlin/test/ExistsTest.kt +15 -0
- package/project/.sdk/tm/kotlin/test/FeatureHarness.kt +380 -0
- package/project/.sdk/tm/kotlin/test/FeatureTest.kt +924 -0
- package/project/.sdk/tm/kotlin/test/NetsimTest.kt +50 -0
- package/project/.sdk/tm/kotlin/test/PipelineTest.kt +556 -0
- package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +829 -0
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +477 -0
- package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +297 -0
- package/project/.sdk/tm/kotlin/test/StructRunner.kt +177 -0
- package/project/.sdk/tm/kotlin/test/sdk-test-control.json +19 -0
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +96 -0
- package/project/.sdk/tm/kotlin/utility/FeatureUtil.kt +121 -0
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +156 -0
- package/project/.sdk/tm/kotlin/utility/Json.kt +237 -0
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +152 -0
- package/project/.sdk/tm/kotlin/utility/MakePoint.kt +108 -0
- package/project/.sdk/tm/kotlin/utility/MakeReqRes.kt +152 -0
- package/project/.sdk/tm/kotlin/utility/MakeSpecUrl.kt +142 -0
- package/project/.sdk/tm/kotlin/utility/Prepare.kt +236 -0
- package/project/.sdk/tm/kotlin/utility/Register.kt +39 -0
- package/project/.sdk/tm/kotlin/utility/ResultTransform.kt +109 -0
- package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +2697 -0
- package/project/.sdk/tm/lua/feature/audit_feature.lua +132 -0
- package/project/.sdk/tm/lua/feature/cache_feature.lua +188 -0
- package/project/.sdk/tm/lua/feature/clienttrack_feature.lua +127 -0
- package/project/.sdk/tm/lua/feature/debug_feature.lua +194 -0
- package/project/.sdk/tm/lua/feature/idempotency_feature.lua +127 -0
- package/project/.sdk/tm/lua/feature/metrics_feature.lua +135 -0
- package/project/.sdk/tm/lua/feature/netsim_feature.lua +205 -0
- package/project/.sdk/tm/lua/feature/paging_feature.lua +180 -0
- package/project/.sdk/tm/lua/feature/proxy_feature.lua +147 -0
- package/project/.sdk/tm/lua/feature/ratelimit_feature.lua +120 -0
- package/project/.sdk/tm/lua/feature/rbac_feature.lua +141 -0
- package/project/.sdk/tm/lua/feature/retry_feature.lua +188 -0
- package/project/.sdk/tm/lua/feature/streaming_feature.lua +143 -0
- package/project/.sdk/tm/lua/feature/telemetry_feature.lua +159 -0
- package/project/.sdk/tm/lua/feature/test_feature.lua +85 -1
- package/project/.sdk/tm/lua/feature/timeout_feature.lua +94 -0
- package/project/.sdk/tm/lua/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/lua/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/lua/test/feature_test.lua +1244 -0
- package/project/.sdk/tm/lua/test/netsim_test.lua +61 -0
- package/project/.sdk/tm/lua/test/pipeline_test.lua +613 -0
- package/project/.sdk/tm/lua/utility/feature_add.lua +28 -1
- package/project/.sdk/tm/lua/utility/make_error.lua +9 -0
- package/project/.sdk/tm/lua/utility/make_options.lua +58 -0
- package/project/.sdk/tm/lua/utility/make_point.lua +8 -1
- package/project/.sdk/tm/ocaml/LICENSE +21 -0
- package/project/.sdk/tm/ocaml/Makefile +58 -0
- package/project/.sdk/tm/ocaml/VERSION +1 -0
- package/project/.sdk/tm/ocaml/sdk_features.ml +1127 -0
- package/project/.sdk/tm/ocaml/sdk_helpers.ml +110 -0
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +942 -0
- package/project/.sdk/tm/ocaml/sdk_types.ml +259 -0
- package/project/.sdk/tm/ocaml/src/feature/README.md +1 -0
- package/project/.sdk/tm/ocaml/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/ocaml/test/custom_utility.ml +30 -0
- package/project/.sdk/tm/ocaml/test/harness.ml +198 -0
- package/project/.sdk/tm/ocaml/test/struct_corpus.ml +487 -0
- package/project/.sdk/tm/ocaml/test/t_feature.ml +533 -0
- package/project/.sdk/tm/ocaml/test/t_main.ml +5 -0
- package/project/.sdk/tm/ocaml/test/t_pipeline.ml +354 -0
- package/project/.sdk/tm/ocaml/test/testutil.ml +57 -0
- package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +1858 -0
- package/project/.sdk/tm/ocaml/utility/vregex.ml +254 -0
- package/project/.sdk/tm/perl/LICENSE +22 -0
- package/project/.sdk/tm/perl/Makefile +57 -0
- package/project/.sdk/tm/perl/core/context.pm +138 -0
- package/project/.sdk/tm/perl/core/control.pm +22 -0
- package/project/.sdk/tm/perl/core/error.pm +30 -0
- package/project/.sdk/tm/perl/core/helpers.pm +142 -0
- package/project/.sdk/tm/perl/core/operation.pm +47 -0
- package/project/.sdk/tm/perl/core/response.pm +40 -0
- package/project/.sdk/tm/perl/core/result.pm +45 -0
- package/project/.sdk/tm/perl/core/spec.pm +33 -0
- package/project/.sdk/tm/perl/core/utility_type.pm +32 -0
- package/project/.sdk/tm/perl/feature/audit_feature.pm +128 -0
- package/project/.sdk/tm/perl/feature/base_feature.pm +41 -0
- package/project/.sdk/tm/perl/feature/cache_feature.pm +168 -0
- package/project/.sdk/tm/perl/feature/clienttrack_feature.pm +126 -0
- package/project/.sdk/tm/perl/feature/debug_feature.pm +168 -0
- package/project/.sdk/tm/perl/feature/idempotency_feature.pm +104 -0
- package/project/.sdk/tm/perl/feature/log_feature.pm +77 -0
- package/project/.sdk/tm/perl/feature/metrics_feature.pm +124 -0
- package/project/.sdk/tm/perl/feature/netsim_feature.pm +215 -0
- package/project/.sdk/tm/perl/feature/paging_feature.pm +158 -0
- package/project/.sdk/tm/perl/feature/proxy_feature.pm +128 -0
- package/project/.sdk/tm/perl/feature/ratelimit_feature.pm +126 -0
- package/project/.sdk/tm/perl/feature/rbac_feature.pm +124 -0
- package/project/.sdk/tm/perl/feature/retry_feature.pm +153 -0
- package/project/.sdk/tm/perl/feature/streaming_feature.pm +112 -0
- package/project/.sdk/tm/perl/feature/telemetry_feature.pm +155 -0
- package/project/.sdk/tm/perl/feature/test_feature.pm +314 -0
- package/project/.sdk/tm/perl/feature/timeout_feature.pm +110 -0
- package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +2897 -0
- package/project/.sdk/tm/perl/src/feature/README.md +3 -0
- package/project/.sdk/tm/perl/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/perl/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/perl/t/feature.t +1054 -0
- package/project/.sdk/tm/perl/t/netsim.t +55 -0
- package/project/.sdk/tm/perl/t/pipeline.t +632 -0
- package/project/.sdk/tm/perl/t/primary_utility.t +1023 -0
- package/project/.sdk/tm/perl/t/runner.pm +140 -0
- package/project/.sdk/tm/perl/t/sdk-test-control.json +19 -0
- package/project/.sdk/tm/perl/t/stream.t +132 -0
- package/project/.sdk/tm/perl/t/struct_runner.pm +275 -0
- package/project/.sdk/tm/perl/t/struct_utility.t +438 -0
- package/project/.sdk/tm/perl/utility/clean.pm +15 -0
- package/project/.sdk/tm/perl/utility/done.pm +34 -0
- package/project/.sdk/tm/perl/utility/feature_add.pm +47 -0
- package/project/.sdk/tm/perl/utility/feature_hook.pm +25 -0
- package/project/.sdk/tm/perl/utility/feature_init.pm +33 -0
- package/project/.sdk/tm/perl/utility/fetcher.pm +112 -0
- package/project/.sdk/tm/perl/utility/make_context.pm +22 -0
- package/project/.sdk/tm/perl/utility/make_error.pm +74 -0
- package/project/.sdk/tm/perl/utility/make_fetch_def.pm +46 -0
- package/project/.sdk/tm/perl/utility/make_options.pm +123 -0
- package/project/.sdk/tm/perl/utility/make_point.pm +104 -0
- package/project/.sdk/tm/perl/utility/make_request.pm +66 -0
- package/project/.sdk/tm/perl/utility/make_response.pm +38 -0
- package/project/.sdk/tm/perl/utility/make_result.pm +53 -0
- package/project/.sdk/tm/perl/utility/make_spec.pm +71 -0
- package/project/.sdk/tm/perl/utility/make_url.pm +63 -0
- package/project/.sdk/tm/perl/utility/param.pm +65 -0
- package/project/.sdk/tm/perl/utility/prepare_auth.pm +56 -0
- package/project/.sdk/tm/perl/utility/prepare_body.pm +17 -0
- package/project/.sdk/tm/perl/utility/prepare_headers.pm +27 -0
- package/project/.sdk/tm/perl/utility/prepare_method.pm +25 -0
- package/project/.sdk/tm/perl/utility/prepare_params.pm +41 -0
- package/project/.sdk/tm/perl/utility/prepare_path.pm +29 -0
- package/project/.sdk/tm/perl/utility/prepare_query.pm +40 -0
- package/project/.sdk/tm/perl/utility/register.pm +53 -0
- package/project/.sdk/tm/perl/utility/result_basic.pm +38 -0
- package/project/.sdk/tm/perl/utility/result_body.pm +28 -0
- package/project/.sdk/tm/perl/utility/result_headers.pm +32 -0
- package/project/.sdk/tm/perl/utility/transform_request.pm +30 -0
- package/project/.sdk/tm/perl/utility/transform_response.pm +43 -0
- package/project/.sdk/tm/php/core/Result.php +10 -0
- package/project/.sdk/tm/php/feature/AuditFeature.php +125 -0
- package/project/.sdk/tm/php/feature/BaseFeature.php +6 -0
- package/project/.sdk/tm/php/feature/CacheFeature.php +158 -0
- package/project/.sdk/tm/php/feature/ClienttrackFeature.php +126 -0
- package/project/.sdk/tm/php/feature/DebugFeature.php +167 -0
- package/project/.sdk/tm/php/feature/IdempotencyFeature.php +102 -0
- package/project/.sdk/tm/php/feature/MetricsFeature.php +122 -0
- package/project/.sdk/tm/php/feature/NetsimFeature.php +190 -0
- package/project/.sdk/tm/php/feature/PagingFeature.php +153 -0
- package/project/.sdk/tm/php/feature/ProxyFeature.php +136 -0
- package/project/.sdk/tm/php/feature/RatelimitFeature.php +116 -0
- package/project/.sdk/tm/php/feature/RbacFeature.php +133 -0
- package/project/.sdk/tm/php/feature/RetryFeature.php +159 -0
- package/project/.sdk/tm/php/feature/StreamingFeature.php +107 -0
- package/project/.sdk/tm/php/feature/TelemetryFeature.php +156 -0
- package/project/.sdk/tm/php/feature/TestFeature.php +80 -1
- package/project/.sdk/tm/php/feature/TimeoutFeature.php +95 -0
- package/project/.sdk/tm/php/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/php/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/php/test/FeatureTest.php +1259 -0
- package/project/.sdk/tm/php/test/NetsimTest.php +53 -0
- package/project/.sdk/tm/php/test/PipelineTest.php +674 -0
- package/project/.sdk/tm/php/utility/FeatureAdd.php +32 -1
- package/project/.sdk/tm/php/utility/MakeError.php +9 -0
- package/project/.sdk/tm/php/utility/MakeOptions.php +46 -0
- package/project/.sdk/tm/php/utility/MakePoint.php +7 -0
- package/project/.sdk/tm/py/core/context.py +4 -0
- package/project/.sdk/tm/py/core/control.py +3 -0
- package/project/.sdk/tm/py/feature/audit_feature.py +98 -0
- package/project/.sdk/tm/py/feature/cache_feature.py +138 -0
- package/project/.sdk/tm/py/feature/clienttrack_feature.py +97 -0
- package/project/.sdk/tm/py/feature/debug_feature.py +134 -0
- package/project/.sdk/tm/py/feature/idempotency_feature.py +89 -0
- package/project/.sdk/tm/py/feature/metrics_feature.py +93 -0
- package/project/.sdk/tm/py/feature/netsim_feature.py +170 -0
- package/project/.sdk/tm/py/feature/paging_feature.py +134 -0
- package/project/.sdk/tm/py/feature/proxy_feature.py +104 -0
- package/project/.sdk/tm/py/feature/ratelimit_feature.py +98 -0
- package/project/.sdk/tm/py/feature/rbac_feature.py +102 -0
- package/project/.sdk/tm/py/feature/retry_feature.py +142 -0
- package/project/.sdk/tm/py/feature/streaming_feature.py +84 -0
- package/project/.sdk/tm/py/feature/telemetry_feature.py +128 -0
- package/project/.sdk/tm/py/feature/test_feature.py +70 -1
- package/project/.sdk/tm/py/feature/timeout_feature.py +78 -0
- package/project/.sdk/tm/py/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/py/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/py/test/feature_harness.py +336 -0
- package/project/.sdk/tm/py/test/test_feature.py +807 -0
- package/project/.sdk/tm/py/test/test_netsim.py +52 -0
- package/project/.sdk/tm/py/test/test_pipeline.py +606 -0
- package/project/.sdk/tm/py/utility/feature_add.py +25 -1
- package/project/.sdk/tm/py/utility/make_error.py +8 -0
- package/project/.sdk/tm/py/utility/make_options.py +32 -0
- package/project/.sdk/tm/py/utility/make_point.py +8 -2
- package/project/.sdk/tm/py/utility/make_request.py +6 -2
- package/project/.sdk/tm/py/utility/make_response.py +6 -2
- package/project/.sdk/tm/py/utility/make_result.py +6 -2
- package/project/.sdk/tm/py/utility/make_spec.py +6 -2
- package/project/.sdk/tm/rb/core/context.rb +2 -0
- package/project/.sdk/tm/rb/core/control.rb +5 -1
- package/project/.sdk/tm/rb/core/result.rb +2 -1
- package/project/.sdk/tm/rb/feature/audit_feature.rb +103 -0
- package/project/.sdk/tm/rb/feature/base_feature.rb +5 -0
- package/project/.sdk/tm/rb/feature/cache_feature.rb +133 -0
- package/project/.sdk/tm/rb/feature/clienttrack_feature.rb +91 -0
- package/project/.sdk/tm/rb/feature/debug_feature.rb +138 -0
- package/project/.sdk/tm/rb/feature/idempotency_feature.rb +78 -0
- package/project/.sdk/tm/rb/feature/metrics_feature.rb +91 -0
- package/project/.sdk/tm/rb/feature/netsim_feature.rb +167 -0
- package/project/.sdk/tm/rb/feature/paging_feature.rb +120 -0
- package/project/.sdk/tm/rb/feature/proxy_feature.rb +93 -0
- package/project/.sdk/tm/rb/feature/ratelimit_feature.rb +95 -0
- package/project/.sdk/tm/rb/feature/rbac_feature.rb +96 -0
- package/project/.sdk/tm/rb/feature/retry_feature.rb +116 -0
- package/project/.sdk/tm/rb/feature/streaming_feature.rb +85 -0
- package/project/.sdk/tm/rb/feature/telemetry_feature.rb +122 -0
- package/project/.sdk/tm/rb/feature/test_feature.rb +65 -1
- package/project/.sdk/tm/rb/feature/timeout_feature.rb +74 -0
- package/project/.sdk/tm/rb/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/rb/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/rb/test/feature_test.rb +1031 -0
- package/project/.sdk/tm/rb/test/netsim_test.rb +48 -0
- package/project/.sdk/tm/rb/test/pipeline_test.rb +584 -0
- package/project/.sdk/tm/rb/utility/feature_add.rb +28 -1
- package/project/.sdk/tm/rb/utility/make_error.rb +8 -0
- package/project/.sdk/tm/rb/utility/make_options.rb +35 -0
- package/project/.sdk/tm/rb/utility/make_point.rb +7 -1
- package/project/.sdk/tm/rust/LICENSE +22 -0
- package/project/.sdk/tm/rust/Makefile +41 -0
- package/project/.sdk/tm/rust/VERSION +1 -0
- package/project/.sdk/tm/rust/core/context.rs +320 -0
- package/project/.sdk/tm/rust/core/control.rs +37 -0
- package/project/.sdk/tm/rust/core/helpers.rs +168 -0
- package/project/.sdk/tm/rust/core/mod.rs +18 -0
- package/project/.sdk/tm/rust/core/operation.rs +35 -0
- package/project/.sdk/tm/rust/core/point.rs +68 -0
- package/project/.sdk/tm/rust/core/response.rs +38 -0
- package/project/.sdk/tm/rust/core/result.rs +90 -0
- package/project/.sdk/tm/rust/core/spec.rs +109 -0
- package/project/.sdk/tm/rust/core/types.rs +105 -0
- package/project/.sdk/tm/rust/core/utility_type.rs +184 -0
- package/project/.sdk/tm/rust/feature/audit.rs +138 -0
- package/project/.sdk/tm/rust/feature/base.rs +49 -0
- package/project/.sdk/tm/rust/feature/cache.rs +198 -0
- package/project/.sdk/tm/rust/feature/clienttrack.rs +154 -0
- package/project/.sdk/tm/rust/feature/debug.rs +188 -0
- package/project/.sdk/tm/rust/feature/idempotency.rs +139 -0
- package/project/.sdk/tm/rust/feature/log.rs +114 -0
- package/project/.sdk/tm/rust/feature/metrics.rs +136 -0
- package/project/.sdk/tm/rust/feature/mod.rs +24 -0
- package/project/.sdk/tm/rust/feature/netsim.rs +233 -0
- package/project/.sdk/tm/rust/feature/paging.rs +209 -0
- package/project/.sdk/tm/rust/feature/proxy.rs +165 -0
- package/project/.sdk/tm/rust/feature/ratelimit.rs +116 -0
- package/project/.sdk/tm/rust/feature/rbac.rs +152 -0
- package/project/.sdk/tm/rust/feature/retry.rs +190 -0
- package/project/.sdk/tm/rust/feature/streaming.rs +124 -0
- package/project/.sdk/tm/rust/feature/support.rs +145 -0
- package/project/.sdk/tm/rust/feature/telemetry.rs +185 -0
- package/project/.sdk/tm/rust/feature/test.rs +397 -0
- package/project/.sdk/tm/rust/feature/timeout.rs +103 -0
- package/project/.sdk/tm/rust/src/feature/README.md +1 -0
- package/project/.sdk/tm/rust/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/rust/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/rust/tests/common/mod.rs +969 -0
- package/project/.sdk/tm/rust/tests/custom_utility_test.rs +69 -0
- package/project/.sdk/tm/rust/tests/feature_test.rs +1864 -0
- package/project/.sdk/tm/rust/tests/netsim_test.rs +78 -0
- package/project/.sdk/tm/rust/tests/pipeline_test.rs +699 -0
- package/project/.sdk/tm/rust/tests/primary_utility_test.rs +999 -0
- package/project/.sdk/tm/rust/tests/sdk-test-control.json +19 -0
- package/project/.sdk/tm/rust/tests/struct_runner/mod.rs +424 -0
- package/project/.sdk/tm/rust/tests/struct_utility_test.rs +733 -0
- package/project/.sdk/tm/rust/utility/clean.rs +13 -0
- package/project/.sdk/tm/rust/utility/done.rs +31 -0
- package/project/.sdk/tm/rust/utility/feature_add.rs +46 -0
- package/project/.sdk/tm/rust/utility/feature_hook.rs +18 -0
- package/project/.sdk/tm/rust/utility/feature_init.rs +26 -0
- package/project/.sdk/tm/rust/utility/fetcher.rs +142 -0
- package/project/.sdk/tm/rust/utility/jsonparse.rs +211 -0
- package/project/.sdk/tm/rust/utility/make_context.rs +7 -0
- package/project/.sdk/tm/rust/utility/make_error.rs +79 -0
- package/project/.sdk/tm/rust/utility/make_fetch_def.rs +42 -0
- package/project/.sdk/tm/rust/utility/make_options.rs +175 -0
- package/project/.sdk/tm/rust/utility/make_point.rs +116 -0
- package/project/.sdk/tm/rust/utility/make_request.rs +73 -0
- package/project/.sdk/tm/rust/utility/make_response.rs +56 -0
- package/project/.sdk/tm/rust/utility/make_result.rs +64 -0
- package/project/.sdk/tm/rust/utility/make_spec.rs +70 -0
- package/project/.sdk/tm/rust/utility/make_url.rs +83 -0
- package/project/.sdk/tm/rust/utility/mod.rs +36 -0
- package/project/.sdk/tm/rust/utility/param.rs +67 -0
- package/project/.sdk/tm/rust/utility/prepare_auth.rs +65 -0
- package/project/.sdk/tm/rust/utility/prepare_body.rs +14 -0
- package/project/.sdk/tm/rust/utility/prepare_headers.rs +23 -0
- package/project/.sdk/tm/rust/utility/prepare_method.rs +18 -0
- package/project/.sdk/tm/rust/utility/prepare_params.rs +33 -0
- package/project/.sdk/tm/rust/utility/prepare_path.rs +17 -0
- package/project/.sdk/tm/rust/utility/prepare_query.rs +47 -0
- package/project/.sdk/tm/rust/utility/result_basic.rs +35 -0
- package/project/.sdk/tm/rust/utility/result_body.rs +26 -0
- package/project/.sdk/tm/rust/utility/result_headers.rs +24 -0
- package/project/.sdk/tm/rust/utility/transform_request.rs +31 -0
- package/project/.sdk/tm/rust/utility/transform_response.rs +55 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +122 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +2688 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +1081 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +70 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +159 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +1229 -0
- package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +372 -0
- package/project/.sdk/tm/scala/LICENSE +22 -0
- package/project/.sdk/tm/scala/Makefile +24 -0
- package/project/.sdk/tm/scala/VERSION +1 -0
- package/project/.sdk/tm/scala/core/Context.scala +160 -0
- package/project/.sdk/tm/scala/core/Contracts.scala +76 -0
- package/project/.sdk/tm/scala/core/Control.scala +23 -0
- package/project/.sdk/tm/scala/core/Helpers.scala +38 -0
- package/project/.sdk/tm/scala/core/Operation.scala +37 -0
- package/project/.sdk/tm/scala/core/Point.scala +44 -0
- package/project/.sdk/tm/scala/core/Response.scala +37 -0
- package/project/.sdk/tm/scala/core/Result.scala +42 -0
- package/project/.sdk/tm/scala/core/SdkClient.scala +220 -0
- package/project/.sdk/tm/scala/core/SdkError.scala +15 -0
- package/project/.sdk/tm/scala/core/Spec.scala +39 -0
- package/project/.sdk/tm/scala/core/Types.scala +31 -0
- package/project/.sdk/tm/scala/core/Utility.scala +85 -0
- package/project/.sdk/tm/scala/feature/AuditFeature.scala +101 -0
- package/project/.sdk/tm/scala/feature/BaseFeature.scala +21 -0
- package/project/.sdk/tm/scala/feature/CacheFeature.scala +181 -0
- package/project/.sdk/tm/scala/feature/ClienttrackFeature.scala +93 -0
- package/project/.sdk/tm/scala/feature/DebugFeature.scala +149 -0
- package/project/.sdk/tm/scala/feature/FeatureOptions.scala +111 -0
- package/project/.sdk/tm/scala/feature/IdempotencyFeature.scala +106 -0
- package/project/.sdk/tm/scala/feature/LogFeature.scala +64 -0
- package/project/.sdk/tm/scala/feature/MetricsFeature.scala +105 -0
- package/project/.sdk/tm/scala/feature/NetsimFeature.scala +134 -0
- package/project/.sdk/tm/scala/feature/PagingFeature.scala +170 -0
- package/project/.sdk/tm/scala/feature/ProxyFeature.scala +113 -0
- package/project/.sdk/tm/scala/feature/RatelimitFeature.scala +58 -0
- package/project/.sdk/tm/scala/feature/RbacFeature.scala +90 -0
- package/project/.sdk/tm/scala/feature/RetryFeature.scala +104 -0
- package/project/.sdk/tm/scala/feature/StreamingFeature.scala +98 -0
- package/project/.sdk/tm/scala/feature/TelemetryFeature.scala +129 -0
- package/project/.sdk/tm/scala/feature/TestFeature.scala +253 -0
- package/project/.sdk/tm/scala/feature/TimeoutFeature.scala +57 -0
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +766 -0
- package/project/.sdk/tm/scala/sdktest/SdkTestSupport.scala +93 -0
- package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +0 -0
- package/project/.sdk/tm/scala/sdktest/sdk-test-control.json +19 -0
- package/project/.sdk/tm/scala/src/feature/README.md +1 -0
- package/project/.sdk/tm/scala/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/scala/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/scala/utility/FeatureUtils.scala +68 -0
- package/project/.sdk/tm/scala/utility/Fetcher.scala +129 -0
- package/project/.sdk/tm/scala/utility/Json.java +268 -0
- package/project/.sdk/tm/scala/utility/Make.scala +463 -0
- package/project/.sdk/tm/scala/utility/MakeSpec.scala +49 -0
- package/project/.sdk/tm/scala/utility/Misc.scala +68 -0
- package/project/.sdk/tm/scala/utility/Prepare.scala +142 -0
- package/project/.sdk/tm/scala/utility/Register.scala +38 -0
- package/project/.sdk/tm/scala/utility/Results.scala +63 -0
- package/project/.sdk/tm/scala/utility/StructUtility.scala +29 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +52 -0
- package/project/.sdk/tm/scala/utility/struct/Struct.java +3550 -0
- package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +1833 -0
- package/project/.sdk/tm/swift/LICENSE +22 -0
- package/project/.sdk/tm/swift/Makefile +41 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +113 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +260 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +111 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +327 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +55 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +601 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +79 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +157 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +259 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +462 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +378 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +184 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +44 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Context.swift +161 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Control.swift +20 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Operation.swift +27 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Point.swift +37 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +29 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +41 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Spec.swift +36 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +98 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Types.swift +25 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +81 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/AuditFeature.swift +99 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/BaseFeature.swift +60 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/CacheFeature.swift +164 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ClienttrackFeature.swift +95 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/DebugFeature.swift +126 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/FeatureOptions.swift +96 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/IdempotencyFeature.swift +80 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/LogFeature.swift +69 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/MetricsFeature.swift +103 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/NetsimFeature.swift +177 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/PagingFeature.swift +154 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ProxyFeature.swift +122 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RatelimitFeature.swift +79 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RbacFeature.swift +103 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/RetryFeature.swift +150 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/StreamingFeature.swift +82 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TelemetryFeature.swift +119 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +257 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TimeoutFeature.swift +83 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Feature.swift +56 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +107 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +321 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +56 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +151 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +157 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +40 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +107 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/CustomUtilityTest.swift +44 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/ExistsTest.swift +12 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/FeatureTest.swift +1049 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/NetsimTest.swift +50 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +398 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +750 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +237 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +523 -0
- package/project/.sdk/tm/swift/VERSION +1 -0
- package/project/.sdk/tm/swift/src/feature/README.md +6 -0
- package/project/.sdk/tm/swift/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/swift/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/ts/Makefile +6 -1
- package/project/.sdk/tm/ts/src/feature/audit/AuditFeature.ts +98 -0
- package/project/.sdk/tm/ts/src/feature/cache/CacheFeature.ts +152 -0
- package/project/.sdk/tm/ts/src/feature/clienttrack/ClienttrackFeature.ts +106 -0
- package/project/.sdk/tm/ts/src/feature/debug/DebugFeature.ts +134 -0
- package/project/.sdk/tm/ts/src/feature/idempotency/IdempotencyFeature.ts +97 -0
- package/project/.sdk/tm/ts/src/feature/metrics/MetricsFeature.ts +104 -0
- package/project/.sdk/tm/ts/src/feature/netsim/NetsimFeature.ts +189 -0
- package/project/.sdk/tm/ts/src/feature/paging/PagingFeature.ts +141 -0
- package/project/.sdk/tm/ts/src/feature/proxy/ProxyFeature.ts +112 -0
- package/project/.sdk/tm/ts/src/feature/ratelimit/RatelimitFeature.ts +108 -0
- package/project/.sdk/tm/ts/src/feature/rbac/RbacFeature.ts +104 -0
- package/project/.sdk/tm/ts/src/feature/retry/RetryFeature.ts +160 -0
- package/project/.sdk/tm/ts/src/feature/streaming/StreamingFeature.ts +98 -0
- package/project/.sdk/tm/ts/src/feature/telemetry/TelemetryFeature.ts +130 -0
- package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +58 -1
- package/project/.sdk/tm/ts/src/feature/timeout/TimeoutFeature.ts +103 -0
- package/project/.sdk/tm/ts/src/utility/FeatureHookUtility.ts +4 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +9 -0
- package/project/.sdk/tm/ts/src/utility/MakeOptionsUtility.ts +31 -1
- package/project/.sdk/tm/ts/test/feature/harness.ts +293 -0
- package/project/.sdk/tm/ts/test/feature.test.ts +772 -0
- package/project/.sdk/tm/ts/test/netsim.test.ts +43 -0
- package/project/.sdk/tm/ts/test/pipeline.test.ts +382 -0
- package/project/.sdk/tm/zig/LICENSE +21 -0
- package/project/.sdk/tm/zig/Makefile +31 -0
- package/project/.sdk/tm/zig/VERSION +1 -0
- package/project/.sdk/tm/zig/build.zig +58 -0
- package/project/.sdk/tm/zig/build.zig.zon +11 -0
- package/project/.sdk/tm/zig/core/context.zig +258 -0
- package/project/.sdk/tm/zig/core/control.zig +26 -0
- package/project/.sdk/tm/zig/core/error.zig +28 -0
- package/project/.sdk/tm/zig/core/helpers.zig +326 -0
- package/project/.sdk/tm/zig/core/mem.zig +20 -0
- package/project/.sdk/tm/zig/core/operation.zig +34 -0
- package/project/.sdk/tm/zig/core/point.zig +63 -0
- package/project/.sdk/tm/zig/core/response.zig +32 -0
- package/project/.sdk/tm/zig/core/result.zig +73 -0
- package/project/.sdk/tm/zig/core/spec.zig +68 -0
- package/project/.sdk/tm/zig/core/types.zig +101 -0
- package/project/.sdk/tm/zig/core/utility.zig +1115 -0
- package/project/.sdk/tm/zig/feature/audit.zig +131 -0
- package/project/.sdk/tm/zig/feature/base.zig +52 -0
- package/project/.sdk/tm/zig/feature/cache.zig +216 -0
- package/project/.sdk/tm/zig/feature/clienttrack.zig +129 -0
- package/project/.sdk/tm/zig/feature/debug.zig +191 -0
- package/project/.sdk/tm/zig/feature/idempotency.zig +121 -0
- package/project/.sdk/tm/zig/feature/log.zig +93 -0
- package/project/.sdk/tm/zig/feature/metrics.zig +145 -0
- package/project/.sdk/tm/zig/feature/netsim.zig +186 -0
- package/project/.sdk/tm/zig/feature/paging.zig +201 -0
- package/project/.sdk/tm/zig/feature/proxy.zig +180 -0
- package/project/.sdk/tm/zig/feature/ratelimit.zig +123 -0
- package/project/.sdk/tm/zig/feature/rbac.zig +126 -0
- package/project/.sdk/tm/zig/feature/retry.zig +167 -0
- package/project/.sdk/tm/zig/feature/streaming.zig +127 -0
- package/project/.sdk/tm/zig/feature/support.zig +128 -0
- package/project/.sdk/tm/zig/feature/telemetry.zig +165 -0
- package/project/.sdk/tm/zig/feature/test.zig +315 -0
- package/project/.sdk/tm/zig/feature/timeout.zig +105 -0
- package/project/.sdk/tm/zig/root.zig +74 -0
- package/project/.sdk/tm/zig/src/feature/README.md +1 -0
- package/project/.sdk/tm/zig/src/feature/audit/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/base/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/cache/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/clienttrack/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/debug/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/idempotency/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/log/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/metrics/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/netsim/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/paging/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/proxy/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/ratelimit/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/rbac/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/retry/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/streaming/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/telemetry/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/test/.gitkeep +0 -0
- package/project/.sdk/tm/zig/src/feature/timeout/.gitkeep +0 -0
- package/project/.sdk/tm/zig/test/feature_test.zig +1045 -0
- package/project/.sdk/tm/zig/test/fh.zig +531 -0
- package/project/.sdk/tm/zig/test/gotcha_test.zig +230 -0
- package/project/.sdk/tm/zig/test/pipeline_test.zig +493 -0
- package/project/.sdk/tm/zig/test/primary_utility_test.zig +346 -0
- package/project/.sdk/tm/zig/test/struct_corpus.zig +1145 -0
- package/project/.sdk/tm/zig/test/struct_runner.zig +226 -0
- package/project/.sdk/tm/zig/utility/jsonparse.zig +13 -0
- package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +779 -0
- package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +4400 -0
|
@@ -0,0 +1,1864 @@
|
|
|
1
|
+
// Behavioural tests for the enterprise features shipped with this SDK
|
|
2
|
+
// (mirrors tm/go/test/feature_test.go). Feature behaviour is unit-tested
|
|
3
|
+
// by driving each feature through a faithful miniature of the real
|
|
4
|
+
// operation pipeline against a configurable mock transport — the same hook
|
|
5
|
+
// order and short-circuit rules as the generated entity op code, but with
|
|
6
|
+
// no live server and no API-specific fixtures. Each block runs only when
|
|
7
|
+
// its feature is present in this SDK (see common::fh_present).
|
|
8
|
+
|
|
9
|
+
mod common;
|
|
10
|
+
|
|
11
|
+
use std::cell::RefCell;
|
|
12
|
+
use std::rc::Rc;
|
|
13
|
+
|
|
14
|
+
use common::*;
|
|
15
|
+
|
|
16
|
+
use RUSTCRATE::core::helpers::{get_bool, get_str, getp, ja, jo, vfn};
|
|
17
|
+
use RUSTCRATE::feature::audit::AuditFeature;
|
|
18
|
+
use RUSTCRATE::feature::cache::CacheFeature;
|
|
19
|
+
use RUSTCRATE::feature::clienttrack::ClienttrackFeature;
|
|
20
|
+
use RUSTCRATE::feature::debug::DebugFeature;
|
|
21
|
+
use RUSTCRATE::feature::idempotency::IdempotencyFeature;
|
|
22
|
+
use RUSTCRATE::feature::metrics::MetricsFeature;
|
|
23
|
+
use RUSTCRATE::feature::netsim::NetsimFeature;
|
|
24
|
+
use RUSTCRATE::feature::paging::PagingFeature;
|
|
25
|
+
use RUSTCRATE::feature::proxy::ProxyFeature;
|
|
26
|
+
use RUSTCRATE::feature::ratelimit::RatelimitFeature;
|
|
27
|
+
use RUSTCRATE::feature::rbac::RbacFeature;
|
|
28
|
+
use RUSTCRATE::feature::retry::RetryFeature;
|
|
29
|
+
use RUSTCRATE::feature::streaming::StreamingFeature;
|
|
30
|
+
use RUSTCRATE::feature::telemetry::TelemetryFeature;
|
|
31
|
+
use RUSTCRATE::feature::timeout::TimeoutFeature;
|
|
32
|
+
use RUSTCRATE::utility::voxgigstruct as vs;
|
|
33
|
+
use RUSTCRATE::{Context, FeatureRef, Value};
|
|
34
|
+
|
|
35
|
+
fn fr<T: RUSTCRATE::Feature + 'static>(f: &Rc<RefCell<T>>) -> FeatureRef {
|
|
36
|
+
f.clone() as FeatureRef
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
fn opspec(op: &str) -> FhOpSpec {
|
|
40
|
+
FhOpSpec {
|
|
41
|
+
op: op.to_string(),
|
|
42
|
+
..Default::default()
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// --- netsim -----------------------------------------------------------------
|
|
47
|
+
|
|
48
|
+
#[test]
|
|
49
|
+
fn feature_netsim_fixed_latency_then_delegate() {
|
|
50
|
+
if !fh_present(&["netsim"]) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
let clock = FhClock::new();
|
|
54
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
55
|
+
let h = fh_make(
|
|
56
|
+
None,
|
|
57
|
+
vec![(
|
|
58
|
+
fr(&f),
|
|
59
|
+
jo(vec![
|
|
60
|
+
("latency", Value::Num(250.0)),
|
|
61
|
+
("sleep", clock.sleep_fn()),
|
|
62
|
+
]),
|
|
63
|
+
)],
|
|
64
|
+
);
|
|
65
|
+
let res = h.op(FhOpSpec {
|
|
66
|
+
op: "load".to_string(),
|
|
67
|
+
ctrl: jo(vec![("explain", Value::empty_map())]),
|
|
68
|
+
..Default::default()
|
|
69
|
+
});
|
|
70
|
+
assert!(res.ok, "expected ok, got err: {:?}", res.err.map(|e| e.msg));
|
|
71
|
+
assert_eq!(clock.t(), 250, "expected 250ms latency");
|
|
72
|
+
assert_eq!(f.borrow().track.borrow().calls, 1, "expected 1 call");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#[test]
|
|
76
|
+
fn feature_netsim_ranged_latency_in_min_max() {
|
|
77
|
+
if !fh_present(&["netsim"]) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let clock = FhClock::new();
|
|
81
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
82
|
+
let h = fh_make(
|
|
83
|
+
None,
|
|
84
|
+
vec![(
|
|
85
|
+
fr(&f),
|
|
86
|
+
jo(vec![
|
|
87
|
+
(
|
|
88
|
+
"latency",
|
|
89
|
+
jo(vec![
|
|
90
|
+
("min", Value::Num(100.0)),
|
|
91
|
+
("max", Value::Num(300.0)),
|
|
92
|
+
]),
|
|
93
|
+
),
|
|
94
|
+
("seed", Value::Num(7.0)),
|
|
95
|
+
("sleep", clock.sleep_fn()),
|
|
96
|
+
]),
|
|
97
|
+
)],
|
|
98
|
+
);
|
|
99
|
+
h.op(opspec("load"));
|
|
100
|
+
assert!(
|
|
101
|
+
clock.t() >= 100 && clock.t() < 300,
|
|
102
|
+
"expected latency in [100,300), got {}",
|
|
103
|
+
clock.t()
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#[test]
|
|
108
|
+
fn feature_netsim_equal_min_max_latency_exact() {
|
|
109
|
+
if !fh_present(&["netsim"]) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
let clock = FhClock::new();
|
|
113
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
114
|
+
let h = fh_make(
|
|
115
|
+
None,
|
|
116
|
+
vec![(
|
|
117
|
+
fr(&f),
|
|
118
|
+
jo(vec![
|
|
119
|
+
(
|
|
120
|
+
"latency",
|
|
121
|
+
jo(vec![("min", Value::Num(50.0)), ("max", Value::Num(50.0))]),
|
|
122
|
+
),
|
|
123
|
+
("sleep", clock.sleep_fn()),
|
|
124
|
+
]),
|
|
125
|
+
)],
|
|
126
|
+
);
|
|
127
|
+
h.op(opspec("load"));
|
|
128
|
+
assert_eq!(clock.t(), 50, "expected exactly 50ms");
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#[test]
|
|
132
|
+
fn feature_netsim_fail_times_returns_retryable_status() {
|
|
133
|
+
if !fh_present(&["netsim"]) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
137
|
+
let h = fh_make(
|
|
138
|
+
None,
|
|
139
|
+
vec![(
|
|
140
|
+
fr(&f),
|
|
141
|
+
jo(vec![
|
|
142
|
+
("failTimes", Value::Num(2.0)),
|
|
143
|
+
("failStatus", Value::Num(503.0)),
|
|
144
|
+
]),
|
|
145
|
+
)],
|
|
146
|
+
);
|
|
147
|
+
let res = h.op(opspec("load"));
|
|
148
|
+
assert_eq!(res.result.unwrap().borrow().status, 503);
|
|
149
|
+
let res = h.op(opspec("load"));
|
|
150
|
+
assert_eq!(res.result.unwrap().borrow().status, 503);
|
|
151
|
+
let res = h.op(opspec("load"));
|
|
152
|
+
assert!(res.ok, "expected third call to succeed");
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
#[test]
|
|
156
|
+
fn feature_netsim_fail_every_fails_every_nth() {
|
|
157
|
+
if !fh_present(&["netsim"]) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
161
|
+
let h = fh_make(
|
|
162
|
+
None,
|
|
163
|
+
vec![(fr(&f), jo(vec![("failEvery", Value::Num(2.0))]))],
|
|
164
|
+
);
|
|
165
|
+
assert!(h.op(opspec("load")).ok, "call 1 should succeed");
|
|
166
|
+
assert!(!h.op(opspec("load")).ok, "call 2 should fail");
|
|
167
|
+
assert!(h.op(opspec("load")).ok, "call 3 should succeed");
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
#[test]
|
|
171
|
+
fn feature_netsim_fail_rate_with_seed_deterministic() {
|
|
172
|
+
if !fh_present(&["netsim"]) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
176
|
+
let h = fh_make(
|
|
177
|
+
None,
|
|
178
|
+
vec![(
|
|
179
|
+
fr(&f),
|
|
180
|
+
jo(vec![("failRate", Value::Num(1.0)), ("seed", Value::Num(5.0))]),
|
|
181
|
+
)],
|
|
182
|
+
);
|
|
183
|
+
assert!(!h.op(opspec("load")).ok, "expected deterministic failure");
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
#[test]
|
|
187
|
+
fn feature_netsim_error_times_connection_error() {
|
|
188
|
+
if !fh_present(&["netsim"]) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
192
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("errorTimes", Value::Num(1.0))]))]);
|
|
193
|
+
let res = h.op(opspec("load"));
|
|
194
|
+
assert_eq!(fh_err_code(&res.err), "netsim_conn");
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
#[test]
|
|
198
|
+
fn feature_netsim_offline_fails_every_call() {
|
|
199
|
+
if !fh_present(&["netsim"]) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
203
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("offline", Value::Bool(true))]))]);
|
|
204
|
+
let res = h.op(opspec("load"));
|
|
205
|
+
assert_eq!(fh_err_code(&res.err), "netsim_offline");
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
#[test]
|
|
209
|
+
fn feature_netsim_rate_limit_times_429_retry_after() {
|
|
210
|
+
if !fh_present(&["netsim"]) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
214
|
+
let h = fh_make(
|
|
215
|
+
None,
|
|
216
|
+
vec![(
|
|
217
|
+
fr(&f),
|
|
218
|
+
jo(vec![
|
|
219
|
+
("rateLimitTimes", Value::Num(1.0)),
|
|
220
|
+
("retryAfter", Value::Num(3.0)),
|
|
221
|
+
]),
|
|
222
|
+
)],
|
|
223
|
+
);
|
|
224
|
+
let res = h.op(opspec("load"));
|
|
225
|
+
let result = res.result.unwrap();
|
|
226
|
+
assert_eq!(result.borrow().status, 429);
|
|
227
|
+
assert_eq!(
|
|
228
|
+
getp(&result.borrow().headers, "retry-after"),
|
|
229
|
+
Value::str("3")
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
#[test]
|
|
234
|
+
fn feature_netsim_inactive_does_not_wrap() {
|
|
235
|
+
if !fh_present(&["netsim"]) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
let f = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
239
|
+
let h = fh_make(
|
|
240
|
+
None,
|
|
241
|
+
vec![(
|
|
242
|
+
fr(&f),
|
|
243
|
+
jo(vec![
|
|
244
|
+
("active", Value::Bool(false)),
|
|
245
|
+
("offline", Value::Bool(true)),
|
|
246
|
+
]),
|
|
247
|
+
)],
|
|
248
|
+
);
|
|
249
|
+
assert!(h.op(opspec("load")).ok, "inactive netsim must not simulate");
|
|
250
|
+
assert_eq!(f.borrow().track.borrow().calls, 0);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// --- retry ------------------------------------------------------------------
|
|
254
|
+
|
|
255
|
+
#[test]
|
|
256
|
+
fn feature_retry_retries_transient_then_succeeds() {
|
|
257
|
+
if !fh_present(&["retry", "netsim"]) {
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
let clock = FhClock::new();
|
|
261
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
262
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
263
|
+
let h = fh_make(
|
|
264
|
+
None,
|
|
265
|
+
vec![
|
|
266
|
+
(
|
|
267
|
+
fr(&nf),
|
|
268
|
+
jo(vec![
|
|
269
|
+
("failTimes", Value::Num(2.0)),
|
|
270
|
+
("failStatus", Value::Num(503.0)),
|
|
271
|
+
]),
|
|
272
|
+
),
|
|
273
|
+
(
|
|
274
|
+
fr(&rf),
|
|
275
|
+
jo(vec![
|
|
276
|
+
("retries", Value::Num(3.0)),
|
|
277
|
+
("minDelay", Value::Num(10.0)),
|
|
278
|
+
("jitter", Value::Bool(false)),
|
|
279
|
+
("sleep", clock.sleep_fn()),
|
|
280
|
+
]),
|
|
281
|
+
),
|
|
282
|
+
],
|
|
283
|
+
);
|
|
284
|
+
let res = h.op(opspec("load"));
|
|
285
|
+
assert!(res.ok, "expected success after retries");
|
|
286
|
+
assert_eq!(rf.borrow().track.borrow().attempts, 2, "expected 2 retries");
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
#[test]
|
|
290
|
+
fn feature_retry_gives_up_after_budget() {
|
|
291
|
+
if !fh_present(&["retry", "netsim"]) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
let clock = FhClock::new();
|
|
295
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
296
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
297
|
+
let h = fh_make(
|
|
298
|
+
None,
|
|
299
|
+
vec![
|
|
300
|
+
(
|
|
301
|
+
fr(&nf),
|
|
302
|
+
jo(vec![
|
|
303
|
+
("failTimes", Value::Num(9.0)),
|
|
304
|
+
("failStatus", Value::Num(500.0)),
|
|
305
|
+
]),
|
|
306
|
+
),
|
|
307
|
+
(
|
|
308
|
+
fr(&rf),
|
|
309
|
+
jo(vec![
|
|
310
|
+
("retries", Value::Num(2.0)),
|
|
311
|
+
("minDelay", Value::Num(1.0)),
|
|
312
|
+
("jitter", Value::Bool(false)),
|
|
313
|
+
("sleep", clock.sleep_fn()),
|
|
314
|
+
]),
|
|
315
|
+
),
|
|
316
|
+
],
|
|
317
|
+
);
|
|
318
|
+
let res = h.op(opspec("load"));
|
|
319
|
+
assert_eq!(res.result.unwrap().borrow().status, 500, "expected final 500");
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
#[test]
|
|
323
|
+
fn feature_retry_does_not_retry_non_retryable_status() {
|
|
324
|
+
if !fh_present(&["retry"]) {
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
let (server, calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
328
|
+
Ok(fh_response(404, Value::Noval, Value::Noval))
|
|
329
|
+
})));
|
|
330
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
331
|
+
let h = fh_make(
|
|
332
|
+
Some(server),
|
|
333
|
+
vec![(
|
|
334
|
+
fr(&rf),
|
|
335
|
+
jo(vec![
|
|
336
|
+
("retries", Value::Num(3.0)),
|
|
337
|
+
("minDelay", Value::Num(0.0)),
|
|
338
|
+
]),
|
|
339
|
+
)],
|
|
340
|
+
);
|
|
341
|
+
h.op(opspec("load"));
|
|
342
|
+
assert_eq!(calls.borrow().len(), 1, "expected 1 call");
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
#[test]
|
|
346
|
+
fn feature_retry_retries_transport_error_then_returns_it() {
|
|
347
|
+
if !fh_present(&["retry"]) {
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
let clock = FhClock::new();
|
|
351
|
+
let n = Rc::new(RefCell::new(0));
|
|
352
|
+
let nc = n.clone();
|
|
353
|
+
let server: RUSTCRATE::FetcherFn = Rc::new(move |ctx: &Rc<Context>, _u, _f| {
|
|
354
|
+
*nc.borrow_mut() += 1;
|
|
355
|
+
Err(ctx.make_error("boom", "boom"))
|
|
356
|
+
});
|
|
357
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
358
|
+
let h = fh_make(
|
|
359
|
+
Some(server),
|
|
360
|
+
vec![(
|
|
361
|
+
fr(&rf),
|
|
362
|
+
jo(vec![
|
|
363
|
+
("retries", Value::Num(2.0)),
|
|
364
|
+
("minDelay", Value::Num(1.0)),
|
|
365
|
+
("jitter", Value::Bool(false)),
|
|
366
|
+
("sleep", clock.sleep_fn()),
|
|
367
|
+
]),
|
|
368
|
+
)],
|
|
369
|
+
);
|
|
370
|
+
let res = h.op(opspec("load"));
|
|
371
|
+
assert!(!res.ok, "expected failure");
|
|
372
|
+
assert_eq!(*n.borrow(), 3, "expected 3 attempts");
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
#[test]
|
|
376
|
+
fn feature_retry_retries_nil_transport_result() {
|
|
377
|
+
if !fh_present(&["retry"]) {
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
let n = Rc::new(RefCell::new(0));
|
|
381
|
+
let nc = n.clone();
|
|
382
|
+
let server: RUSTCRATE::FetcherFn = Rc::new(move |_c: &Rc<Context>, _u, _f| {
|
|
383
|
+
*nc.borrow_mut() += 1;
|
|
384
|
+
if *nc.borrow() < 2 {
|
|
385
|
+
Ok(Value::Noval)
|
|
386
|
+
} else {
|
|
387
|
+
Ok(fh_response(
|
|
388
|
+
200,
|
|
389
|
+
jo(vec![("ok", Value::Bool(true))]),
|
|
390
|
+
Value::Noval,
|
|
391
|
+
))
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
395
|
+
let h = fh_make(
|
|
396
|
+
Some(server),
|
|
397
|
+
vec![(
|
|
398
|
+
fr(&rf),
|
|
399
|
+
jo(vec![
|
|
400
|
+
("retries", Value::Num(3.0)),
|
|
401
|
+
("minDelay", Value::Num(0.0)),
|
|
402
|
+
]),
|
|
403
|
+
)],
|
|
404
|
+
);
|
|
405
|
+
let res = h.op(opspec("load"));
|
|
406
|
+
assert!(res.ok, "expected success");
|
|
407
|
+
assert_eq!(*n.borrow(), 2, "expected 2 attempts");
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
#[test]
|
|
411
|
+
fn feature_retry_honours_server_retry_after() {
|
|
412
|
+
if !fh_present(&["retry", "netsim"]) {
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
let clock = FhClock::new();
|
|
416
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
417
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
418
|
+
let h = fh_make(
|
|
419
|
+
None,
|
|
420
|
+
vec![
|
|
421
|
+
(
|
|
422
|
+
fr(&nf),
|
|
423
|
+
jo(vec![
|
|
424
|
+
("rateLimitTimes", Value::Num(1.0)),
|
|
425
|
+
("retryAfter", Value::Num(2.0)),
|
|
426
|
+
]),
|
|
427
|
+
),
|
|
428
|
+
(
|
|
429
|
+
fr(&rf),
|
|
430
|
+
jo(vec![
|
|
431
|
+
("retries", Value::Num(2.0)),
|
|
432
|
+
("minDelay", Value::Num(10.0)),
|
|
433
|
+
("maxDelay", Value::Num(60000.0)),
|
|
434
|
+
("jitter", Value::Bool(false)),
|
|
435
|
+
("sleep", clock.sleep_fn()),
|
|
436
|
+
]),
|
|
437
|
+
),
|
|
438
|
+
],
|
|
439
|
+
);
|
|
440
|
+
let res = h.op(opspec("load"));
|
|
441
|
+
assert!(res.ok, "expected success");
|
|
442
|
+
assert_eq!(clock.t(), 2000, "expected 2000ms Retry-After wait");
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
#[test]
|
|
446
|
+
fn feature_retry_inactive_does_not_wrap() {
|
|
447
|
+
if !fh_present(&["retry"]) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
let (server, calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
451
|
+
Ok(fh_response(503, Value::Noval, Value::Noval))
|
|
452
|
+
})));
|
|
453
|
+
let rf = Rc::new(RefCell::new(RetryFeature::new()));
|
|
454
|
+
let h = fh_make(
|
|
455
|
+
Some(server),
|
|
456
|
+
vec![(fr(&rf), jo(vec![("active", Value::Bool(false))]))],
|
|
457
|
+
);
|
|
458
|
+
h.op(opspec("load"));
|
|
459
|
+
assert_eq!(calls.borrow().len(), 1, "expected 1 call");
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// --- timeout ----------------------------------------------------------------
|
|
463
|
+
|
|
464
|
+
#[test]
|
|
465
|
+
fn feature_timeout_slow_request_times_out() {
|
|
466
|
+
if !fh_present(&["timeout"]) {
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
let server: RUSTCRATE::FetcherFn = Rc::new(|_c: &Rc<Context>, _u, _f| {
|
|
470
|
+
std::thread::sleep(std::time::Duration::from_millis(60));
|
|
471
|
+
Ok(fh_response(
|
|
472
|
+
200,
|
|
473
|
+
jo(vec![("ok", Value::Bool(true))]),
|
|
474
|
+
Value::Noval,
|
|
475
|
+
))
|
|
476
|
+
});
|
|
477
|
+
let f = Rc::new(RefCell::new(TimeoutFeature::new()));
|
|
478
|
+
let h = fh_make(Some(server), vec![(fr(&f), jo(vec![("ms", Value::Num(10.0))]))]);
|
|
479
|
+
let res = h.op(opspec("load"));
|
|
480
|
+
assert_eq!(fh_err_code(&res.err), "timeout", "expected timeout error");
|
|
481
|
+
assert_eq!(f.borrow().track.borrow().count, 1, "expected 1 timeout");
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
#[test]
|
|
485
|
+
fn feature_timeout_fast_request_passes() {
|
|
486
|
+
if !fh_present(&["timeout"]) {
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
let f = Rc::new(RefCell::new(TimeoutFeature::new()));
|
|
490
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("ms", Value::Num(1000.0))]))]);
|
|
491
|
+
assert!(h.op(opspec("load")).ok, "expected success");
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
#[test]
|
|
495
|
+
fn feature_timeout_ms_zero_disables() {
|
|
496
|
+
if !fh_present(&["timeout"]) {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
let f = Rc::new(RefCell::new(TimeoutFeature::new()));
|
|
500
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("ms", Value::Num(0.0))]))]);
|
|
501
|
+
assert!(h.op(opspec("load")).ok, "expected success");
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
#[test]
|
|
505
|
+
fn feature_timeout_inactive_does_not_wrap() {
|
|
506
|
+
if !fh_present(&["timeout"]) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
let f = Rc::new(RefCell::new(TimeoutFeature::new()));
|
|
510
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
511
|
+
assert!(h.op(opspec("load")).ok, "expected success");
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// --- ratelimit ----------------------------------------------------------------
|
|
515
|
+
|
|
516
|
+
#[test]
|
|
517
|
+
fn feature_ratelimit_throttles_once_burst_spent() {
|
|
518
|
+
if !fh_present(&["ratelimit"]) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
let clock = FhClock::new();
|
|
522
|
+
let f = Rc::new(RefCell::new(RatelimitFeature::new()));
|
|
523
|
+
let h = fh_make(
|
|
524
|
+
None,
|
|
525
|
+
vec![(
|
|
526
|
+
fr(&f),
|
|
527
|
+
jo(vec![
|
|
528
|
+
("rate", Value::Num(1.0)),
|
|
529
|
+
("burst", Value::Num(2.0)),
|
|
530
|
+
("now", clock.now_fn()),
|
|
531
|
+
("sleep", clock.sleep_fn()),
|
|
532
|
+
]),
|
|
533
|
+
)],
|
|
534
|
+
);
|
|
535
|
+
h.op(opspec("load"));
|
|
536
|
+
h.op(opspec("load"));
|
|
537
|
+
h.op(opspec("load"));
|
|
538
|
+
assert_eq!(f.borrow().track.borrow().throttled, 1, "expected 1 throttle");
|
|
539
|
+
assert!(clock.t() > 0, "expected the clock to advance while throttled");
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
#[test]
|
|
543
|
+
fn feature_ratelimit_burst_defaults_to_rate_and_refills() {
|
|
544
|
+
if !fh_present(&["ratelimit"]) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
let clock = FhClock::new();
|
|
548
|
+
let f = Rc::new(RefCell::new(RatelimitFeature::new()));
|
|
549
|
+
let h = fh_make(
|
|
550
|
+
None,
|
|
551
|
+
vec![(
|
|
552
|
+
fr(&f),
|
|
553
|
+
jo(vec![
|
|
554
|
+
("rate", Value::Num(2.0)),
|
|
555
|
+
("now", clock.now_fn()),
|
|
556
|
+
("sleep", clock.sleep_fn()),
|
|
557
|
+
]),
|
|
558
|
+
)],
|
|
559
|
+
);
|
|
560
|
+
h.op(opspec("load"));
|
|
561
|
+
h.op(opspec("load"));
|
|
562
|
+
clock.advance(1000); // refill
|
|
563
|
+
h.op(opspec("load"));
|
|
564
|
+
assert_eq!(
|
|
565
|
+
f.borrow().track.borrow().throttled,
|
|
566
|
+
0,
|
|
567
|
+
"expected no throttling after refill"
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
#[test]
|
|
572
|
+
fn feature_ratelimit_inactive_does_not_wrap() {
|
|
573
|
+
if !fh_present(&["ratelimit"]) {
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
let f = Rc::new(RefCell::new(RatelimitFeature::new()));
|
|
577
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
578
|
+
assert!(h.op(opspec("load")).ok, "expected success");
|
|
579
|
+
assert_eq!(f.borrow().track.borrow().throttled, 0);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// --- cache --------------------------------------------------------------------
|
|
583
|
+
|
|
584
|
+
#[test]
|
|
585
|
+
fn feature_cache_serves_repeated_read_from_cache() {
|
|
586
|
+
if !fh_present(&["cache"]) {
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
let (server, calls) = fh_recorder(None);
|
|
590
|
+
let f = Rc::new(RefCell::new(CacheFeature::new()));
|
|
591
|
+
let h = fh_make(Some(server), vec![(fr(&f), jo(vec![("ttl", Value::Num(10000.0))]))]);
|
|
592
|
+
let a = h.op(FhOpSpec {
|
|
593
|
+
op: "load".to_string(),
|
|
594
|
+
path: "/w/1".to_string(),
|
|
595
|
+
..Default::default()
|
|
596
|
+
});
|
|
597
|
+
let b = h.op(FhOpSpec {
|
|
598
|
+
op: "load".to_string(),
|
|
599
|
+
path: "/w/1".to_string(),
|
|
600
|
+
..Default::default()
|
|
601
|
+
});
|
|
602
|
+
assert_eq!(calls.borrow().len(), 1, "expected 1 network call");
|
|
603
|
+
assert_eq!(
|
|
604
|
+
json_normalize(&a.data),
|
|
605
|
+
json_normalize(&b.data),
|
|
606
|
+
"expected identical cached data"
|
|
607
|
+
);
|
|
608
|
+
assert_eq!(f.borrow().track.borrow().hit, 1, "expected 1 hit");
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
#[test]
|
|
612
|
+
fn feature_cache_does_not_cache_non_get() {
|
|
613
|
+
if !fh_present(&["cache"]) {
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
616
|
+
let (server, calls) = fh_recorder(None);
|
|
617
|
+
let f = Rc::new(RefCell::new(CacheFeature::new()));
|
|
618
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
619
|
+
h.op(FhOpSpec {
|
|
620
|
+
op: "create".to_string(),
|
|
621
|
+
path: "/w".to_string(),
|
|
622
|
+
..Default::default()
|
|
623
|
+
});
|
|
624
|
+
h.op(FhOpSpec {
|
|
625
|
+
op: "create".to_string(),
|
|
626
|
+
path: "/w".to_string(),
|
|
627
|
+
..Default::default()
|
|
628
|
+
});
|
|
629
|
+
assert_eq!(calls.borrow().len(), 2, "expected 2 calls");
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
#[test]
|
|
633
|
+
fn feature_cache_does_not_cache_non_2xx() {
|
|
634
|
+
if !fh_present(&["cache"]) {
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
let (server, calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
638
|
+
Ok(fh_response(500, Value::Noval, Value::Noval))
|
|
639
|
+
})));
|
|
640
|
+
let f = Rc::new(RefCell::new(CacheFeature::new()));
|
|
641
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
642
|
+
h.op(FhOpSpec {
|
|
643
|
+
op: "load".to_string(),
|
|
644
|
+
path: "/w".to_string(),
|
|
645
|
+
..Default::default()
|
|
646
|
+
});
|
|
647
|
+
h.op(FhOpSpec {
|
|
648
|
+
op: "load".to_string(),
|
|
649
|
+
path: "/w".to_string(),
|
|
650
|
+
..Default::default()
|
|
651
|
+
});
|
|
652
|
+
assert_eq!(calls.borrow().len(), 2, "expected 2 calls");
|
|
653
|
+
assert_eq!(f.borrow().track.borrow().bypass, 2, "expected 2 bypasses");
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
#[test]
|
|
657
|
+
fn feature_cache_refetches_after_ttl() {
|
|
658
|
+
if !fh_present(&["cache"]) {
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
let clock = FhClock::new();
|
|
662
|
+
let (server, calls) = fh_recorder(None);
|
|
663
|
+
let f = Rc::new(RefCell::new(CacheFeature::new()));
|
|
664
|
+
let h = fh_make(
|
|
665
|
+
Some(server),
|
|
666
|
+
vec![(
|
|
667
|
+
fr(&f),
|
|
668
|
+
jo(vec![("ttl", Value::Num(1000.0)), ("now", clock.now_fn())]),
|
|
669
|
+
)],
|
|
670
|
+
);
|
|
671
|
+
h.op(FhOpSpec {
|
|
672
|
+
op: "load".to_string(),
|
|
673
|
+
path: "/w".to_string(),
|
|
674
|
+
..Default::default()
|
|
675
|
+
});
|
|
676
|
+
clock.advance(1500);
|
|
677
|
+
h.op(FhOpSpec {
|
|
678
|
+
op: "load".to_string(),
|
|
679
|
+
path: "/w".to_string(),
|
|
680
|
+
..Default::default()
|
|
681
|
+
});
|
|
682
|
+
assert_eq!(calls.borrow().len(), 2, "expected 2 calls after ttl expiry");
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
#[test]
|
|
686
|
+
fn feature_cache_evicts_oldest_past_max() {
|
|
687
|
+
if !fh_present(&["cache"]) {
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
let (server, calls) = fh_recorder(None);
|
|
691
|
+
let f = Rc::new(RefCell::new(CacheFeature::new()));
|
|
692
|
+
let h = fh_make(
|
|
693
|
+
Some(server),
|
|
694
|
+
vec![(
|
|
695
|
+
fr(&f),
|
|
696
|
+
jo(vec![("ttl", Value::Num(10000.0)), ("max", Value::Num(1.0))]),
|
|
697
|
+
)],
|
|
698
|
+
);
|
|
699
|
+
h.op(FhOpSpec {
|
|
700
|
+
op: "load".to_string(),
|
|
701
|
+
path: "/a".to_string(),
|
|
702
|
+
..Default::default()
|
|
703
|
+
});
|
|
704
|
+
h.op(FhOpSpec {
|
|
705
|
+
op: "load".to_string(),
|
|
706
|
+
path: "/b".to_string(),
|
|
707
|
+
..Default::default()
|
|
708
|
+
}); // evicts /a
|
|
709
|
+
h.op(FhOpSpec {
|
|
710
|
+
op: "load".to_string(),
|
|
711
|
+
path: "/a".to_string(),
|
|
712
|
+
..Default::default()
|
|
713
|
+
}); // miss again
|
|
714
|
+
assert_eq!(calls.borrow().len(), 3, "expected 3 calls");
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
#[test]
|
|
718
|
+
fn feature_cache_inactive_does_not_wrap() {
|
|
719
|
+
if !fh_present(&["cache"]) {
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
let (server, calls) = fh_recorder(None);
|
|
723
|
+
let f = Rc::new(RefCell::new(CacheFeature::new()));
|
|
724
|
+
let h = fh_make(
|
|
725
|
+
Some(server),
|
|
726
|
+
vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))],
|
|
727
|
+
);
|
|
728
|
+
h.op(FhOpSpec {
|
|
729
|
+
op: "load".to_string(),
|
|
730
|
+
path: "/x".to_string(),
|
|
731
|
+
..Default::default()
|
|
732
|
+
});
|
|
733
|
+
h.op(FhOpSpec {
|
|
734
|
+
op: "load".to_string(),
|
|
735
|
+
path: "/x".to_string(),
|
|
736
|
+
..Default::default()
|
|
737
|
+
});
|
|
738
|
+
assert_eq!(calls.borrow().len(), 2, "expected 2 calls");
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
// --- idempotency ----------------------------------------------------------------
|
|
742
|
+
|
|
743
|
+
#[test]
|
|
744
|
+
fn feature_idempotency_adds_key_to_mutating_ops() {
|
|
745
|
+
if !fh_present(&["idempotency"]) {
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
let (server, calls) = fh_recorder(None);
|
|
749
|
+
let f = Rc::new(RefCell::new(IdempotencyFeature::new()));
|
|
750
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
751
|
+
h.op(FhOpSpec {
|
|
752
|
+
op: "create".to_string(),
|
|
753
|
+
path: "/w".to_string(),
|
|
754
|
+
..Default::default()
|
|
755
|
+
});
|
|
756
|
+
assert!(
|
|
757
|
+
!getp(&rec_headers(&calls, 0), "Idempotency-Key").is_noval(),
|
|
758
|
+
"expected Idempotency-Key header on create"
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
#[test]
|
|
763
|
+
fn feature_idempotency_adds_key_by_http_method() {
|
|
764
|
+
if !fh_present(&["idempotency"]) {
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
let (server, calls) = fh_recorder(None);
|
|
768
|
+
let f = Rc::new(RefCell::new(IdempotencyFeature::new()));
|
|
769
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
770
|
+
h.op(FhOpSpec {
|
|
771
|
+
op: "act".to_string(),
|
|
772
|
+
method: "PUT".to_string(),
|
|
773
|
+
path: "/w".to_string(),
|
|
774
|
+
..Default::default()
|
|
775
|
+
});
|
|
776
|
+
assert!(
|
|
777
|
+
!getp(&rec_headers(&calls, 0), "Idempotency-Key").is_noval(),
|
|
778
|
+
"expected Idempotency-Key header on PUT"
|
|
779
|
+
);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
#[test]
|
|
783
|
+
fn feature_idempotency_leaves_reads_untouched() {
|
|
784
|
+
if !fh_present(&["idempotency"]) {
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
787
|
+
let (server, calls) = fh_recorder(None);
|
|
788
|
+
let f = Rc::new(RefCell::new(IdempotencyFeature::new()));
|
|
789
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
790
|
+
h.op(FhOpSpec {
|
|
791
|
+
op: "load".to_string(),
|
|
792
|
+
path: "/w/1".to_string(),
|
|
793
|
+
..Default::default()
|
|
794
|
+
});
|
|
795
|
+
assert!(
|
|
796
|
+
getp(&rec_headers(&calls, 0), "Idempotency-Key").is_noval(),
|
|
797
|
+
"expected no Idempotency-Key header on load"
|
|
798
|
+
);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
#[test]
|
|
802
|
+
fn feature_idempotency_preserves_caller_key_custom_header() {
|
|
803
|
+
if !fh_present(&["idempotency"]) {
|
|
804
|
+
return;
|
|
805
|
+
}
|
|
806
|
+
let (server, calls) = fh_recorder(None);
|
|
807
|
+
let f = Rc::new(RefCell::new(IdempotencyFeature::new()));
|
|
808
|
+
let h = fh_make(
|
|
809
|
+
Some(server),
|
|
810
|
+
vec![(fr(&f), jo(vec![("header", Value::str("X-Idem"))]))],
|
|
811
|
+
);
|
|
812
|
+
h.op(FhOpSpec {
|
|
813
|
+
op: "create".to_string(),
|
|
814
|
+
path: "/w".to_string(),
|
|
815
|
+
headers: jo(vec![("X-Idem", Value::str("caller-1"))]),
|
|
816
|
+
..Default::default()
|
|
817
|
+
});
|
|
818
|
+
assert_eq!(
|
|
819
|
+
getp(&rec_headers(&calls, 0), "X-Idem"),
|
|
820
|
+
Value::str("caller-1"),
|
|
821
|
+
"expected caller key preserved"
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
#[test]
|
|
826
|
+
fn feature_idempotency_injected_keygen() {
|
|
827
|
+
if !fh_present(&["idempotency"]) {
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
let (server, calls) = fh_recorder(None);
|
|
831
|
+
let f = Rc::new(RefCell::new(IdempotencyFeature::new()));
|
|
832
|
+
let h = fh_make(
|
|
833
|
+
Some(server),
|
|
834
|
+
vec![(fr(&f), jo(vec![("keygen", vfn(|_v| Value::str("K1")))]))],
|
|
835
|
+
);
|
|
836
|
+
h.op(FhOpSpec {
|
|
837
|
+
op: "create".to_string(),
|
|
838
|
+
path: "/w".to_string(),
|
|
839
|
+
..Default::default()
|
|
840
|
+
});
|
|
841
|
+
assert_eq!(
|
|
842
|
+
getp(&rec_headers(&calls, 0), "Idempotency-Key"),
|
|
843
|
+
Value::str("K1"),
|
|
844
|
+
"expected injected key"
|
|
845
|
+
);
|
|
846
|
+
assert_eq!(f.borrow().last, "K1");
|
|
847
|
+
assert_eq!(f.borrow().issued, 1);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
#[test]
|
|
851
|
+
fn feature_idempotency_inactive_is_noop() {
|
|
852
|
+
if !fh_present(&["idempotency"]) {
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
let (server, calls) = fh_recorder(None);
|
|
856
|
+
let f = Rc::new(RefCell::new(IdempotencyFeature::new()));
|
|
857
|
+
let h = fh_make(
|
|
858
|
+
Some(server),
|
|
859
|
+
vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))],
|
|
860
|
+
);
|
|
861
|
+
h.op(FhOpSpec {
|
|
862
|
+
op: "create".to_string(),
|
|
863
|
+
path: "/w".to_string(),
|
|
864
|
+
..Default::default()
|
|
865
|
+
});
|
|
866
|
+
assert!(
|
|
867
|
+
getp(&rec_headers(&calls, 0), "Idempotency-Key").is_noval(),
|
|
868
|
+
"inactive idempotency must not add a key"
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// --- rbac -----------------------------------------------------------------------
|
|
873
|
+
|
|
874
|
+
#[test]
|
|
875
|
+
fn feature_rbac_denies_before_any_call() {
|
|
876
|
+
if !fh_present(&["rbac"]) {
|
|
877
|
+
return;
|
|
878
|
+
}
|
|
879
|
+
let (server, calls) = fh_recorder(None);
|
|
880
|
+
let f = Rc::new(RefCell::new(RbacFeature::new()));
|
|
881
|
+
let h = fh_make(
|
|
882
|
+
Some(server),
|
|
883
|
+
vec![(
|
|
884
|
+
fr(&f),
|
|
885
|
+
jo(vec![
|
|
886
|
+
("rules", jo(vec![("widget.remove", Value::str("admin"))])),
|
|
887
|
+
("permissions", Value::empty_list()),
|
|
888
|
+
]),
|
|
889
|
+
)],
|
|
890
|
+
);
|
|
891
|
+
let res = h.op(FhOpSpec {
|
|
892
|
+
op: "remove".to_string(),
|
|
893
|
+
path: "/w/1".to_string(),
|
|
894
|
+
..Default::default()
|
|
895
|
+
});
|
|
896
|
+
assert_eq!(fh_err_code(&res.err), "rbac_denied");
|
|
897
|
+
assert_eq!(calls.borrow().len(), 0, "expected no network calls");
|
|
898
|
+
assert_eq!(f.borrow().denied, 1, "expected 1 denial");
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
#[test]
|
|
902
|
+
fn feature_rbac_allows_held_permission() {
|
|
903
|
+
if !fh_present(&["rbac"]) {
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
let f = Rc::new(RefCell::new(RbacFeature::new()));
|
|
907
|
+
let h = fh_make(
|
|
908
|
+
None,
|
|
909
|
+
vec![(
|
|
910
|
+
fr(&f),
|
|
911
|
+
jo(vec![
|
|
912
|
+
("rules", jo(vec![("widget.remove", Value::str("admin"))])),
|
|
913
|
+
("permissions", ja(vec![Value::str("admin")])),
|
|
914
|
+
]),
|
|
915
|
+
)],
|
|
916
|
+
);
|
|
917
|
+
let res = h.op(FhOpSpec {
|
|
918
|
+
op: "remove".to_string(),
|
|
919
|
+
path: "/w/1".to_string(),
|
|
920
|
+
..Default::default()
|
|
921
|
+
});
|
|
922
|
+
assert!(res.ok, "expected allow");
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
#[test]
|
|
926
|
+
fn feature_rbac_op_rule_and_wildcard_grant() {
|
|
927
|
+
if !fh_present(&["rbac"]) {
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
let f = Rc::new(RefCell::new(RbacFeature::new()));
|
|
931
|
+
let h = fh_make(
|
|
932
|
+
None,
|
|
933
|
+
vec![(
|
|
934
|
+
fr(&f),
|
|
935
|
+
jo(vec![
|
|
936
|
+
("rules", jo(vec![("load", Value::str("read"))])),
|
|
937
|
+
("permissions", ja(vec![Value::str("*")])),
|
|
938
|
+
]),
|
|
939
|
+
)],
|
|
940
|
+
);
|
|
941
|
+
assert!(h.op(opspec("load")).ok, "expected wildcard grant");
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
#[test]
|
|
945
|
+
fn feature_rbac_default_allow_and_deny_true() {
|
|
946
|
+
if !fh_present(&["rbac"]) {
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
let fa = Rc::new(RefCell::new(RbacFeature::new()));
|
|
950
|
+
let allow = fh_make(
|
|
951
|
+
None,
|
|
952
|
+
vec![(fr(&fa), jo(vec![("permissions", Value::empty_list())]))],
|
|
953
|
+
);
|
|
954
|
+
assert!(allow.op(opspec("load")).ok, "expected default allow");
|
|
955
|
+
|
|
956
|
+
let fd = Rc::new(RefCell::new(RbacFeature::new()));
|
|
957
|
+
let deny = fh_make(
|
|
958
|
+
None,
|
|
959
|
+
vec![(
|
|
960
|
+
fr(&fd),
|
|
961
|
+
jo(vec![
|
|
962
|
+
("deny", Value::Bool(true)),
|
|
963
|
+
("permissions", Value::empty_list()),
|
|
964
|
+
]),
|
|
965
|
+
)],
|
|
966
|
+
);
|
|
967
|
+
let res = deny.op(opspec("load"));
|
|
968
|
+
assert_eq!(fh_err_code(&res.err), "rbac_denied", "expected default deny");
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
#[test]
|
|
972
|
+
fn feature_rbac_inactive_is_noop() {
|
|
973
|
+
if !fh_present(&["rbac"]) {
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
let f = Rc::new(RefCell::new(RbacFeature::new()));
|
|
977
|
+
let h = fh_make(
|
|
978
|
+
None,
|
|
979
|
+
vec![(
|
|
980
|
+
fr(&f),
|
|
981
|
+
jo(vec![
|
|
982
|
+
("active", Value::Bool(false)),
|
|
983
|
+
("deny", Value::Bool(true)),
|
|
984
|
+
]),
|
|
985
|
+
)],
|
|
986
|
+
);
|
|
987
|
+
assert!(h.op(opspec("load")).ok, "inactive rbac must not deny");
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
// --- metrics --------------------------------------------------------------------
|
|
991
|
+
|
|
992
|
+
#[test]
|
|
993
|
+
fn feature_metrics_counts_ok_and_err_per_op() {
|
|
994
|
+
if !fh_present(&["metrics", "netsim"]) {
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
let f = Rc::new(RefCell::new(MetricsFeature::new()));
|
|
998
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
999
|
+
let h = fh_make(
|
|
1000
|
+
None,
|
|
1001
|
+
vec![
|
|
1002
|
+
(
|
|
1003
|
+
fr(&nf),
|
|
1004
|
+
jo(vec![
|
|
1005
|
+
("failTimes", Value::Num(1.0)),
|
|
1006
|
+
("failStatus", Value::Num(500.0)),
|
|
1007
|
+
]),
|
|
1008
|
+
),
|
|
1009
|
+
(fr(&f), Value::Noval),
|
|
1010
|
+
],
|
|
1011
|
+
);
|
|
1012
|
+
h.op(opspec("load"));
|
|
1013
|
+
h.op(opspec("load"));
|
|
1014
|
+
h.op(opspec("list"));
|
|
1015
|
+
{
|
|
1016
|
+
let fb = f.borrow();
|
|
1017
|
+
assert_eq!(
|
|
1018
|
+
(fb.total.count, fb.total.ok, fb.total.err),
|
|
1019
|
+
(3, 2, 1),
|
|
1020
|
+
"expected total 3/2/1"
|
|
1021
|
+
);
|
|
1022
|
+
let wl = fb.ops.get("widget.load").expect("widget.load bucket");
|
|
1023
|
+
assert_eq!(wl.count, 2, "expected widget.load count 2");
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
#[test]
|
|
1028
|
+
fn feature_metrics_injected_clock() {
|
|
1029
|
+
if !fh_present(&["metrics"]) {
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
let clock = FhClock::new();
|
|
1033
|
+
let f = Rc::new(RefCell::new(MetricsFeature::new()));
|
|
1034
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("now", clock.now_fn())]))]);
|
|
1035
|
+
h.op(opspec("load"));
|
|
1036
|
+
assert_eq!(f.borrow().total.count, 1, "expected 1 recorded op");
|
|
1037
|
+
assert_eq!(f.borrow().total.total_ms, 0, "expected 0ms with frozen clock");
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
#[test]
|
|
1041
|
+
fn feature_metrics_inactive_records_nothing() {
|
|
1042
|
+
if !fh_present(&["metrics"]) {
|
|
1043
|
+
return;
|
|
1044
|
+
}
|
|
1045
|
+
let f = Rc::new(RefCell::new(MetricsFeature::new()));
|
|
1046
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
1047
|
+
h.op(opspec("load"));
|
|
1048
|
+
assert_eq!(f.borrow().total.count, 0, "expected no records");
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// --- telemetry ------------------------------------------------------------------
|
|
1052
|
+
|
|
1053
|
+
#[test]
|
|
1054
|
+
fn feature_telemetry_opens_spans_and_propagates_headers() {
|
|
1055
|
+
if !fh_present(&["telemetry"]) {
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
let (server, calls) = fh_recorder(None);
|
|
1059
|
+
let exported: Rc<RefCell<Vec<Value>>> = Rc::new(RefCell::new(Vec::new()));
|
|
1060
|
+
let ec = exported.clone();
|
|
1061
|
+
let f = Rc::new(RefCell::new(TelemetryFeature::new()));
|
|
1062
|
+
let h = fh_make(
|
|
1063
|
+
Some(server),
|
|
1064
|
+
vec![(
|
|
1065
|
+
fr(&f),
|
|
1066
|
+
jo(vec![(
|
|
1067
|
+
"exporter",
|
|
1068
|
+
vfn(move |span| {
|
|
1069
|
+
ec.borrow_mut().push(span.clone());
|
|
1070
|
+
Value::Noval
|
|
1071
|
+
}),
|
|
1072
|
+
)]),
|
|
1073
|
+
)],
|
|
1074
|
+
);
|
|
1075
|
+
let res = h.op(opspec("load"));
|
|
1076
|
+
assert!(res.ok, "expected success");
|
|
1077
|
+
assert_eq!(f.borrow().spans.len(), 1, "expected 1 span");
|
|
1078
|
+
assert_eq!(exported.borrow().len(), 1, "expected 1 export");
|
|
1079
|
+
let sent = rec_headers(&calls, 0);
|
|
1080
|
+
assert_eq!(
|
|
1081
|
+
getp(&sent, "X-Trace-Id"),
|
|
1082
|
+
getp(&f.borrow().spans[0], "traceId"),
|
|
1083
|
+
"expected propagated trace id"
|
|
1084
|
+
);
|
|
1085
|
+
let traceparent = get_str(&sent, "traceparent").unwrap_or_default();
|
|
1086
|
+
assert!(
|
|
1087
|
+
traceparent.starts_with("00-") && traceparent.ends_with("-01"),
|
|
1088
|
+
"expected W3C traceparent, got {:?}",
|
|
1089
|
+
traceparent
|
|
1090
|
+
);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
#[test]
|
|
1094
|
+
fn feature_telemetry_records_failed_span() {
|
|
1095
|
+
if !fh_present(&["telemetry", "netsim"]) {
|
|
1096
|
+
return;
|
|
1097
|
+
}
|
|
1098
|
+
let f = Rc::new(RefCell::new(TelemetryFeature::new()));
|
|
1099
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
1100
|
+
let h = fh_make(
|
|
1101
|
+
None,
|
|
1102
|
+
vec![
|
|
1103
|
+
(
|
|
1104
|
+
fr(&nf),
|
|
1105
|
+
jo(vec![
|
|
1106
|
+
("failTimes", Value::Num(1.0)),
|
|
1107
|
+
("failStatus", Value::Num(500.0)),
|
|
1108
|
+
]),
|
|
1109
|
+
),
|
|
1110
|
+
(fr(&f), Value::Noval),
|
|
1111
|
+
],
|
|
1112
|
+
);
|
|
1113
|
+
h.op(opspec("load"));
|
|
1114
|
+
let fb = f.borrow();
|
|
1115
|
+
assert_eq!(fb.spans.len(), 1, "expected 1 span");
|
|
1116
|
+
assert_eq!(get_bool(&fb.spans[0], "ok"), Some(false), "expected failed span");
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
#[test]
|
|
1120
|
+
fn feature_telemetry_injected_idgen_and_clock() {
|
|
1121
|
+
if !fh_present(&["telemetry"]) {
|
|
1122
|
+
return;
|
|
1123
|
+
}
|
|
1124
|
+
let clock = FhClock::new();
|
|
1125
|
+
let f = Rc::new(RefCell::new(TelemetryFeature::new()));
|
|
1126
|
+
let h = fh_make(
|
|
1127
|
+
None,
|
|
1128
|
+
vec![(
|
|
1129
|
+
fr(&f),
|
|
1130
|
+
jo(vec![
|
|
1131
|
+
(
|
|
1132
|
+
"idgen",
|
|
1133
|
+
vfn(|kind| {
|
|
1134
|
+
Value::str(format!(
|
|
1135
|
+
"{}-X",
|
|
1136
|
+
get_str(&jo(vec![("k", kind.clone())]), "k")
|
|
1137
|
+
.unwrap_or_default()
|
|
1138
|
+
))
|
|
1139
|
+
}),
|
|
1140
|
+
),
|
|
1141
|
+
("now", clock.now_fn()),
|
|
1142
|
+
]),
|
|
1143
|
+
)],
|
|
1144
|
+
);
|
|
1145
|
+
h.op(opspec("load"));
|
|
1146
|
+
let fb = f.borrow();
|
|
1147
|
+
assert_eq!(getp(&fb.spans[0], "traceId"), Value::str("trace-X"));
|
|
1148
|
+
assert_eq!(getp(&fb.spans[0], "durationMs"), Value::Num(0.0));
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
#[test]
|
|
1152
|
+
fn feature_telemetry_inactive_records_nothing() {
|
|
1153
|
+
if !fh_present(&["telemetry"]) {
|
|
1154
|
+
return;
|
|
1155
|
+
}
|
|
1156
|
+
let f = Rc::new(RefCell::new(TelemetryFeature::new()));
|
|
1157
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
1158
|
+
h.op(opspec("load"));
|
|
1159
|
+
assert_eq!(f.borrow().spans.len(), 0, "expected no spans");
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
// --- debug ----------------------------------------------------------------------
|
|
1163
|
+
|
|
1164
|
+
#[test]
|
|
1165
|
+
fn feature_debug_redacts_and_honours_onentry_max() {
|
|
1166
|
+
if !fh_present(&["debug"]) {
|
|
1167
|
+
return;
|
|
1168
|
+
}
|
|
1169
|
+
let seen: Rc<RefCell<Vec<Value>>> = Rc::new(RefCell::new(Vec::new()));
|
|
1170
|
+
let sc = seen.clone();
|
|
1171
|
+
let f = Rc::new(RefCell::new(DebugFeature::new()));
|
|
1172
|
+
let h = fh_make(
|
|
1173
|
+
None,
|
|
1174
|
+
vec![(
|
|
1175
|
+
fr(&f),
|
|
1176
|
+
jo(vec![
|
|
1177
|
+
("max", Value::Num(1.0)),
|
|
1178
|
+
(
|
|
1179
|
+
"onEntry",
|
|
1180
|
+
vfn(move |e| {
|
|
1181
|
+
sc.borrow_mut().push(e.clone());
|
|
1182
|
+
Value::Noval
|
|
1183
|
+
}),
|
|
1184
|
+
),
|
|
1185
|
+
]),
|
|
1186
|
+
)],
|
|
1187
|
+
);
|
|
1188
|
+
h.op(FhOpSpec {
|
|
1189
|
+
op: "load".to_string(),
|
|
1190
|
+
headers: jo(vec![("authorization", Value::str("Bearer secret"))]),
|
|
1191
|
+
..Default::default()
|
|
1192
|
+
});
|
|
1193
|
+
h.op(opspec("list"));
|
|
1194
|
+
assert_eq!(f.borrow().entries.len(), 1, "expected ring buffer capped at 1");
|
|
1195
|
+
assert_eq!(seen.borrow().len(), 2, "expected onEntry for both ops");
|
|
1196
|
+
let headers = getp(&seen.borrow()[0], "headers");
|
|
1197
|
+
assert_eq!(
|
|
1198
|
+
getp(&headers, "authorization"),
|
|
1199
|
+
Value::str("<redacted>"),
|
|
1200
|
+
"expected redacted authorization"
|
|
1201
|
+
);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
#[test]
|
|
1205
|
+
fn feature_debug_captures_failures() {
|
|
1206
|
+
if !fh_present(&["debug", "netsim"]) {
|
|
1207
|
+
return;
|
|
1208
|
+
}
|
|
1209
|
+
let f = Rc::new(RefCell::new(DebugFeature::new()));
|
|
1210
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
1211
|
+
let h = fh_make(
|
|
1212
|
+
None,
|
|
1213
|
+
vec![
|
|
1214
|
+
(
|
|
1215
|
+
fr(&nf),
|
|
1216
|
+
jo(vec![
|
|
1217
|
+
("failTimes", Value::Num(1.0)),
|
|
1218
|
+
("failStatus", Value::Num(500.0)),
|
|
1219
|
+
]),
|
|
1220
|
+
),
|
|
1221
|
+
(fr(&f), Value::Noval),
|
|
1222
|
+
],
|
|
1223
|
+
);
|
|
1224
|
+
h.op(opspec("load"));
|
|
1225
|
+
let fb = f.borrow();
|
|
1226
|
+
assert_eq!(fb.entries.len(), 1, "expected 1 entry");
|
|
1227
|
+
assert_eq!(get_bool(&fb.entries[0], "ok"), Some(false), "expected failed entry");
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
#[test]
|
|
1231
|
+
fn feature_debug_injected_clock_and_custom_redact() {
|
|
1232
|
+
if !fh_present(&["debug"]) {
|
|
1233
|
+
return;
|
|
1234
|
+
}
|
|
1235
|
+
let clock = FhClock::new();
|
|
1236
|
+
let f = Rc::new(RefCell::new(DebugFeature::new()));
|
|
1237
|
+
let h = fh_make(
|
|
1238
|
+
None,
|
|
1239
|
+
vec![(
|
|
1240
|
+
fr(&f),
|
|
1241
|
+
jo(vec![
|
|
1242
|
+
("now", clock.now_fn()),
|
|
1243
|
+
("redact", ja(vec![Value::str("x-secret")])),
|
|
1244
|
+
]),
|
|
1245
|
+
)],
|
|
1246
|
+
);
|
|
1247
|
+
h.op(FhOpSpec {
|
|
1248
|
+
op: "load".to_string(),
|
|
1249
|
+
headers: jo(vec![
|
|
1250
|
+
("x-secret", Value::str("hide")),
|
|
1251
|
+
("x-ok", Value::str("show")),
|
|
1252
|
+
]),
|
|
1253
|
+
..Default::default()
|
|
1254
|
+
});
|
|
1255
|
+
let fb = f.borrow();
|
|
1256
|
+
let headers = getp(&fb.entries[0], "headers");
|
|
1257
|
+
assert_eq!(getp(&headers, "x-secret"), Value::str("<redacted>"));
|
|
1258
|
+
assert_eq!(getp(&headers, "x-ok"), Value::str("show"));
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
#[test]
|
|
1262
|
+
fn feature_debug_inactive_records_nothing() {
|
|
1263
|
+
if !fh_present(&["debug"]) {
|
|
1264
|
+
return;
|
|
1265
|
+
}
|
|
1266
|
+
let f = Rc::new(RefCell::new(DebugFeature::new()));
|
|
1267
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
1268
|
+
h.op(opspec("load"));
|
|
1269
|
+
assert_eq!(f.borrow().entries.len(), 0, "expected no entries");
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
// --- audit ----------------------------------------------------------------------
|
|
1273
|
+
|
|
1274
|
+
#[test]
|
|
1275
|
+
fn feature_audit_one_record_per_op_sink_actor() {
|
|
1276
|
+
if !fh_present(&["audit", "netsim"]) {
|
|
1277
|
+
return;
|
|
1278
|
+
}
|
|
1279
|
+
let sunk: Rc<RefCell<Vec<Value>>> = Rc::new(RefCell::new(Vec::new()));
|
|
1280
|
+
let sk = sunk.clone();
|
|
1281
|
+
let f = Rc::new(RefCell::new(AuditFeature::new()));
|
|
1282
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
1283
|
+
let h = fh_make(
|
|
1284
|
+
None,
|
|
1285
|
+
vec![
|
|
1286
|
+
(
|
|
1287
|
+
fr(&nf),
|
|
1288
|
+
jo(vec![
|
|
1289
|
+
("failTimes", Value::Num(1.0)),
|
|
1290
|
+
("failStatus", Value::Num(500.0)),
|
|
1291
|
+
]),
|
|
1292
|
+
),
|
|
1293
|
+
(
|
|
1294
|
+
fr(&f),
|
|
1295
|
+
jo(vec![
|
|
1296
|
+
("actor", Value::str("svc")),
|
|
1297
|
+
("max", Value::Num(5.0)),
|
|
1298
|
+
(
|
|
1299
|
+
"sink",
|
|
1300
|
+
vfn(move |r| {
|
|
1301
|
+
sk.borrow_mut().push(r.clone());
|
|
1302
|
+
Value::Noval
|
|
1303
|
+
}),
|
|
1304
|
+
),
|
|
1305
|
+
]),
|
|
1306
|
+
),
|
|
1307
|
+
],
|
|
1308
|
+
);
|
|
1309
|
+
h.op(FhOpSpec {
|
|
1310
|
+
op: "remove".to_string(),
|
|
1311
|
+
path: "/w/1".to_string(),
|
|
1312
|
+
..Default::default()
|
|
1313
|
+
});
|
|
1314
|
+
h.op(FhOpSpec {
|
|
1315
|
+
op: "load".to_string(),
|
|
1316
|
+
ctrl: jo(vec![("actor", Value::str("per-call"))]),
|
|
1317
|
+
..Default::default()
|
|
1318
|
+
});
|
|
1319
|
+
let fb = f.borrow();
|
|
1320
|
+
assert_eq!(fb.records.len(), 2, "expected 2 records");
|
|
1321
|
+
assert_eq!(getp(&fb.records[0], "outcome"), Value::str("error"));
|
|
1322
|
+
assert_eq!(getp(&fb.records[0], "actor"), Value::str("svc"));
|
|
1323
|
+
assert_eq!(getp(&fb.records[1], "actor"), Value::str("per-call"));
|
|
1324
|
+
assert_eq!(sunk.borrow().len(), 2, "expected 2 sunk records");
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
#[test]
|
|
1328
|
+
fn feature_audit_default_actor_anonymous() {
|
|
1329
|
+
if !fh_present(&["audit"]) {
|
|
1330
|
+
return;
|
|
1331
|
+
}
|
|
1332
|
+
let f = Rc::new(RefCell::new(AuditFeature::new()));
|
|
1333
|
+
let h = fh_make(None, vec![(fr(&f), Value::Noval)]);
|
|
1334
|
+
h.op(opspec("load"));
|
|
1335
|
+
assert_eq!(
|
|
1336
|
+
getp(&f.borrow().records[0], "actor"),
|
|
1337
|
+
Value::str("anonymous")
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
#[test]
|
|
1342
|
+
fn feature_audit_injected_clock() {
|
|
1343
|
+
if !fh_present(&["audit"]) {
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
let f = Rc::new(RefCell::new(AuditFeature::new()));
|
|
1347
|
+
let h = fh_make(
|
|
1348
|
+
None,
|
|
1349
|
+
vec![(fr(&f), jo(vec![("now", vfn(|_v| Value::Num(42.0)))]))],
|
|
1350
|
+
);
|
|
1351
|
+
h.op(opspec("load"));
|
|
1352
|
+
assert_eq!(getp(&f.borrow().records[0], "ts"), Value::Num(42.0));
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
#[test]
|
|
1356
|
+
fn feature_audit_inactive_records_nothing() {
|
|
1357
|
+
if !fh_present(&["audit"]) {
|
|
1358
|
+
return;
|
|
1359
|
+
}
|
|
1360
|
+
let f = Rc::new(RefCell::new(AuditFeature::new()));
|
|
1361
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
1362
|
+
h.op(opspec("load"));
|
|
1363
|
+
assert_eq!(f.borrow().records.len(), 0, "expected no records");
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
// --- clienttrack ----------------------------------------------------------------
|
|
1367
|
+
|
|
1368
|
+
#[test]
|
|
1369
|
+
fn feature_clienttrack_stable_client_id_unique_request_ids_ua() {
|
|
1370
|
+
if !fh_present(&["clienttrack"]) {
|
|
1371
|
+
return;
|
|
1372
|
+
}
|
|
1373
|
+
let (server, calls) = fh_recorder(None);
|
|
1374
|
+
let f = Rc::new(RefCell::new(ClienttrackFeature::new()));
|
|
1375
|
+
let h = fh_make(
|
|
1376
|
+
Some(server),
|
|
1377
|
+
vec![(
|
|
1378
|
+
fr(&f),
|
|
1379
|
+
jo(vec![
|
|
1380
|
+
("clientName", Value::str("Acme")),
|
|
1381
|
+
("clientVersion", Value::str("2.0.0")),
|
|
1382
|
+
]),
|
|
1383
|
+
)],
|
|
1384
|
+
);
|
|
1385
|
+
h.op(opspec("load"));
|
|
1386
|
+
h.op(opspec("load"));
|
|
1387
|
+
let h0 = rec_headers(&calls, 0);
|
|
1388
|
+
let h1 = rec_headers(&calls, 1);
|
|
1389
|
+
assert_eq!(getp(&h0, "User-Agent"), Value::str("Acme/2.0.0"));
|
|
1390
|
+
assert_eq!(
|
|
1391
|
+
getp(&h0, "X-Client-Id"),
|
|
1392
|
+
getp(&h1, "X-Client-Id"),
|
|
1393
|
+
"expected stable client id"
|
|
1394
|
+
);
|
|
1395
|
+
assert_ne!(
|
|
1396
|
+
getp(&h0, "X-Request-Id"),
|
|
1397
|
+
getp(&h1, "X-Request-Id"),
|
|
1398
|
+
"expected fresh request ids"
|
|
1399
|
+
);
|
|
1400
|
+
assert_eq!(f.borrow().requests, 2, "expected 2 tracked requests");
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
#[test]
|
|
1404
|
+
fn feature_clienttrack_does_not_clobber_caller_ua() {
|
|
1405
|
+
if !fh_present(&["clienttrack"]) {
|
|
1406
|
+
return;
|
|
1407
|
+
}
|
|
1408
|
+
let (server, calls) = fh_recorder(None);
|
|
1409
|
+
let f = Rc::new(RefCell::new(ClienttrackFeature::new()));
|
|
1410
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
1411
|
+
h.op(FhOpSpec {
|
|
1412
|
+
op: "load".to_string(),
|
|
1413
|
+
headers: jo(vec![("User-Agent", Value::str("mine"))]),
|
|
1414
|
+
..Default::default()
|
|
1415
|
+
});
|
|
1416
|
+
assert_eq!(
|
|
1417
|
+
getp(&rec_headers(&calls, 0), "User-Agent"),
|
|
1418
|
+
Value::str("mine"),
|
|
1419
|
+
"expected caller UA preserved"
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
#[test]
|
|
1424
|
+
fn feature_clienttrack_injected_idgen_fixed_session() {
|
|
1425
|
+
if !fh_present(&["clienttrack"]) {
|
|
1426
|
+
return;
|
|
1427
|
+
}
|
|
1428
|
+
let (server, calls) = fh_recorder(None);
|
|
1429
|
+
let f = Rc::new(RefCell::new(ClienttrackFeature::new()));
|
|
1430
|
+
let h = fh_make(
|
|
1431
|
+
Some(server),
|
|
1432
|
+
vec![(
|
|
1433
|
+
fr(&f),
|
|
1434
|
+
jo(vec![
|
|
1435
|
+
("sessionId", Value::str("S1")),
|
|
1436
|
+
(
|
|
1437
|
+
"idgen",
|
|
1438
|
+
vfn(|kind| match kind {
|
|
1439
|
+
Value::Str(k) => Value::str(format!("{}-1", k)),
|
|
1440
|
+
_ => Value::str("x-1"),
|
|
1441
|
+
}),
|
|
1442
|
+
),
|
|
1443
|
+
]),
|
|
1444
|
+
)],
|
|
1445
|
+
);
|
|
1446
|
+
h.op(opspec("load"));
|
|
1447
|
+
assert_eq!(
|
|
1448
|
+
getp(&rec_headers(&calls, 0), "X-Client-Id"),
|
|
1449
|
+
Value::str("S1"),
|
|
1450
|
+
"expected fixed session"
|
|
1451
|
+
);
|
|
1452
|
+
assert_eq!(
|
|
1453
|
+
getp(&rec_headers(&calls, 0), "X-Request-Id"),
|
|
1454
|
+
Value::str("request-1"),
|
|
1455
|
+
"expected injected request id"
|
|
1456
|
+
);
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
#[test]
|
|
1460
|
+
fn feature_clienttrack_inactive_stamps_nothing() {
|
|
1461
|
+
if !fh_present(&["clienttrack"]) {
|
|
1462
|
+
return;
|
|
1463
|
+
}
|
|
1464
|
+
let (server, calls) = fh_recorder(None);
|
|
1465
|
+
let f = Rc::new(RefCell::new(ClienttrackFeature::new()));
|
|
1466
|
+
let h = fh_make(
|
|
1467
|
+
Some(server),
|
|
1468
|
+
vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))],
|
|
1469
|
+
);
|
|
1470
|
+
h.op(opspec("load"));
|
|
1471
|
+
assert!(
|
|
1472
|
+
getp(&rec_headers(&calls, 0), "X-Client-Id").is_noval(),
|
|
1473
|
+
"inactive clienttrack must not stamp headers"
|
|
1474
|
+
);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
// --- paging ---------------------------------------------------------------------
|
|
1478
|
+
|
|
1479
|
+
#[test]
|
|
1480
|
+
fn feature_paging_stamps_page_limit_and_reads_headers() {
|
|
1481
|
+
if !fh_present(&["paging"]) {
|
|
1482
|
+
return;
|
|
1483
|
+
}
|
|
1484
|
+
let (server, calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
1485
|
+
Ok(fh_response(
|
|
1486
|
+
200,
|
|
1487
|
+
jo(vec![(
|
|
1488
|
+
"items",
|
|
1489
|
+
ja(vec![Value::Num(1.0), Value::Num(2.0)]),
|
|
1490
|
+
)]),
|
|
1491
|
+
jo(vec![
|
|
1492
|
+
("x-next-page", Value::str("2")),
|
|
1493
|
+
("x-total-count", Value::str("5")),
|
|
1494
|
+
("link", Value::str("</w?page=2>; rel=\"next\"")),
|
|
1495
|
+
]),
|
|
1496
|
+
))
|
|
1497
|
+
})));
|
|
1498
|
+
let f = Rc::new(RefCell::new(PagingFeature::new()));
|
|
1499
|
+
let h = fh_make(Some(server), vec![(fr(&f), jo(vec![("limit", Value::Num(2.0))]))]);
|
|
1500
|
+
let res = h.op(FhOpSpec {
|
|
1501
|
+
op: "list".to_string(),
|
|
1502
|
+
path: "/w".to_string(),
|
|
1503
|
+
..Default::default()
|
|
1504
|
+
});
|
|
1505
|
+
assert!(
|
|
1506
|
+
rec_url(&calls, 0).contains("page=1"),
|
|
1507
|
+
"expected page=1 stamped, got {}",
|
|
1508
|
+
rec_url(&calls, 0)
|
|
1509
|
+
);
|
|
1510
|
+
assert!(
|
|
1511
|
+
rec_url(&calls, 0).contains("limit=2"),
|
|
1512
|
+
"expected limit=2 stamped, got {}",
|
|
1513
|
+
rec_url(&calls, 0)
|
|
1514
|
+
);
|
|
1515
|
+
let paging = res.result.unwrap().borrow().paging.clone();
|
|
1516
|
+
assert_eq!(getp(&paging, "nextPage"), Value::Num(2.0));
|
|
1517
|
+
assert_eq!(getp(&paging, "totalCount"), Value::Num(5.0));
|
|
1518
|
+
assert_eq!(getp(&paging, "next"), Value::str("/w?page=2"));
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
#[test]
|
|
1522
|
+
fn feature_paging_body_cursor_and_explicit_cursor() {
|
|
1523
|
+
if !fh_present(&["paging"]) {
|
|
1524
|
+
return;
|
|
1525
|
+
}
|
|
1526
|
+
let (server, calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
1527
|
+
Ok(fh_response(
|
|
1528
|
+
200,
|
|
1529
|
+
jo(vec![
|
|
1530
|
+
("nextCursor", Value::str("abc")),
|
|
1531
|
+
("hasMore", Value::Bool(true)),
|
|
1532
|
+
]),
|
|
1533
|
+
Value::Noval,
|
|
1534
|
+
))
|
|
1535
|
+
})));
|
|
1536
|
+
let f = Rc::new(RefCell::new(PagingFeature::new()));
|
|
1537
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
1538
|
+
let res = h.op(FhOpSpec {
|
|
1539
|
+
op: "list".to_string(),
|
|
1540
|
+
path: "/w".to_string(),
|
|
1541
|
+
ctrl: jo(vec![(
|
|
1542
|
+
"paging",
|
|
1543
|
+
jo(vec![("cursor", Value::str("xyz"))]),
|
|
1544
|
+
)]),
|
|
1545
|
+
..Default::default()
|
|
1546
|
+
});
|
|
1547
|
+
assert!(
|
|
1548
|
+
rec_url(&calls, 0).contains("cursor=xyz"),
|
|
1549
|
+
"expected cursor=xyz stamped, got {}",
|
|
1550
|
+
rec_url(&calls, 0)
|
|
1551
|
+
);
|
|
1552
|
+
let paging = res.result.unwrap().borrow().paging.clone();
|
|
1553
|
+
assert_eq!(getp(&paging, "cursor"), Value::str("abc"));
|
|
1554
|
+
assert_eq!(getp(&paging, "hasMore"), Value::Bool(true));
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
#[test]
|
|
1558
|
+
fn feature_paging_non_list_not_paged() {
|
|
1559
|
+
if !fh_present(&["paging"]) {
|
|
1560
|
+
return;
|
|
1561
|
+
}
|
|
1562
|
+
let (server, calls) = fh_recorder(None);
|
|
1563
|
+
let f = Rc::new(RefCell::new(PagingFeature::new()));
|
|
1564
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
1565
|
+
h.op(FhOpSpec {
|
|
1566
|
+
op: "load".to_string(),
|
|
1567
|
+
path: "/w/1".to_string(),
|
|
1568
|
+
..Default::default()
|
|
1569
|
+
});
|
|
1570
|
+
assert!(
|
|
1571
|
+
!rec_url(&calls, 0).contains("page="),
|
|
1572
|
+
"expected no page param, got {}",
|
|
1573
|
+
rec_url(&calls, 0)
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
#[test]
|
|
1578
|
+
fn feature_paging_inactive_stamps_nothing() {
|
|
1579
|
+
if !fh_present(&["paging"]) {
|
|
1580
|
+
return;
|
|
1581
|
+
}
|
|
1582
|
+
let (server, calls) = fh_recorder(None);
|
|
1583
|
+
let f = Rc::new(RefCell::new(PagingFeature::new()));
|
|
1584
|
+
let h = fh_make(
|
|
1585
|
+
Some(server),
|
|
1586
|
+
vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))],
|
|
1587
|
+
);
|
|
1588
|
+
h.op(FhOpSpec {
|
|
1589
|
+
op: "list".to_string(),
|
|
1590
|
+
path: "/w".to_string(),
|
|
1591
|
+
..Default::default()
|
|
1592
|
+
});
|
|
1593
|
+
assert!(
|
|
1594
|
+
!rec_url(&calls, 0).contains("page="),
|
|
1595
|
+
"inactive paging must not stamp, got {}",
|
|
1596
|
+
rec_url(&calls, 0)
|
|
1597
|
+
);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
// --- streaming ------------------------------------------------------------------
|
|
1601
|
+
|
|
1602
|
+
#[test]
|
|
1603
|
+
fn feature_streaming_streams_list_items() {
|
|
1604
|
+
if !fh_present(&["streaming"]) {
|
|
1605
|
+
return;
|
|
1606
|
+
}
|
|
1607
|
+
let clock = FhClock::new();
|
|
1608
|
+
let (server, _calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
1609
|
+
Ok(fh_response(
|
|
1610
|
+
200,
|
|
1611
|
+
ja(vec![Value::str("a"), Value::str("b"), Value::str("c")]),
|
|
1612
|
+
Value::Noval,
|
|
1613
|
+
))
|
|
1614
|
+
})));
|
|
1615
|
+
let f = Rc::new(RefCell::new(StreamingFeature::new()));
|
|
1616
|
+
let h = fh_make(
|
|
1617
|
+
Some(server),
|
|
1618
|
+
vec![(
|
|
1619
|
+
fr(&f),
|
|
1620
|
+
jo(vec![
|
|
1621
|
+
("chunkDelay", Value::Num(5.0)),
|
|
1622
|
+
("sleep", clock.sleep_fn()),
|
|
1623
|
+
]),
|
|
1624
|
+
)],
|
|
1625
|
+
);
|
|
1626
|
+
let res = h.op(FhOpSpec {
|
|
1627
|
+
op: "list".to_string(),
|
|
1628
|
+
path: "/w".to_string(),
|
|
1629
|
+
..Default::default()
|
|
1630
|
+
});
|
|
1631
|
+
let result = res.result.unwrap();
|
|
1632
|
+
assert!(result.borrow().streaming, "expected streaming result");
|
|
1633
|
+
let stream = result.borrow().stream.clone().expect("expected stream fn");
|
|
1634
|
+
let seen = stream();
|
|
1635
|
+
assert_eq!(
|
|
1636
|
+
Value::list(seen),
|
|
1637
|
+
ja(vec![Value::str("a"), Value::str("b"), Value::str("c")]),
|
|
1638
|
+
"expected streamed items"
|
|
1639
|
+
);
|
|
1640
|
+
assert_eq!(clock.t(), 15, "expected 15ms paced delay");
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
#[test]
|
|
1644
|
+
fn feature_streaming_batches_with_chunksize() {
|
|
1645
|
+
if !fh_present(&["streaming"]) {
|
|
1646
|
+
return;
|
|
1647
|
+
}
|
|
1648
|
+
let (server, _calls) = fh_recorder(Some(Rc::new(|_n, _fd| {
|
|
1649
|
+
Ok(fh_response(
|
|
1650
|
+
200,
|
|
1651
|
+
ja(vec![
|
|
1652
|
+
Value::Num(1.0),
|
|
1653
|
+
Value::Num(2.0),
|
|
1654
|
+
Value::Num(3.0),
|
|
1655
|
+
Value::Num(4.0),
|
|
1656
|
+
Value::Num(5.0),
|
|
1657
|
+
]),
|
|
1658
|
+
Value::Noval,
|
|
1659
|
+
))
|
|
1660
|
+
})));
|
|
1661
|
+
let f = Rc::new(RefCell::new(StreamingFeature::new()));
|
|
1662
|
+
let h = fh_make(
|
|
1663
|
+
Some(server),
|
|
1664
|
+
vec![(fr(&f), jo(vec![("chunkSize", Value::Num(2.0))]))],
|
|
1665
|
+
);
|
|
1666
|
+
let res = h.op(FhOpSpec {
|
|
1667
|
+
op: "list".to_string(),
|
|
1668
|
+
path: "/w".to_string(),
|
|
1669
|
+
..Default::default()
|
|
1670
|
+
});
|
|
1671
|
+
let result = res.result.unwrap();
|
|
1672
|
+
let stream = result.borrow().stream.clone().expect("expected stream fn");
|
|
1673
|
+
let batches = Value::list(stream());
|
|
1674
|
+
let want = ja(vec![
|
|
1675
|
+
ja(vec![Value::Num(1.0), Value::Num(2.0)]),
|
|
1676
|
+
ja(vec![Value::Num(3.0), Value::Num(4.0)]),
|
|
1677
|
+
ja(vec![Value::Num(5.0)]),
|
|
1678
|
+
]);
|
|
1679
|
+
assert_eq!(batches, want, "expected chunked batches");
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
#[test]
|
|
1683
|
+
fn feature_streaming_non_list_not_streamed() {
|
|
1684
|
+
if !fh_present(&["streaming"]) {
|
|
1685
|
+
return;
|
|
1686
|
+
}
|
|
1687
|
+
let f = Rc::new(RefCell::new(StreamingFeature::new()));
|
|
1688
|
+
let h = fh_make(None, vec![(fr(&f), Value::Noval)]);
|
|
1689
|
+
let res = h.op(opspec("load"));
|
|
1690
|
+
let result = res.result.unwrap();
|
|
1691
|
+
assert!(
|
|
1692
|
+
!result.borrow().streaming && result.borrow().stream.is_none(),
|
|
1693
|
+
"expected no stream on a non-list op"
|
|
1694
|
+
);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
#[test]
|
|
1698
|
+
fn feature_streaming_inactive_is_noop() {
|
|
1699
|
+
if !fh_present(&["streaming"]) {
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
let f = Rc::new(RefCell::new(StreamingFeature::new()));
|
|
1703
|
+
let h = fh_make(None, vec![(fr(&f), jo(vec![("active", Value::Bool(false))]))]);
|
|
1704
|
+
let res = h.op(FhOpSpec {
|
|
1705
|
+
op: "list".to_string(),
|
|
1706
|
+
path: "/w".to_string(),
|
|
1707
|
+
..Default::default()
|
|
1708
|
+
});
|
|
1709
|
+
assert!(
|
|
1710
|
+
!res.result.unwrap().borrow().streaming,
|
|
1711
|
+
"inactive streaming must not attach"
|
|
1712
|
+
);
|
|
1713
|
+
assert_eq!(f.borrow().opened, 0, "expected no opened streams");
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
// --- proxy ----------------------------------------------------------------------
|
|
1717
|
+
|
|
1718
|
+
#[test]
|
|
1719
|
+
fn feature_proxy_routes_through_proxy() {
|
|
1720
|
+
if !fh_present(&["proxy"]) {
|
|
1721
|
+
return;
|
|
1722
|
+
}
|
|
1723
|
+
let (server, calls) = fh_recorder(None);
|
|
1724
|
+
let f = Rc::new(RefCell::new(ProxyFeature::new()));
|
|
1725
|
+
let h = fh_make(
|
|
1726
|
+
Some(server),
|
|
1727
|
+
vec![(fr(&f), jo(vec![("url", Value::str("http://proxy:8080"))]))],
|
|
1728
|
+
);
|
|
1729
|
+
h.op(opspec("load"));
|
|
1730
|
+
assert_eq!(
|
|
1731
|
+
getp(&rec_fetchdef(&calls, 0), "proxy"),
|
|
1732
|
+
Value::str("http://proxy:8080"),
|
|
1733
|
+
"expected proxy annotation"
|
|
1734
|
+
);
|
|
1735
|
+
assert_eq!(f.borrow().track.borrow().routed, 1, "expected 1 routed call");
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
#[test]
|
|
1739
|
+
fn feature_proxy_bypasses_noproxy_hosts() {
|
|
1740
|
+
if !fh_present(&["proxy"]) {
|
|
1741
|
+
return;
|
|
1742
|
+
}
|
|
1743
|
+
let (server, calls) = fh_recorder(None);
|
|
1744
|
+
let f = Rc::new(RefCell::new(ProxyFeature::new()));
|
|
1745
|
+
let h = fh_make(
|
|
1746
|
+
Some(server),
|
|
1747
|
+
vec![(
|
|
1748
|
+
fr(&f),
|
|
1749
|
+
jo(vec![
|
|
1750
|
+
("url", Value::str("http://proxy:8080")),
|
|
1751
|
+
("noProxy", ja(vec![Value::str("api.test")])),
|
|
1752
|
+
]),
|
|
1753
|
+
)],
|
|
1754
|
+
);
|
|
1755
|
+
h.op(opspec("load"));
|
|
1756
|
+
assert!(
|
|
1757
|
+
getp(&rec_fetchdef(&calls, 0), "proxy").is_noval(),
|
|
1758
|
+
"expected noProxy bypass"
|
|
1759
|
+
);
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
#[test]
|
|
1763
|
+
fn feature_proxy_fromenv_reads_https_proxy() {
|
|
1764
|
+
if !fh_present(&["proxy"]) {
|
|
1765
|
+
return;
|
|
1766
|
+
}
|
|
1767
|
+
let prev = std::env::var("HTTPS_PROXY").ok();
|
|
1768
|
+
std::env::set_var("HTTPS_PROXY", "http://env-proxy:8080");
|
|
1769
|
+
|
|
1770
|
+
let (server, calls) = fh_recorder(None);
|
|
1771
|
+
let f = Rc::new(RefCell::new(ProxyFeature::new()));
|
|
1772
|
+
let h = fh_make(
|
|
1773
|
+
Some(server),
|
|
1774
|
+
vec![(fr(&f), jo(vec![("fromEnv", Value::Bool(true))]))],
|
|
1775
|
+
);
|
|
1776
|
+
h.op(opspec("load"));
|
|
1777
|
+
|
|
1778
|
+
match prev {
|
|
1779
|
+
Some(v) => std::env::set_var("HTTPS_PROXY", v),
|
|
1780
|
+
None => std::env::remove_var("HTTPS_PROXY"),
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
assert_eq!(
|
|
1784
|
+
getp(&rec_fetchdef(&calls, 0), "proxy"),
|
|
1785
|
+
Value::str("http://env-proxy:8080"),
|
|
1786
|
+
"expected env proxy"
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
#[test]
|
|
1791
|
+
fn feature_proxy_no_url_is_noop() {
|
|
1792
|
+
if !fh_present(&["proxy"]) {
|
|
1793
|
+
return;
|
|
1794
|
+
}
|
|
1795
|
+
let (server, calls) = fh_recorder(None);
|
|
1796
|
+
let f = Rc::new(RefCell::new(ProxyFeature::new()));
|
|
1797
|
+
let h = fh_make(Some(server), vec![(fr(&f), Value::Noval)]);
|
|
1798
|
+
h.op(opspec("load"));
|
|
1799
|
+
assert!(
|
|
1800
|
+
getp(&rec_fetchdef(&calls, 0), "proxy").is_noval(),
|
|
1801
|
+
"expected no proxy annotation"
|
|
1802
|
+
);
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
#[test]
|
|
1806
|
+
fn feature_proxy_inactive_does_not_wrap() {
|
|
1807
|
+
if !fh_present(&["proxy"]) {
|
|
1808
|
+
return;
|
|
1809
|
+
}
|
|
1810
|
+
let (server, calls) = fh_recorder(None);
|
|
1811
|
+
let f = Rc::new(RefCell::new(ProxyFeature::new()));
|
|
1812
|
+
let h = fh_make(
|
|
1813
|
+
Some(server),
|
|
1814
|
+
vec![(
|
|
1815
|
+
fr(&f),
|
|
1816
|
+
jo(vec![
|
|
1817
|
+
("active", Value::Bool(false)),
|
|
1818
|
+
("url", Value::str("http://proxy:8080")),
|
|
1819
|
+
]),
|
|
1820
|
+
)],
|
|
1821
|
+
);
|
|
1822
|
+
h.op(opspec("load"));
|
|
1823
|
+
assert!(
|
|
1824
|
+
getp(&rec_fetchdef(&calls, 0), "proxy").is_noval(),
|
|
1825
|
+
"inactive proxy must not route"
|
|
1826
|
+
);
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
// --- composition ----------------------------------------------------------------
|
|
1830
|
+
|
|
1831
|
+
#[test]
|
|
1832
|
+
fn feature_composition_cache_hit_skips_simulated_failure() {
|
|
1833
|
+
if !fh_present(&["cache", "netsim"]) {
|
|
1834
|
+
return;
|
|
1835
|
+
}
|
|
1836
|
+
let nf = Rc::new(RefCell::new(NetsimFeature::new()));
|
|
1837
|
+
let cf = Rc::new(RefCell::new(CacheFeature::new()));
|
|
1838
|
+
let h = fh_make(
|
|
1839
|
+
None,
|
|
1840
|
+
vec![
|
|
1841
|
+
(fr(&nf), jo(vec![("failEvery", Value::Num(2.0))])),
|
|
1842
|
+
(fr(&cf), jo(vec![("ttl", Value::Num(10000.0))])),
|
|
1843
|
+
],
|
|
1844
|
+
);
|
|
1845
|
+
let res = h.op(FhOpSpec {
|
|
1846
|
+
op: "load".to_string(),
|
|
1847
|
+
path: "/w".to_string(),
|
|
1848
|
+
..Default::default()
|
|
1849
|
+
});
|
|
1850
|
+
assert!(res.ok, "first load should succeed");
|
|
1851
|
+
let res = h.op(FhOpSpec {
|
|
1852
|
+
op: "load".to_string(),
|
|
1853
|
+
path: "/w".to_string(),
|
|
1854
|
+
..Default::default()
|
|
1855
|
+
});
|
|
1856
|
+
assert!(res.ok, "second load should hit the cache");
|
|
1857
|
+
assert_eq!(nf.borrow().track.borrow().calls, 1, "expected 1 simulated call");
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
// keep vs referenced
|
|
1861
|
+
#[test]
|
|
1862
|
+
fn feature_support_smoke() {
|
|
1863
|
+
assert_eq!(vs::stringify(&Value::str("x"), None, false), "x");
|
|
1864
|
+
}
|