mustard_client 0.1.5 → 0.1.6
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/MustardClient/executions.rb +63 -0
- 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: 2e79c5594915fe270d8a953b75927e615481c8cc
|
4
|
+
data.tar.gz: 18027c6c7aba9bb062b24b0060d9d1edc4f88376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ebdb313b4e3dbe02e6125c3e12e5c7aa9c3072342d329573f235f3cd8f5a3d54b445a3c1e4ba0c954e416b992a0fa3cb565f1693f4f97ed70d550cb062d4f7
|
7
|
+
data.tar.gz: 7c46550d545de90755fc1fb62341ed9195f473219890bb4040e3005c10cffe8c58fe4e8a520cabc0ee34df51592ad61c992e7332f1ce27b05d541e5faf89a03b
|
@@ -2,6 +2,67 @@ require 'MustardClient/client'
|
|
2
2
|
module MustardClient
|
3
3
|
class ExecutionsClient < Client
|
4
4
|
|
5
|
+
|
6
|
+
def environment_detail execution_id, environment_id
|
7
|
+
|
8
|
+
command = {}
|
9
|
+
command[:method] = :get
|
10
|
+
command[:route] = @mustard_url + "/executions/#{execution_id}/environment/#{environment_id}"
|
11
|
+
command[:headers] = {'User-Token' => @user_token}
|
12
|
+
|
13
|
+
execute(command)
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
def testcase_detail execution_id, testcase_id
|
19
|
+
|
20
|
+
command = {}
|
21
|
+
command[:method] = :get
|
22
|
+
command[:route] = @mustard_url + "/executions/#{execution_id}/testcases/#{testcase_id}"
|
23
|
+
command[:headers] = {'User-Token' => @user_token}
|
24
|
+
|
25
|
+
execute(command)
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
def testcase_summary execution_id
|
31
|
+
|
32
|
+
command = {}
|
33
|
+
command[:method] = :get
|
34
|
+
command[:route] = @mustard_url + "/executions/#{execution_id}/testcase_summary"
|
35
|
+
command[:headers] = {'User-Token' => @user_token}
|
36
|
+
|
37
|
+
execute(command)
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
def environment_summary execution_id
|
43
|
+
|
44
|
+
command = {}
|
45
|
+
command[:method] = :get
|
46
|
+
command[:route] = @mustard_url + "/executions/#{execution_id}/environment_summary"
|
47
|
+
command[:headers] = {'User-Token' => @user_token}
|
48
|
+
|
49
|
+
execute(command)
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
|
54
|
+
def testcase_status execution_id
|
55
|
+
|
56
|
+
command = {}
|
57
|
+
command[:method] = :get
|
58
|
+
command[:route] = @mustard_url + "/executions/#{execution_id}/testcase_status"
|
59
|
+
command[:headers] = {'User-Token' => @user_token}
|
60
|
+
|
61
|
+
execute(command)
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
|
5
66
|
def find execution_id
|
6
67
|
|
7
68
|
command = {}
|
@@ -13,6 +74,7 @@ module MustardClient
|
|
13
74
|
|
14
75
|
end
|
15
76
|
|
77
|
+
|
16
78
|
def close execution_id
|
17
79
|
|
18
80
|
command = {}
|
@@ -24,6 +86,7 @@ module MustardClient
|
|
24
86
|
|
25
87
|
end
|
26
88
|
|
89
|
+
|
27
90
|
def delete execution_id
|
28
91
|
|
29
92
|
command = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Watson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|