zgen_client 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zgen_client.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d866687367e9374c56f191a7f410d645a89ab43a5697561af50f9ee8e40f1ca
|
4
|
+
data.tar.gz: 7d14715cb85e5487aee2a5226aca370a578fe89aa0fbe36dc99f27e58ace2527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bbb1d476c77c40d4aa774ffcd8aa41a3ae531e40dfb1b163803d1e92f67d6c8f80dc7c9f95b5778abdb488885beb2aba374f2b67927395baacd6a7bb06ae012
|
7
|
+
data.tar.gz: d27d5af08e97c24505415ca5b0ba466bf0d962dca6c64ddf1978069c0155dd52e9b01e2f8a82ce28f67a8ffdbce63cbc561f21e87925a55d70c76a242d2c22a3
|
data/lib/zgen_client.rb
CHANGED
@@ -47,13 +47,13 @@ class ZgenClient
|
|
47
47
|
# An attachment is persisted to the result of a test case.
|
48
48
|
# @param test_result_id [String] Test result id
|
49
49
|
# @param evidence [File] Evidence file
|
50
|
-
# @return
|
50
|
+
# @return [String] Attachment id
|
51
51
|
def post_attachment(test_result_id:, evidence:)
|
52
52
|
url = "#{build_base_url()}/#{@@attachment_endpoint}"
|
53
53
|
headers = { :Authorization => "Bearer #{get_token()}" }
|
54
|
-
body = { :
|
54
|
+
body = { :File => evidence, :TestResultId => test_result_id }
|
55
55
|
response = RestClient.post(url, body, headers)
|
56
|
-
JSON.parse(response.body
|
56
|
+
JSON.parse(response.body)["attachmentID"]
|
57
57
|
end
|
58
58
|
|
59
59
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zgen_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Silva Sousa
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2.3'
|
47
|
-
description: The REST Client for
|
47
|
+
description: The REST Client for Zgen/Knooly API
|
48
48
|
email: guilherme.sousa@keeggo.com
|
49
49
|
executables: []
|
50
50
|
extensions: []
|
@@ -73,5 +73,5 @@ requirements: []
|
|
73
73
|
rubygems_version: 3.2.32
|
74
74
|
signing_key:
|
75
75
|
specification_version: 4
|
76
|
-
summary:
|
76
|
+
summary: Zgen Client
|
77
77
|
test_files: []
|