mustard_client 0.1.43 → 0.1.44

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
  SHA1:
3
- metadata.gz: 7af5e2a3b3dc62e3f102164bececb550572d9b85
4
- data.tar.gz: 185f53fa3a45051a9e3cfa3aa34bfbed9725eef4
3
+ metadata.gz: 67e8cb22a7019cdb59a439cb2478897513d3a281
4
+ data.tar.gz: 3ef8e5043d3b8b89f394b4167206623aa0c1352a
5
5
  SHA512:
6
- metadata.gz: 065ad859cf84215e6f5c13897fa00bada789d4f96b8523ff54339341b4a8959fb8453f8aa257ec0483befcee8d6282c3ff511814e0e6179fda8a52517a15b949
7
- data.tar.gz: 901ae781373dc67cd55133551d437bbd88e63afc622581fe93a01acaf9a6929cfe51ba9ce5b0696a56d01957da0a87cd382f059828b101eefc06590418ef066c
6
+ metadata.gz: e8bcc57330fcf261e7ace87abfdf8563a33804b54dddb2f893b4e8d462ad4fccb2fdea68859654fddefeff1be1de681a09bf3c01c8be9cfe77f8404105fdbcb5
7
+ data.tar.gz: 8a09073eb8f4e83a95a9a5990b36576ff24a83104a31b9a1b79ac7185f7644fea0f9e217626a770ebb95eaba45c819aca5375589933ac65125312ebdf8bd1cdc
@@ -20,7 +20,7 @@ module MustardClient
20
20
  command[:route] = @mustard_url + "/keywords"
21
21
 
22
22
  if testcase_ids
23
- command[:params] = {keyword: keyword_params, testcase_ids: testcase_ids}
23
+ command[:params] = {keyword: keyword_params, testcases: testcase_ids}
24
24
  else
25
25
  command[:params] = {keyword: keyword_params}
26
26
  end
@@ -50,7 +50,7 @@ module MustardClient
50
50
  command[:headers] = {'User-Token' => @user_token}
51
51
 
52
52
  if testcase_ids
53
- command[:params] = {keyword: keyword_params, testcase_ids: testcase_ids}
53
+ command[:params] = {keyword: keyword_params, testcases: testcase_ids}
54
54
  else
55
55
  command[:params] = {keyword: keyword_params}
56
56
  end
@@ -13,12 +13,18 @@ module MustardClient
13
13
 
14
14
  end
15
15
 
16
- def add testcase_params
16
+ def add testcase_params, keyword_ids: false
17
17
 
18
18
  command = {}
19
19
  command[:method] = :post
20
20
  command[:route] = @mustard_url + "/testcases"
21
- command[:params] = {testcase: testcase_params}
21
+
22
+ if keyword_ids
23
+ command[:params] = {testcase: testcase_params, keywords: keyword_ids}
24
+ else
25
+ command[:params] = {testcase: testcase_params}
26
+ end
27
+
22
28
  command[:headers] = {'User-Token' => @user_token}
23
29
 
24
30
  execute(command)
@@ -36,13 +42,18 @@ module MustardClient
36
42
 
37
43
  end
38
44
 
39
- def update testcase_id, testcase_params
45
+ def update testcase_id, testcase_params, keyword_ids: false
40
46
 
41
47
  command = {}
42
48
  command[:method] = :put
43
49
  command[:route] = @mustard_url + "/testcases/#{testcase_id}"
44
50
  command[:headers] = {'User-Token' => @user_token}
45
- command[:params] = {testcase: testcase_params}
51
+ if keyword_ids
52
+ command[:params] = {testcase: testcase_params, keywords: keyword_ids}
53
+ else
54
+ command[:params] = {testcase: testcase_params}
55
+ end
56
+
46
57
 
47
58
  execute(command)
48
59
 
@@ -1,3 +1,3 @@
1
1
  module MustardClient
2
- VERSION = "0.1.43"
2
+ VERSION = "0.1.44"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustard_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.43
4
+ version: 0.1.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson
@@ -64,7 +64,7 @@ files:
64
64
  - lib/MustardClient/version.rb
65
65
  homepage: https://github.com/Orasi/Mustard-Ruby
66
66
  licenses:
67
- - bsd4
67
+ - BSD-4-Clause
68
68
  metadata: {}
69
69
  post_install_message:
70
70
  rdoc_options: []