newman_scenario 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/newman_scenario/scenario.rb +2 -2
- data/lib/newman_scenario/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: db3fa867f95474727ab64c32b64744342f43da5a3c02e4777615e8f75beca6f6
|
4
|
+
data.tar.gz: 7b601be5b0d553f6f8f3e5a589f2906b356bf46b58a09086427fde649e02b7ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc27fe0cbd9cdd3d3f1db8ac681086df3e31b02804e562115e012b7a09897018359ad7e3013bf2e843e36597c9c84ee0c44560267a80b3e91da440ccc3c950ed
|
7
|
+
data.tar.gz: 38ff362376ffb4e7ba2c169a5794fcf62293ececeaca01a4d8123d821b9ef5e6ea27c1d22283e68fc779a9d0cf93122939e97e035dc9085c94dfdbf9cf266405
|
data/Gemfile.lock
CHANGED
@@ -44,7 +44,7 @@ module NewmanScenario
|
|
44
44
|
unless self.default_environments
|
45
45
|
environments ||= fetch_postman('/environments', api_key: self.default_api_key).parsed_response&.fetch('environments', nil) || []
|
46
46
|
environments = environments.map { |environment| environment.slice('name', 'id').values }.to_h
|
47
|
-
environment_ids = prompt.multi_select('
|
47
|
+
environment_ids = prompt.multi_select('Environment', environments)
|
48
48
|
self.default_environments = environments.select { |_, id| environment_ids.include?(id) }
|
49
49
|
end
|
50
50
|
self.default_custom_scenarios_file_path = default_custom_scenarios_file_path || prompt.ask('Custom scenarios file path:', value: DEFAULT_CUSTOM_SCENARIOS_FILE_PATH)
|
@@ -184,7 +184,7 @@ module NewmanScenario
|
|
184
184
|
}
|
185
185
|
write_to_json_file(last_scenario_file_path, new_collection)
|
186
186
|
end
|
187
|
-
|
187
|
+
exec("newman run #{last_scenario_file_path} -e /tmp/postman-environment-#{environment}.json#{bail ? ' --bail' : ''}")
|
188
188
|
end
|
189
189
|
|
190
190
|
private
|