itriagetestrail 1.0.40 → 1.0.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de08d49f031edbd534051937115c969f604b2319293163131a071a5464eea025
4
- data.tar.gz: 75713086bcd2cd32d45d8e9f5d47b519f2f8093cbc813854331fb179540fde23
3
+ metadata.gz: a9e43873e3f892151838043b2e3bfd437c71d7a3ca09816611c6c5157a0963c1
4
+ data.tar.gz: e050287f8570d73159cbf8728e860d09021323fcc9c4925f86f1339e25dbdaa6
5
5
  SHA512:
6
- metadata.gz: f64a70ffd018a5e162f22a2617e07f02decb59e08b1889bcbeb558caf34037d791375b7ccd5676c5c0c879b8a482b6f9f414dd4ba63ace8074ec501bb823ab01
7
- data.tar.gz: 8041138125b6479792744190a8c02fad2c7c4781c8e2091e47c9b24f3fa46604a8ce198c6e1fe580f3d29becabc8f5f4e2d942302ec7fab0ad8a63f0c4e72235
6
+ metadata.gz: d4a0b38fc7a6948b01dfd737d05233f14388dbb30ec2b5e492317e3804c94247ad6e0565d0cbc1ca00c1edc4fd836cab8975a19a3c20cae672b22f4b3bbe24e8
7
+ data.tar.gz: e2cd6c73d936727ce312f4c352b474caab60dae02cb8942762380a0b02bc7880c8e182e9f93f1a40718eaf4694cf0124c4f37784395543f5555ac03abe492caf
@@ -188,7 +188,7 @@ module Itriagetestrail
188
188
  # Get the test rail sections
189
189
  testrail_sections
190
190
  # Get the test rail ids
191
- testrail_ids
191
+ testrail_ids true
192
192
  # Populate configurations
193
193
  configurations
194
194
  end
@@ -44,8 +44,8 @@ module TestRail
44
44
  # uri The API method to call including parameters
45
45
  # (e.g. get_case/1)
46
46
  #
47
- def send_get(uri)
48
- res = read_cache(uri)
47
+ def send_get(uri, read_cache = true)
48
+ res = read_cache(uri) if read_cache
49
49
  res || _send_request('GET', uri, nil, true)
50
50
  end
51
51
 
@@ -3,12 +3,12 @@
3
3
  module Itriagetestrail
4
4
  module TestCases
5
5
  # TestRail Cases
6
- def testrail_ids
6
+ def testrail_ids(read_cache = true)
7
7
  case @suite_mode
8
8
  when 2, 3
9
- @test_cases = @client.send_get("get_cases/#{@project_id}&suite_id=#{@suite_id}&type_id=3")
9
+ @test_cases = @client.send_get("get_cases/#{@project_id}&suite_id=#{@suite_id}&type_id=3", read_cache)
10
10
  else
11
- @test_cases = @client.send_get("get_cases/#{@project_id}&type_id=3")
11
+ @test_cases = @client.send_get("get_cases/#{@project_id}&type_id=3", read_cache)
12
12
  end
13
13
 
14
14
  @test_case_ids = []
@@ -47,7 +47,7 @@ module Itriagetestrail
47
47
  @client.send_post("add_case/#{section_id}", body)
48
48
 
49
49
  # refresh test case ids
50
- testrail_ids
50
+ testrail_ids(false)
51
51
  end
52
52
 
53
53
  def app_version_label
@@ -57,6 +57,7 @@ module Itriagetestrail
57
57
  unless run_id
58
58
  run_id = content[:runId]
59
59
  end
60
+ puts content
60
61
  content[:results].each { |result| results << result }
61
62
  end
62
63
  {runId: run_id, results: results}
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.40'.freeze
2
+ VERSION = '1.0.41'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.40
4
+ version: 1.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-08 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo