From 774f6f320aad539a590366abb612f7dc071ad7ed Mon Sep 17 00:00:00 2001
From: Konrad Botor <kbotor@syncad.com>
Date: Thu, 8 Dec 2022 13:18:07 +0100
Subject: [PATCH] Added comparison job template - ref. hive/hive#406

---
 templates/test_jobs.gitlab-ci.yml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/templates/test_jobs.gitlab-ci.yml b/templates/test_jobs.gitlab-ci.yml
index 600be3c..ed41cb0 100644
--- a/templates/test_jobs.gitlab-ci.yml
+++ b/templates/test_jobs.gitlab-ci.yml
@@ -1,6 +1,7 @@
 variables:
   BENCHMARK_IMAGE_TAG: "latest"
   TOX_IMAGE_TAG: "latest"
+  APP_PORT: 0
 
 .jmeter_benchmark_job:
   image: registry.gitlab.syncad.com/hive/common-ci-configuration/benchmark-test-runner:${BENCHMARK_IMAGE_TAG}
@@ -25,7 +26,7 @@ variables:
     when: always
     expire_in: 6 hours
 
-.pattern_tests:
+.pattern_tests_template:
   extends: .tox_test_job
   variables:
     ENDPOINT: app:$APP_PORT
@@ -37,3 +38,12 @@ variables:
         PG_ACCESS: "host    haf_block_log    haf_app_admin    0.0.0.0/0    trust"
     - name: $APP_IMAGE
       alias: app
+
+.comparison_tests_template:
+  extends: .pattern_tests_template
+  variables:
+    HIVED_ENDPOINT: hived-instance:8090
+    services:
+    - !reference [.pattern_tests_template, services]
+    - name: $HIVED_IMAGE_NAME
+      alias: hived-instance
\ No newline at end of file
-- 
GitLab