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 +4 -4
- data/lib/MustardClient/keywords.rb +2 -2
- data/lib/MustardClient/testcases.rb +15 -4
- data/lib/MustardClient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67e8cb22a7019cdb59a439cb2478897513d3a281
|
4
|
+
data.tar.gz: 3ef8e5043d3b8b89f394b4167206623aa0c1352a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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,
|
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
|
-
|
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
|
-
|
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
|
|
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.
|
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
|
-
-
|
67
|
+
- BSD-4-Clause
|
68
68
|
metadata: {}
|
69
69
|
post_install_message:
|
70
70
|
rdoc_options: []
|