From 75f788a28ddc7f1bc459cd5ccee5f1ef59470dcf Mon Sep 17 00:00:00 2001
From: Sergey Yakubov <sergey.yakubov@desy.de>
Date: Tue, 18 Sep 2018 18:05:17 +0200
Subject: [PATCH] more nomad files

---
 .../asapo-test_filegen_filemon.nomad          | 163 ++++++++++++++++++
 ...apo-test_filemon_producer_toreceiver.nomad |   6 +-
 2 files changed, 166 insertions(+), 3 deletions(-)
 create mode 100644 tests/manual/tests_via_nomad/asapo-test_filegen_filemon.nomad

diff --git a/tests/manual/tests_via_nomad/asapo-test_filegen_filemon.nomad b/tests/manual/tests_via_nomad/asapo-test_filegen_filemon.nomad
new file mode 100644
index 000000000..c5181c44b
--- /dev/null
+++ b/tests/manual/tests_via_nomad/asapo-test_filegen_filemon.nomad
@@ -0,0 +1,163 @@
+job "asapo-test" {
+  datacenters = [
+    "dc1"]
+
+  type = "batch"
+
+  group "filegen-windows" {
+
+    constraint {
+      attribute = "${attr.kernel.name}"
+      value = "windows"
+    }
+
+    count = 1
+
+    task "filegen" {
+      driver = "raw_exec"
+
+      config {
+        command = "local/filegen_win.exe"
+        args = [
+          "1",
+          "1M",
+          "10",
+          "c:/tmp/asapo/test_in/test_folder/file_win"]
+      }
+
+      artifact {
+        source = "http://nims.desy.de/extra/asapo/filegen_win.exe"
+        mode = "file"
+        destination = "local/filegen_win.exe"
+      }
+    }
+
+
+  }
+  #windows
+
+  group "filegen-linux" {
+
+    constraint {
+      attribute = "${attr.kernel.name}"
+      value = "linux"
+    }
+
+    constraint {
+      attribute = "${meta.location}"
+      value = "petra3"
+    }
+
+    count = 1
+
+    task "filegen" {
+      driver = "raw_exec"
+
+      config {
+        command = "local/filegen_linux"
+        args = [
+          "1",
+          "1M",
+          "10",
+          "/tmp/asapo/test_in/test_folder/file_lin_"]
+      }
+
+      artifact {
+        source = "http://nims.desy.de/extra/asapo/filegen_linux"
+        mode = "file"
+        destination = "local/filegen_linux"
+      }
+    }
+
+  }
+
+
+  group "worker-linux1" {
+
+    constraint {
+      attribute = "${attr.kernel.name}"
+      value = "linux"
+    }
+
+    #    constraint {
+    #      attribute = "${meta.location}"
+    #      operator = "!="
+    #      value = "petra3"
+    #    }
+
+    count = 1
+
+    task "worker-linux" {
+      driver = "raw_exec"
+
+      config {
+        command = "local/getnext_broker"
+        args = [
+          "psana002:8400",
+          "asapo_test1",
+          "16",
+          "oTsKsj8i6WcW_gVzeIFvZCtSfMErjDELJEyAI23n7Ik=",
+          "30000"]
+      }
+
+      resources {
+        cpu = 5000
+        memory = 128
+        network {
+          mbits = 10000
+        }
+      }
+
+      artifact {
+        source = "http://nims.desy.de/extra/asapo/getnext_broker"
+      }
+    }
+
+  }
+  # worker-linux1
+
+
+  group "worker-linux2" {
+
+    constraint {
+      attribute = "${attr.kernel.name}"
+      value = "linux"
+    }
+
+    #    constraint {
+    #      attribute = "${meta.location}"
+    #      operator = "!="
+    #      value = "petra3"
+    #    }
+
+    count = 1
+
+    task "worker-linux" {
+      driver = "raw_exec"
+
+      config {
+        command = "local/getnext_broker"
+        args = [
+          "psana002:8400",
+          "asapo_test2",
+          "16",
+          "yzgAcLmijSLWIm8dBiGNCbc0i42u5HSm-zR6FRqo__Y=",
+          "30000"]
+      }
+      resources {
+        cpu = 5000
+        memory = 128
+        network {
+          mbits = 10000
+        }
+      }
+
+      artifact {
+        source = "http://nims.desy.de/extra/asapo/getnext_broker"
+      }
+    }
+
+  }
+  # worker-linux2
+
+}
diff --git a/tests/manual/tests_via_nomad/asapo-test_filemon_producer_toreceiver.nomad b/tests/manual/tests_via_nomad/asapo-test_filemon_producer_toreceiver.nomad
index 99bb0952c..eb22e67a0 100644
--- a/tests/manual/tests_via_nomad/asapo-test_filemon_producer_toreceiver.nomad
+++ b/tests/manual/tests_via_nomad/asapo-test_filemon_producer_toreceiver.nomad
@@ -1,4 +1,4 @@
-job "asapo-produceronly" {
+job "asapo-filemon-producer" {
   datacenters = [
     "dc1"]
 
@@ -34,7 +34,7 @@ job "asapo-produceronly" {
  "Tag":"test_tag",
  "BeamtimeID":"asapo_test1",
  "Mode":"tcp",
- "NThreads":1,
+ "NThreads":8,
  "LogLevel":"debug",
  "RootMonitoredFolder":"c:\\tmp\\asapo\\test_in",
  "MonitoredSubFolders":["test_folder"],
@@ -90,7 +90,7 @@ job "asapo-produceronly" {
  "Tag":"test_tag",
  "BeamtimeID":"asapo_test2",
  "Mode":"tcp",
- "NThreads":1,
+ "NThreads":8,
  "LogLevel":"debug",
  "RootMonitoredFolder":"/tmp/asapo/test_in",
  "MonitoredSubFolders":["test_folder"],
-- 
GitLab