Skip to content

Commit

Permalink
chore: Update Selenium chrome image version
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Oct 26, 2023
1 parent d980a8e commit 1573d66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions examples/selenium/web-server.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* limitations under the License.
*/


import org.citrusframework.endpoint.EndpointAdapter
import org.citrusframework.endpoint.adapter.RequestDispatchingEndpointAdapter
import org.citrusframework.endpoint.adapter.StaticEndpointAdapter
Expand All @@ -24,16 +23,15 @@ import org.citrusframework.endpoint.adapter.mapping.SimpleMappingStrategy
import org.citrusframework.http.message.HttpMessage
import org.citrusframework.http.message.HttpMessageHeaders
import org.citrusframework.message.Message
import org.citrusframework.spi.Resources
import org.citrusframework.util.FileUtils
import org.springframework.http.HttpStatus
import org.springframework.http.MediaType
import org.springframework.core.io.ClassPathResource

EndpointAdapter templateResponseAdapter() {
RequestDispatchingEndpointAdapter dispatchingEndpointAdapter = new RequestDispatchingEndpointAdapter()

Map<String, EndpointAdapter> mappings = new HashMap<>()

mappings.put("/", indexPageHandler())
mappings.put("/favicon.ico", faviconHandler())

Expand All @@ -51,7 +49,7 @@ static EndpointAdapter indexPageHandler() {
@Override
protected Message handleMessageInternal(Message message) {
try {
return new HttpMessage(FileUtils.readToString(new ClassPathResource("index.html")))
return new HttpMessage(FileUtils.readToString(Resources.fromClasspath("index.html")))
.contentType(MediaType.TEXT_HTML_VALUE)
.status(HttpStatus.OK)
} catch (IOException ignored) {
Expand Down
2 changes: 1 addition & 1 deletion examples/selenium/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ config:
runtime:
selenium:
enabled: true
image: selenium/standalone-chrome:109.0
image: selenium/standalone-chrome:118.0
noVNC: true
env:
- name: SE_VNC_NO_PASSWORD
Expand Down

0 comments on commit 1573d66

Please sign in to comment.