Skip to content

Commit

Permalink
test: add qt test files
Browse files Browse the repository at this point in the history
Signed-off-by: RazenaSaleem <[email protected]>
  • Loading branch information
RazenaSaleem committed Jun 10, 2024
1 parent 64704fa commit 1c084fd
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 47 deletions.
20 changes: 10 additions & 10 deletions test/git_azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
18 changes: 9 additions & 9 deletions test/git_bitbucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ 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"
- attr:http.scheme = "http"
- 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"
14 changes: 7 additions & 7 deletions test/git_gitea.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
22 changes: 11 additions & 11 deletions test/git_github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
20 changes: 10 additions & 10 deletions test/git_gitlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 1c084fd

Please sign in to comment.