nonnative 1.67.0 → 1.68.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/.circleci/config.yml +5 -4
- data/.editorconfig +1 -12
- data/.github/dependabot.yml +4 -0
- data/.gitignore +0 -3
- data/.gitmodules +3 -0
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +569 -284
- data/Gemfile.lock +29 -29
- data/Makefile +1 -37
- data/README.md +19 -19
- data/lib/nonnative/observability.rb +3 -3
- data/lib/nonnative/version.rb +1 -1
- data/nonnative.gemspec +2 -2
- metadata +7 -8
- data/bin/console +0 -15
- data/bin/setup +0 -9
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nonnative (1.
|
|
4
|
+
nonnative (1.68.0)
|
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
|
6
6
|
cucumber (>= 7, < 9)
|
|
7
7
|
get_process_mem (~> 0.2.1)
|
|
@@ -22,12 +22,12 @@ GEM
|
|
|
22
22
|
benchmark-perf (0.6.0)
|
|
23
23
|
benchmark-trend (0.4.0)
|
|
24
24
|
builder (3.2.4)
|
|
25
|
-
concurrent-ruby (1.
|
|
26
|
-
coveralls_reborn (0.
|
|
27
|
-
simplecov (
|
|
28
|
-
term-ansicolor (~> 1.
|
|
29
|
-
thor (
|
|
30
|
-
tins (~> 1.
|
|
25
|
+
concurrent-ruby (1.2.0)
|
|
26
|
+
coveralls_reborn (0.26.0)
|
|
27
|
+
simplecov (~> 0.22.0)
|
|
28
|
+
term-ansicolor (~> 1.7)
|
|
29
|
+
thor (~> 1.2)
|
|
30
|
+
tins (~> 1.32)
|
|
31
31
|
cucumber (8.0.0)
|
|
32
32
|
builder (~> 3.2, >= 3.2.4)
|
|
33
33
|
cucumber-ci-environment (~> 9.0, >= 9.0.4)
|
|
@@ -62,12 +62,12 @@ GEM
|
|
|
62
62
|
ffi (~> 1.0)
|
|
63
63
|
google-protobuf (3.21.12-x86_64-darwin)
|
|
64
64
|
google-protobuf (3.21.12-x86_64-linux)
|
|
65
|
-
googleapis-common-protos-types (1.
|
|
65
|
+
googleapis-common-protos-types (1.5.0)
|
|
66
66
|
google-protobuf (~> 3.14)
|
|
67
|
-
grpc (1.
|
|
67
|
+
grpc (1.51.0-x86_64-darwin)
|
|
68
68
|
google-protobuf (~> 3.21)
|
|
69
69
|
googleapis-common-protos-types (~> 1.0)
|
|
70
|
-
grpc (1.
|
|
70
|
+
grpc (1.51.0-x86_64-linux)
|
|
71
71
|
google-protobuf (~> 3.21)
|
|
72
72
|
googleapis-common-protos-types (~> 1.0)
|
|
73
73
|
http-accept (1.7.0)
|
|
@@ -87,21 +87,21 @@ GEM
|
|
|
87
87
|
ruby2_keywords (~> 0.0.1)
|
|
88
88
|
netrc (0.11.0)
|
|
89
89
|
nio4r (2.5.8)
|
|
90
|
-
nokogiri (1.
|
|
90
|
+
nokogiri (1.14.0-x86_64-darwin)
|
|
91
91
|
racc (~> 1.4)
|
|
92
|
-
nokogiri (1.
|
|
92
|
+
nokogiri (1.14.0-x86_64-linux)
|
|
93
93
|
racc (~> 1.4)
|
|
94
94
|
parallel (1.22.1)
|
|
95
|
-
parser (3.
|
|
95
|
+
parser (3.2.0.0)
|
|
96
96
|
ast (~> 2.4.1)
|
|
97
|
-
puma (6.0.
|
|
97
|
+
puma (6.0.2)
|
|
98
98
|
nio4r (~> 2.0)
|
|
99
|
-
racc (1.6.
|
|
100
|
-
rack (2.2.
|
|
99
|
+
racc (1.6.2)
|
|
100
|
+
rack (2.2.6.2)
|
|
101
101
|
rack-protection (3.0.5)
|
|
102
102
|
rack
|
|
103
103
|
rainbow (3.1.1)
|
|
104
|
-
regexp_parser (2.6.
|
|
104
|
+
regexp_parser (2.6.2)
|
|
105
105
|
rest-client (2.1.0)
|
|
106
106
|
http-accept (>= 1.7.0, < 2.0)
|
|
107
107
|
http-cookie (>= 1.0.2, < 2.0)
|
|
@@ -121,28 +121,28 @@ GEM
|
|
|
121
121
|
rspec (>= 3.0)
|
|
122
122
|
rspec-core (3.12.0)
|
|
123
123
|
rspec-support (~> 3.12.0)
|
|
124
|
-
rspec-expectations (3.12.
|
|
124
|
+
rspec-expectations (3.12.2)
|
|
125
125
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
126
126
|
rspec-support (~> 3.12.0)
|
|
127
|
-
rspec-mocks (3.12.
|
|
127
|
+
rspec-mocks (3.12.3)
|
|
128
128
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
129
129
|
rspec-support (~> 3.12.0)
|
|
130
130
|
rspec-support (3.12.0)
|
|
131
|
-
rubocop (1.
|
|
131
|
+
rubocop (1.44.1)
|
|
132
132
|
json (~> 2.3)
|
|
133
133
|
parallel (~> 1.10)
|
|
134
|
-
parser (>= 3.
|
|
134
|
+
parser (>= 3.2.0.0)
|
|
135
135
|
rainbow (>= 2.2.2, < 4.0)
|
|
136
136
|
regexp_parser (>= 1.8, < 3.0)
|
|
137
137
|
rexml (>= 3.2.5, < 4.0)
|
|
138
|
-
rubocop-ast (>= 1.
|
|
138
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
|
139
139
|
ruby-progressbar (~> 1.7)
|
|
140
|
-
unicode-display_width (>=
|
|
141
|
-
rubocop-ast (1.24.
|
|
140
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
141
|
+
rubocop-ast (1.24.1)
|
|
142
142
|
parser (>= 3.1.1.0)
|
|
143
143
|
ruby-progressbar (1.11.0)
|
|
144
144
|
ruby2_keywords (0.0.5)
|
|
145
|
-
simplecov (0.
|
|
145
|
+
simplecov (0.22.0)
|
|
146
146
|
docile (~> 1.1)
|
|
147
147
|
simplecov-html (~> 0.11)
|
|
148
148
|
simplecov_json_formatter (~> 0.1)
|
|
@@ -153,7 +153,7 @@ GEM
|
|
|
153
153
|
rack (~> 2.2, >= 2.2.4)
|
|
154
154
|
rack-protection (= 3.0.5)
|
|
155
155
|
tilt (~> 2.0)
|
|
156
|
-
solargraph (0.
|
|
156
|
+
solargraph (0.48.0)
|
|
157
157
|
backport (~> 1.2)
|
|
158
158
|
benchmark
|
|
159
159
|
bundler (>= 1.17.2)
|
|
@@ -180,7 +180,7 @@ GEM
|
|
|
180
180
|
unf (0.1.4)
|
|
181
181
|
unf_ext
|
|
182
182
|
unf_ext (0.0.8.2)
|
|
183
|
-
unicode-display_width (2.
|
|
183
|
+
unicode-display_width (2.4.2)
|
|
184
184
|
webrick (1.7.0)
|
|
185
185
|
yard (0.9.28)
|
|
186
186
|
webrick (~> 1.7.0)
|
|
@@ -191,10 +191,10 @@ PLATFORMS
|
|
|
191
191
|
|
|
192
192
|
DEPENDENCIES
|
|
193
193
|
bundler (~> 2.3)
|
|
194
|
-
coveralls_reborn (~> 0.
|
|
194
|
+
coveralls_reborn (~> 0.26.0)
|
|
195
195
|
nonnative!
|
|
196
196
|
rubocop (~> 1.30)
|
|
197
|
-
solargraph (~> 0.
|
|
197
|
+
solargraph (~> 0.48.0)
|
|
198
198
|
|
|
199
199
|
BUNDLED WITH
|
|
200
200
|
2.3.9
|
data/Makefile
CHANGED
|
@@ -1,39 +1,3 @@
|
|
|
1
1
|
.PHONY: features
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
bin/setup
|
|
5
|
-
|
|
6
|
-
# Update proto deps
|
|
7
|
-
proto-update-all:
|
|
8
|
-
make -C test update-all
|
|
9
|
-
|
|
10
|
-
# Update all deps
|
|
11
|
-
dep-update-all: proto-update-all
|
|
12
|
-
bundle update
|
|
13
|
-
|
|
14
|
-
# Check outdated deps
|
|
15
|
-
outdated:
|
|
16
|
-
bundle outdated --only-explicit
|
|
17
|
-
|
|
18
|
-
# Run all the features
|
|
19
|
-
features: clean
|
|
20
|
-
bundle exec cucumber --profile report --fail-fast $(feature)
|
|
21
|
-
|
|
22
|
-
# Lint all the code
|
|
23
|
-
lint:
|
|
24
|
-
bundle exec rubocop
|
|
25
|
-
|
|
26
|
-
# Fix the lint issues in the code (if possible)
|
|
27
|
-
fix-lint:
|
|
28
|
-
bundle exec rubocop -A
|
|
29
|
-
|
|
30
|
-
clean-logs:
|
|
31
|
-
rm -rf features/logs/*.log
|
|
32
|
-
|
|
33
|
-
clean-reports:
|
|
34
|
-
rm -rf reports
|
|
35
|
-
|
|
36
|
-
clean-coverage:
|
|
37
|
-
rm -rf coverage
|
|
38
|
-
|
|
39
|
-
clean: clean-logs clean-reports clean-coverage
|
|
3
|
+
include bin/build/make/ruby.mak
|
data/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Nonnative.configure do |config|
|
|
|
62
62
|
p.command = -> { 'features/support/bin/start 12_321' }
|
|
63
63
|
p.timeout = 5
|
|
64
64
|
p.port = 12_321
|
|
65
|
-
p.log = '
|
|
65
|
+
p.log = 'reports/12_321.log'
|
|
66
66
|
p.signal = 'INT' # Possible values are described in Signal.list.keys.
|
|
67
67
|
p.environment = { # Pass environment variables to process.
|
|
68
68
|
'TEST' => 'true'
|
|
@@ -74,7 +74,7 @@ Nonnative.configure do |config|
|
|
|
74
74
|
p.command = -> { 'features/support/bin/start 12_322' }
|
|
75
75
|
p.timeout = 0.5
|
|
76
76
|
p.port = 12_322
|
|
77
|
-
p.log = '
|
|
77
|
+
p.log = 'reports/12_322.log'
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
```
|
|
@@ -89,7 +89,7 @@ processes:
|
|
|
89
89
|
command: features/support/bin/start 12_321
|
|
90
90
|
timeout: 5
|
|
91
91
|
port: 12321
|
|
92
|
-
log:
|
|
92
|
+
log: reports/12_321.log
|
|
93
93
|
signal: INT # Possible values are described in Signal.list.keys.
|
|
94
94
|
environment: # Pass environment variables to process.
|
|
95
95
|
TEST: true
|
|
@@ -98,7 +98,7 @@ processes:
|
|
|
98
98
|
command: features/support/bin/start 12_322
|
|
99
99
|
timeout: 5
|
|
100
100
|
port: 12322
|
|
101
|
-
log:
|
|
101
|
+
log: reports/12_322.log
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
Then load the file with
|
|
@@ -155,7 +155,7 @@ Nonnative.configure do |config|
|
|
|
155
155
|
s.klass = Nonnative::EchoServer
|
|
156
156
|
s.timeout = 1
|
|
157
157
|
s.port = 12_323
|
|
158
|
-
s.log = '
|
|
158
|
+
s.log = 'reports/server_1.log'
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
config.server do |s|
|
|
@@ -163,7 +163,7 @@ Nonnative.configure do |config|
|
|
|
163
163
|
s.klass = Nonnative::EchoServer
|
|
164
164
|
s.timeout = 1
|
|
165
165
|
s.port = 12_324
|
|
166
|
-
s.log = '
|
|
166
|
+
s.log = 'reports/server_2.log'
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
```
|
|
@@ -178,13 +178,13 @@ servers:
|
|
|
178
178
|
class: Nonnative::EchoServer
|
|
179
179
|
timeout: 1
|
|
180
180
|
port: 12323
|
|
181
|
-
log:
|
|
181
|
+
log: reports/server_1.log
|
|
182
182
|
-
|
|
183
183
|
name: server_2
|
|
184
184
|
class: Nonnative::EchoServer
|
|
185
185
|
timeout: 1
|
|
186
186
|
port: 12324
|
|
187
|
-
log:
|
|
187
|
+
log: reports/server_2.log
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
Then load the file with:
|
|
@@ -234,7 +234,7 @@ Nonnative.configure do |config|
|
|
|
234
234
|
s.klass = Nonnative::Features::HTTPServer
|
|
235
235
|
s.timeout = 1
|
|
236
236
|
s.port = 4567
|
|
237
|
-
s.log = '
|
|
237
|
+
s.log = 'reports/http_server_1.log'
|
|
238
238
|
end
|
|
239
239
|
end
|
|
240
240
|
```
|
|
@@ -249,7 +249,7 @@ servers:
|
|
|
249
249
|
class: Nonnative::Features::HTTPServer
|
|
250
250
|
timeout: 1
|
|
251
251
|
port: 4567
|
|
252
|
-
log:
|
|
252
|
+
log: reports/http_server_1.log
|
|
253
253
|
```
|
|
254
254
|
|
|
255
255
|
Then load the file with:
|
|
@@ -295,7 +295,7 @@ Nonnative.configure do |config|
|
|
|
295
295
|
s.klass = Nonnative::Features::GRPCServer
|
|
296
296
|
s.timeout = 1
|
|
297
297
|
s.port = 9002
|
|
298
|
-
s.log = '
|
|
298
|
+
s.log = 'reports/grpc_server_1.log'
|
|
299
299
|
end
|
|
300
300
|
end
|
|
301
301
|
```
|
|
@@ -310,7 +310,7 @@ servers:
|
|
|
310
310
|
class: Nonnative::Features::GRPCServer
|
|
311
311
|
timeout: 1
|
|
312
312
|
port: 9002
|
|
313
|
-
log:
|
|
313
|
+
log: reports/grpc_server_1.log
|
|
314
314
|
```
|
|
315
315
|
|
|
316
316
|
Then load the file with:
|
|
@@ -386,7 +386,7 @@ Nonnative.configure do |config|
|
|
|
386
386
|
p.proxy = {
|
|
387
387
|
kind: 'fault_injection',
|
|
388
388
|
port: 20_000,
|
|
389
|
-
log: '
|
|
389
|
+
log: 'reports/proxy_server.log',
|
|
390
390
|
options: {
|
|
391
391
|
delay: 5
|
|
392
392
|
}
|
|
@@ -404,7 +404,7 @@ processes:
|
|
|
404
404
|
proxy:
|
|
405
405
|
kind: fault_injection
|
|
406
406
|
port: 20000
|
|
407
|
-
log:
|
|
407
|
+
log: reports/proxy_server.log
|
|
408
408
|
options:
|
|
409
409
|
delay: 5
|
|
410
410
|
```
|
|
@@ -421,7 +421,7 @@ Nonnative.configure do |config|
|
|
|
421
421
|
s.proxy = {
|
|
422
422
|
kind: 'fault_injection',
|
|
423
423
|
port: 20_000,
|
|
424
|
-
log: '
|
|
424
|
+
log: 'reports/proxy_server.log',
|
|
425
425
|
options: {
|
|
426
426
|
delay: 5
|
|
427
427
|
}
|
|
@@ -439,7 +439,7 @@ servers:
|
|
|
439
439
|
proxy:
|
|
440
440
|
kind: fault_injection
|
|
441
441
|
port: 20000
|
|
442
|
-
log:
|
|
442
|
+
log: reports/proxy_server.log
|
|
443
443
|
options:
|
|
444
444
|
delay: 5
|
|
445
445
|
```
|
|
@@ -456,7 +456,7 @@ Nonnative.configure do |config|
|
|
|
456
456
|
s.proxy = {
|
|
457
457
|
kind: 'fault_injection',
|
|
458
458
|
port: 20_000,
|
|
459
|
-
log: '
|
|
459
|
+
log: 'reports/proxy_server.log',
|
|
460
460
|
options: {
|
|
461
461
|
delay: 5
|
|
462
462
|
}
|
|
@@ -474,7 +474,7 @@ services:
|
|
|
474
474
|
proxy:
|
|
475
475
|
kind: fault_injection
|
|
476
476
|
port: 20000
|
|
477
|
-
log:
|
|
477
|
+
log: reports/proxy_server.log
|
|
478
478
|
options:
|
|
479
479
|
delay: 5
|
|
480
480
|
```
|
|
@@ -588,5 +588,5 @@ processes:
|
|
|
588
588
|
- --config config.yaml
|
|
589
589
|
timeout: 5
|
|
590
590
|
port: 8000
|
|
591
|
-
log:
|
|
591
|
+
log: reports/go.log
|
|
592
592
|
```
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
module Nonnative
|
|
4
4
|
class Observability < Nonnative::HTTPClient
|
|
5
5
|
def health
|
|
6
|
-
get('
|
|
6
|
+
get('healthz', { content_type: :json, accept: :json })
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def liveness
|
|
10
|
-
get('
|
|
10
|
+
get('livez', { content_type: :json, accept: :json })
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def readiness
|
|
14
|
-
get('
|
|
14
|
+
get('readyz', { content_type: :json, accept: :json })
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def metrics
|
data/lib/nonnative/version.rb
CHANGED
data/nonnative.gemspec
CHANGED
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
|
35
35
|
spec.add_dependency 'sinatra', '>= 2.0.8.1', '< 4'
|
|
36
36
|
|
|
37
37
|
spec.add_development_dependency 'bundler', '~> 2.3'
|
|
38
|
-
spec.add_development_dependency 'coveralls_reborn', '~> 0.
|
|
38
|
+
spec.add_development_dependency 'coveralls_reborn', '~> 0.26.0'
|
|
39
39
|
spec.add_development_dependency 'rubocop', '~> 1.30'
|
|
40
|
-
spec.add_development_dependency 'solargraph', '~> 0.
|
|
40
|
+
spec.add_development_dependency 'solargraph', '~> 0.48.0'
|
|
41
41
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nonnative
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.68.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alejandro Falkowski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -186,14 +186,14 @@ dependencies:
|
|
|
186
186
|
requirements:
|
|
187
187
|
- - "~>"
|
|
188
188
|
- !ruby/object:Gem::Version
|
|
189
|
-
version: 0.
|
|
189
|
+
version: 0.26.0
|
|
190
190
|
type: :development
|
|
191
191
|
prerelease: false
|
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
|
194
194
|
- - "~>"
|
|
195
195
|
- !ruby/object:Gem::Version
|
|
196
|
-
version: 0.
|
|
196
|
+
version: 0.26.0
|
|
197
197
|
- !ruby/object:Gem::Dependency
|
|
198
198
|
name: rubocop
|
|
199
199
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -214,14 +214,14 @@ dependencies:
|
|
|
214
214
|
requirements:
|
|
215
215
|
- - "~>"
|
|
216
216
|
- !ruby/object:Gem::Version
|
|
217
|
-
version: 0.
|
|
217
|
+
version: 0.48.0
|
|
218
218
|
type: :development
|
|
219
219
|
prerelease: false
|
|
220
220
|
version_requirements: !ruby/object:Gem::Requirement
|
|
221
221
|
requirements:
|
|
222
222
|
- - "~>"
|
|
223
223
|
- !ruby/object:Gem::Version
|
|
224
|
-
version: 0.
|
|
224
|
+
version: 0.48.0
|
|
225
225
|
description: Allows you to keep using the power of ruby to test other systems
|
|
226
226
|
email:
|
|
227
227
|
- alexrfalkowski@gmail.com
|
|
@@ -235,6 +235,7 @@ files:
|
|
|
235
235
|
- ".editorconfig"
|
|
236
236
|
- ".github/dependabot.yml"
|
|
237
237
|
- ".gitignore"
|
|
238
|
+
- ".gitmodules"
|
|
238
239
|
- ".rubocop.yml"
|
|
239
240
|
- ".ruby-version"
|
|
240
241
|
- CHANGELOG.md
|
|
@@ -243,8 +244,6 @@ files:
|
|
|
243
244
|
- LICENSE
|
|
244
245
|
- Makefile
|
|
245
246
|
- README.md
|
|
246
|
-
- bin/console
|
|
247
|
-
- bin/setup
|
|
248
247
|
- lib/nonnative.rb
|
|
249
248
|
- lib/nonnative/close_all_socket_pair.rb
|
|
250
249
|
- lib/nonnative/configuration.rb
|
data/bin/console
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require 'bundler/setup'
|
|
5
|
-
require 'nonnative'
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
-
# require "pry"
|
|
12
|
-
# Pry.start
|
|
13
|
-
|
|
14
|
-
require 'irb'
|
|
15
|
-
IRB.start(__FILE__)
|