From 1c084fdae8e419703c76275724fd46b2d85e4ed9 Mon Sep 17 00:00:00 2001 From: RazenaSaleem Date: Tue, 11 Jun 2024 00:16:47 +0530 Subject: [PATCH] test: add qt test files Signed-off-by: RazenaSaleem --- test/git_azure.yaml | 20 ++++++++++---------- test/git_bitbucket.yaml | 18 +++++++++--------- test/git_gitea.yaml | 14 +++++++------- test/git_github.yaml | 22 +++++++++++----------- test/git_gitlab.yaml | 20 ++++++++++---------- 5 files changed, 47 insertions(+), 47 deletions(-) diff --git a/test/git_azure.yaml b/test/git_azure.yaml index c5684d01..3d678cf6 100644 --- a/test/git_azure.yaml +++ b/test/git_azure.yaml @@ -12,24 +12,24 @@ spec: - key: Content-Type value: application/json specs: - - selector: span[tracetest.span.type="general" name="Tracetest trigger"] + - selector: span[qualitytrace.span.type="general" name="Qualitytrace trigger"] assertions: - - attr:name = "Tracetest trigger" - - attr:tracetest.response.status = 200 - - attr:tracetest.span.name = "Tracetest trigger" - - attr:tracetest.span.type = "general" - - selector: span[tracetest.span.type="http" name="/azure" http.method="POST"] + - attr:name = "Qualitytrace trigger" + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.span.name = "Qualitytrace trigger" + - attr:qualitytrace.span.type = "general" + - selector: span[qualitytrace.span.type="http" name="/azure" http.method="POST"] assertions: - attr:http.method = "POST" - attr:http.route = "/azure" - attr:http.scheme = "http" - attr:net.host.name = "kubviz" - - attr:tracetest.span.type = "http" + - attr:qualitytrace.span.type = "http" - attr:name = "/azure" - attr:http.status_code = 200 - - selector: span[tracetest.span.type="http" name="PostAzure" http.method="POST"] + - selector: span[qualitytrace.span.type="http" name="PostAzure" http.method="POST"] assertions: - attr:name = "PostAzure" - attr:http.method = "POST" - - attr:tracetest.span.name = "PostAzure" - - attr:tracetest.span.type = "http" + - attr:qualitytrace.span.name = "PostAzure" + - attr:qualitytrace.span.type = "http" \ No newline at end of file diff --git a/test/git_bitbucket.yaml b/test/git_bitbucket.yaml index be2c17e3..9b79bf10 100644 --- a/test/git_bitbucket.yaml +++ b/test/git_bitbucket.yaml @@ -14,12 +14,12 @@ spec: - key: X-Event-Key value: repo:push specs: - - selector: span[tracetest.span.type="general" name="Tracetest trigger"] + - selector: span[qualitytrace.span.type="general" name="Qualitytrace trigger"] assertions: - - attr:name = "Tracetest trigger" - - attr:tracetest.response.status = 200 - - attr:tracetest.span.type = "general" - - selector: span[tracetest.span.type="http" name="/bitbucket" http.method="POST"] + - attr:name = "Qualitytrace trigger" + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.span.type = "general" + - selector: span[qualitytrace.span.type="http" name="/bitbucket" http.method="POST"] assertions: - attr:http.method = "POST" - attr:http.route = "/bitbucket" @@ -27,9 +27,9 @@ spec: - attr:http.status_code = 200 - attr:name = "/bitbucket" - attr:net.host.name = "kubviz" - - attr:tracetest.span.type = "http" - - selector: span[tracetest.span.type="http" name="PostBitbucket" http.method="POST"] + - attr:qualitytrace.span.type = "http" + - selector: span[qualitytrace.span.type="http" name="PostBitbucket" http.method="POST"] assertions: - attr:http.method = "POST" - - attr:tracetest.span.name = "PostBitbucket" - - attr:tracetest.span.type = "http" + - attr:qualitytrace.span.name = "PostBitbucket" + - attr:qualitytrace.span.type = "http" \ No newline at end of file diff --git a/test/git_gitea.yaml b/test/git_gitea.yaml index 0c48bb22..780605e2 100644 --- a/test/git_gitea.yaml +++ b/test/git_gitea.yaml @@ -14,17 +14,17 @@ spec: - key: X-Gitea-Event value: push specs: - - selector: span[tracetest.span.type="general" name="Tracetest trigger"] + - selector: span[qualitytrace.span.type="general" name="Qualitytrace trigger"] assertions: - - attr:tracetest.response.status = 200 - - attr:tracetest.span.name = "Tracetest trigger" - - attr:tracetest.span.type = "general" - - selector: span[tracetest.span.type="http" name="/gitea" http.method="POST"] + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.span.name = "Qualitytrace trigger" + - attr:qualitytrace.span.type = "general" + - selector: span[qualitytrace.span.type="http" name="/gitea" http.method="POST"] assertions: - attr:http.method = "POST" - attr:http.route = "/gitea" - attr:http.scheme = "http" - attr:http.status_code = 200 - attr:net.host.name = "kubviz" - - attr:tracetest.span.name = "/gitea" - - attr:tracetest.span.type = "http" + - attr:qualitytrace.span.name = "/gitea" + - attr:qualitytrace.span.type = "http" \ No newline at end of file diff --git a/test/git_github.yaml b/test/git_github.yaml index edcc6c39..5709137b 100644 --- a/test/git_github.yaml +++ b/test/git_github.yaml @@ -14,24 +14,24 @@ spec: - key: X-GitHub-Event value: push specs: - - selector: span[tracetest.span.type="general" name="Tracetest trigger"] + - selector: span[qualitytrace.span.type="general" name="Qualitytrace trigger"] assertions: - - attr:name = "Tracetest trigger" - - attr:tracetest.response.status = 200 - - attr:tracetest.span.name = "Tracetest trigger" - - attr:tracetest.span.type = "general" - - selector: span[tracetest.span.type="http" name="/github" http.method="POST"] + - attr:name = "Qualitytrace trigger" + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.span.name = "Qualitytrace trigger" + - attr:qualitytrace.span.type = "general" + - selector: span[qualitytrace.span.type="http" name="/github" http.method="POST"] assertions: - attr:http.method = "POST" - attr:http.route = "/github" - attr:http.scheme = "http" - attr:http.status_code = 200 - attr:net.host.name = "kubviz" - - attr:tracetest.span.name = "/github" - - attr:tracetest.span.type = "http" - - selector: span[tracetest.span.type="http" name="PostGithub" http.method="POST"] + - attr:qualitytrace.span.name = "/github" + - attr:qualitytrace.span.type = "http" + - selector: span[qualitytrace.span.type="http" name="PostGithub" http.method="POST"] assertions: - attr:http.method = "POST" - attr:name = "PostGithub" - - attr:tracetest.span.name = "PostGithub" - - attr:tracetest.span.type = "http" + - attr:qualitytrace.span.name = "PostGithub" + - attr:qualitytrace.span.type = "http" \ No newline at end of file diff --git a/test/git_gitlab.yaml b/test/git_gitlab.yaml index 17dcc419..e9bd62c2 100644 --- a/test/git_gitlab.yaml +++ b/test/git_gitlab.yaml @@ -14,21 +14,21 @@ spec: - key: X-Gitlab-Event value: Push Hook specs: - - selector: span[tracetest.span.type="general" name="Tracetest trigger"] + - selector: span[qualitytrace.span.type="general" name="Qualitytrace trigger"] assertions: - - attr:name = "Tracetest trigger" - - attr:tracetest.response.status = 200 - - attr:tracetest.span.type = "general" - - selector: span[tracetest.span.type="http" name="/gitlab" http.method="POST"] + - attr:name = "Qualitytrace trigger" + - attr:qualitytrace.response.status = 200 + - attr:qualitytrace.span.type = "general" + - selector: span[qualitytrace.span.type="http" name="/gitlab" http.method="POST"] assertions: - attr:http.method = "POST" - attr:http.route = "/gitlab" - attr:http.status_code = 200 - attr:net.host.name = "kubviz" - - attr:tracetest.span.name = "/gitlab" - - attr:tracetest.span.type = "http" - - selector: span[tracetest.span.type="http" name="PostGitlab" http.method="POST"] + - attr:qualitytrace.span.name = "/gitlab" + - attr:qualitytrace.span.type = "http" + - selector: span[qualitytrace.span.type="http" name="PostGitlab" http.method="POST"] assertions: - attr:http.method = "POST" - - attr:tracetest.span.name = "PostGitlab" - - attr:tracetest.span.type = "http" + - attr:qualitytrace.span.name = "PostGitlab" + - attr:qualitytrace.span.type = "http" \ No newline at end of file