---
cases:
  - note: jwtencodesignraw/https://tools.ietf.org/html/rfc7515#appendix-A.1
    query: data.generated.p = x
    modules:
      - "package generated\n\np := x if {\n\tio.jwt.encode_sign_raw(\n\t\t`{\"typ\":\"JWT\",\r\n \"alg\":\"HS256\"}`,\n\t\t`{\"iss\":\"joe\",\r\n \"exp\":1300819380,\r\n \"http://example.com/is_root\":true}`,\n\t\t`{\n\"kty\":\"oct\",\n\"k\":\"AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr1Z9CAow\"\n}`,\n\t\tx,\n\t)\n}\n"
    data: {}
    want_result:
      - x: eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
