content: /*
   * Copyright 2021-2024 Aklivity Inc
   *
   * Licensed under the Aklivity Community License (the "License"); you may not use
   * this file except in compliance with the License.  You may obtain a copy of the
   * License at
   *
   *   https://www.aklivity.io/aklivity-community-license/
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   * WARRANTIES OF ANY KIND, either express or implied.  See the License for the
   * specific language governing permissions and limitations under the License.
   */
  package io.aklivity.zilla.specs.binding.http.filesystem.streams;
  
  import static java.util.concurrent.TimeUnit.SECONDS;
  import static org.junit.rules.RuleChain.outerRule;
  
  import org.junit.Rule;
  import org.junit.Test;
  import org.junit.rules.DisableOnDebug;
  import org.junit.rules.TestRule;
  import org.junit.rules.Timeout;
  
  import io.aklivity.k3po.runtime.junit.annotation.Specification;
  import io.aklivity.k3po.runtime.junit.rules.K3poRule;
  
  public class HttpIT
  {
      private final K3poRule k3po = new K3poRule()
          .addScriptRoot("http", "io/aklivity/zilla/specs/binding/http/filesystem/streams/http");
  
      private final TestRule timeout = new DisableOnDebug(new Timeout(5, SECONDS));
  
      @Rule
      public final TestRule chain = outerRule(k3po).around(timeout);
  
      @Test
      @Specification({
          "${http}/client.read.file/client",
          "${http}/client.read.file/server"})
      public void shouldReceiveClientReadFile() throws Exception
      {
          k3po.finish();
      }
  
  
      @Test
      @Specification({
          "${http}/client.read.file.map.modified/client",
          "${http}/client.read.file.map.modified/server"})
      public void shouldReceiveClientReadFileMapModified() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.read.file.map.not.modified/client",
          "${http}/client.read.file.map.not.modified/server"})
      public void shouldReceiveClientReadFileMapNotModified() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.read.file.with.query/client",
          "${http}/client.read.file.with.query/server"})
      public void shouldReceiveClientReadFileWithQuery() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.read.file.info/client",
          "${http}/client.read.file.info/server"})
      public void shouldReceiveClientReadFileInfo() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.rejected/client",
          "${http}/client.rejected/server"})
      public void shouldRejectClient() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.sent.message/client",
          "${http}/client.sent.message/server"})
      public void shouldRejectClientSentMessage() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.sent.reset/client",
          "${http}/client.sent.reset/server"})
      public void shouldReceiveClientSentReset() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.sent.abort/client",
          "${http}/client.sent.abort/server"})
      public void shouldReceiveClientSentAbort() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/server.sent.abort/client",
          "${http}/server.sent.abort/server"})
      public void shouldReceiveServerSentAbort() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/server.sent.reset/client",
          "${http}/server.sent.reset/server"})
      public void shouldReceiveServerSentReset() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/server.sent.flush/client",
          "${http}/server.sent.flush/server"})
      public void shouldReceiveServerSentFlush() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.create.file/client",
          "${http}/client.create.file/server"})
      public void shouldReceiveClientCreateFile() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.create.existing.file.failed/client",
          "${http}/client.create.existing.file.failed/server"})
      public void shouldRejectClientCreateExistingFileFailed() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.write.file/client",
          "${http}/client.write.file/server"})
      public void shouldReceiveClientWriteFile() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.write.file.failed/client",
          "${http}/client.write.file.failed/server"})
      public void shouldRejectClientWriteFileFailed() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.delete.file/client",
          "${http}/client.delete.file/server"})
      public void shouldReceiveClientDeleteFile() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.delete.non.existent.file/client",
          "${http}/client.delete.non.existent.file/server"})
      public void shouldRejectClientDeleteNonExistentFile() throws Exception
      {
          k3po.finish();
      }
  
      @Test
      @Specification({
          "${http}/client.read.directory/client",
          "${http}/client.read.directory/server"})
      public void shouldReceiveClientReadDirectory() throws Exception
      {
          k3po.finish();
      }
  }
  