title: Using opa http.send with conftest
body: <p>I have a question about data importing and the execution of built-in opa function when using <em>conftest</em>. In the below code sample I have two modules <code>abc</code> and <code>main</code>. I've conveniently left out some of the set up for <code>abc</code> all that matters is that it's a working https call.</p>
  <p>Working from the repl my code executes exactly as I intended, fetch data on the fly i.e. <code>available</code> and check if <code>stuff</code> is in that list. <code>opa run -b .</code>  then hitting <code>data.abc</code> executes the https call i.e. I can see packets leave my interface and a response body containing the list I need is pulled in. I then get the expected result from <code>deny</code>. The same thing happens when running <code>opa test . -v</code>.</p>
  <p>However running <code>conftest verify -p .</code> or <code> conftest test abc/main.json -p .</code> never executes <code>http.send</code> i.e. packets never leave my interface for the expected host.</p>
  <p>I could use a static list rather than using the https call but I don't control when the list is updated. Is this expected/intended limitation of conftest? Can I execute these functions to build my data document and am I importing it correctly?</p>
  <pre><code>package abc
  
  available = http.send(
    {
    &quot;method&quot;: &quot;get&quot;,
    &quot;url&quot;: request.url,
    &quot;headers&quot;: headers
    }
  )
  </code></pre>
  <pre><code>package main
  import data.abc.available
  
  deny[msg] {
      stuff := input.stuff
      not available.body[stuff]
      msg := sprintf(&quot;%v is not available&quot;, [stuff])
  }
  </code></pre>