---
cases:
  - note: jwtencodesignheadererrors/unknown signature algorithm
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := x if {
        	io.jwt.encode_sign_raw("{\"alg\":\"dummy\"}", "{\"iss\":\"joe\",\r\n \"exp\":1300819380,\r\n \"http://example.com/is_root\":true}", "{\n\"kty\":\"oct\",\n\"k\":\"AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr1Z9CAow\"\n}", x)
        }
    data: {}
    want_error_code: eval_builtin_error
    want_error: 'unknown JWS algorithm: dummy'
    strict_error: true
