qat-reporter-xray-sa 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qat/reporter/xray/publisher/base.rb +16 -15
- data/lib/qat/reporter/xray/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748a3ef24898e18b294005bfe210570471f69df340979cf4489c510525720891
|
4
|
+
data.tar.gz: 3985515fc613971d23d88270f99c4454c4dc4cba6a123bcfea961d0bfc78a3a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b0439e2b5622024cb2d14ebe34b0f82a10defb4712e500b2196ade2f2563ccb05af0322f8c1331e0c6af9037fa3e7f2ea400ae3780de88cb784c3eb03e297c8
|
7
|
+
data.tar.gz: 19839de1ef26797bee4a3acf6c4aae22bdeee72a6d4ea810f7172bc8bb8badd4a568fe6095cce35b9a0ffa2eb2417c7f11752feae475cf2ada9bdb25aced354a
|
@@ -14,9 +14,10 @@ module QAT
|
|
14
14
|
|
15
15
|
# Initializes Xray Publisher url and login information
|
16
16
|
def initialize
|
17
|
-
@base_url
|
18
|
-
@login_credentials
|
19
|
-
@cloud_xray_api_credentials
|
17
|
+
@base_url = QAT::Reporter::Xray::Config.jira_url
|
18
|
+
@login_credentials = QAT::Reporter::Xray::Config.login_credentials
|
19
|
+
@cloud_xray_api_credentials = QAT::Reporter::Xray::Config.cloud_xray_api_credentials
|
20
|
+
@default_cloud_api_url = QAT::Reporter::Xray::Config.xray_default_api_url
|
20
21
|
end
|
21
22
|
|
22
23
|
# Creates a Jira issue
|
@@ -97,18 +98,18 @@ module QAT
|
|
97
98
|
define_method operation do |url, *args|
|
98
99
|
final_url = base_uri + url
|
99
100
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
101
|
+
log_request operation, final_url, args
|
102
|
+
begin
|
103
|
+
response = RestClient.method(operation).call(final_url, *args)
|
104
|
+
log_response response
|
105
|
+
validate response
|
106
|
+
rescue RestClient::ExceptionWithResponse => e
|
107
|
+
puts e.response
|
108
|
+
raise NoConnectionFound.new ('Jira was not found!!!')
|
109
|
+
rescue => exception
|
110
|
+
puts "#{exception.class} #{exception.message.to_s}"
|
111
|
+
raise NoConnectionFound.new ('Jira was not found!!!')
|
112
|
+
end
|
112
113
|
end
|
113
114
|
end
|
114
115
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qat-reporter-xray-sa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- QAT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vcr
|
@@ -98,20 +98,6 @@ dependencies:
|
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
name: graphql-client
|
103
|
-
requirement: !ruby/object:Gem::Requirement
|
104
|
-
requirements:
|
105
|
-
- - ">="
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: '0'
|
108
|
-
type: :runtime
|
109
|
-
prerelease: false
|
110
|
-
version_requirements: !ruby/object:Gem::Requirement
|
111
|
-
requirements:
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: '0'
|
115
101
|
description: |2
|
116
102
|
QAT Report Xray Standalone belongs to QAT Report collection but stand alone version, so no dependencies from other
|
117
103
|
QAT gems are required.
|