itamae-plugin-recipe-selenium 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d6b33b5cc56b0523cbb5c574e31f403610d3847aa7f5f4575ad48ec83ad40bc
|
4
|
+
data.tar.gz: 3d3bd89764fa2ee1b5df46618f72396224c30ba22b1f8b9b55b3ca28a775ed1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 681f018d5bc4d97c3fb15200f29691702627f77e501602c0e4e0b1dfdc9f3fdb00b553d0d8f0e7f8f00646746012a07ebbda64a78973e170856982fb743f8c4f
|
7
|
+
data.tar.gz: 6442864d51e13f4eba1b84b51570d72411d1b8acbb9a28a07949774f020998045587eda900f1725c3ed7d3329cbc1d62545ba3505c53f9dd694af362d66b7450
|
@@ -20,5 +20,5 @@ end
|
|
20
20
|
|
21
21
|
execute 'yum update -y google-chrome-stable' do
|
22
22
|
user 'root'
|
23
|
-
not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (
|
23
|
+
not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (93|94|96|97)\.'"
|
24
24
|
end
|
@@ -36,14 +36,19 @@ module Itamae
|
|
36
36
|
base_url = 'https://' + host
|
37
37
|
browser_version = run_command('sudo yum list | grep google-chrome-stable').stdout.split[1]
|
38
38
|
browser_version = Gem::Version.new(browser_version.to_s).segments[0..2].join('.')
|
39
|
+
|
39
40
|
driver_version_url = base_url + "/LATEST_RELEASE_#{browser_version}"
|
40
41
|
driver_version = Net::HTTP.get_response(URI(driver_version_url)).body
|
42
|
+
|
43
|
+
# see https://stackoverflow.com/questions/70967207/selenium-chromedriver-cannot-construct-keyevent-from-non-typeable-key/70968668
|
44
|
+
driver_version = '97.0.4692.71' if driver_version.start_with?('98.')
|
45
|
+
|
41
46
|
download_url = base_url + "/#{driver_version}/chromedriver_linux64.zip"
|
42
47
|
header = Net::HTTP.start(host) { |http| http.head("/#{driver_version}/chromedriver_linux64.zip") }
|
43
48
|
etag = header['etag'][1...-1]
|
44
49
|
|
45
|
-
Itamae.logger.
|
46
|
-
Itamae.logger.
|
50
|
+
Itamae.logger.info "browser version: #{browser_version}"
|
51
|
+
Itamae.logger.info "driver version: #{driver_version}"
|
47
52
|
Itamae.logger.debug "download url: #{download_url}"
|
48
53
|
Itamae.logger.debug "etag: #{etag}"
|
49
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- y-matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
rubygems_version: 3.
|
118
|
+
rubygems_version: 3.2.21
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: itamae recipe for god process monitoring framework
|