nonnative 1.60.0 → 1.61.0
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/Gemfile.lock +2 -2
- data/lib/nonnative/configuration.rb +7 -0
- data/lib/nonnative/cucumber.rb +5 -0
- data/lib/nonnative/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09d70b9c1d1892ed5d19d59e6130115721e8982d6ec5be4499cdbfae2ffa01b4'
|
4
|
+
data.tar.gz: 4fed0557560e55343d681176ffe449de0fe789a6332ff3c6f90e520b2b87924c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e037a8f8a4645455f9a2e18c030d582785d5d2d000635480ba776c994c1957b257dfe8330a899469707366c7942897778155e2a75b8f40ef202fcd018cb0a0b
|
7
|
+
data.tar.gz: '02228f975130c4a076ab9f3001277466db84b6bc8ae6f9a19ac185157f7adda303f720ea93c4b4e4825892620d95332572ca1fca17d02ef400de039d21120cd8'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nonnative (1.
|
4
|
+
nonnative (1.61.0)
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
6
6
|
cucumber (>= 7, < 8)
|
7
7
|
get_process_mem (~> 0.2.1)
|
@@ -76,7 +76,7 @@ GEM
|
|
76
76
|
http-cookie (1.0.4)
|
77
77
|
domain_name (~> 0.5)
|
78
78
|
jaro_winkler (1.5.4)
|
79
|
-
kramdown (2.
|
79
|
+
kramdown (2.4.0)
|
80
80
|
rexml
|
81
81
|
kramdown-parser-gfm (1.1.0)
|
82
82
|
kramdown (~> 2.0)
|
@@ -39,6 +39,13 @@ module Nonnative
|
|
39
39
|
services << service
|
40
40
|
end
|
41
41
|
|
42
|
+
def process_by_name(name)
|
43
|
+
process = processes.find { |s| s.name == name }
|
44
|
+
raise NotFoundError, "Could not find process with name '#{name}'" if process.nil?
|
45
|
+
|
46
|
+
process
|
47
|
+
end
|
48
|
+
|
42
49
|
private
|
43
50
|
|
44
51
|
def add_processes(file)
|
data/lib/nonnative/cucumber.rb
CHANGED
@@ -68,3 +68,8 @@ end
|
|
68
68
|
Then('stopping the system should raise an error') do
|
69
69
|
expect { Nonnative.stop }.to raise_error(Nonnative::StopError)
|
70
70
|
end
|
71
|
+
|
72
|
+
Then('I should see a log entry of {string} for process {string}') do |message, process|
|
73
|
+
process = Nonnative.configuration.process_by_name(process)
|
74
|
+
expect(Nonnative.log_lines(process.log, ->(l) { l.include?(message) }).first).to include(message)
|
75
|
+
end
|
data/lib/nonnative/version.rb
CHANGED