Skip to content

Commit

Permalink
renamed selenium service to webdriver, enhance webdirvier testing opt…
Browse files Browse the repository at this point in the history
…ions, enhance secret service
  • Loading branch information
adranwit committed Apr 22, 2024
1 parent 9fce266 commit 4f28b03
Show file tree
Hide file tree
Showing 307 changed files with 12,654 additions and 4,275 deletions.
2 changes: 1 addition & 1 deletion Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.70.0
0.72.0
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const Namespace = "github.com/viant/endly/"

// Manager represents a endly service manager
type Manager interface {
//Name returns an application ID
//Name returns an application SessionID
Name() string

//Version returns an application version
Version() string

//Service return a workflow service for provided ID, request, or error
//Service return a workflow service for provided SessionID, request, or error
Service(input interface{}) (Service, error)

//Register register service in this manager
Expand Down
4 changes: 2 additions & 2 deletions cli/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/viant/endly/model"
"github.com/viant/endly/model/msg"
"github.com/viant/endly/service/system/exec"
"github.com/viant/endly/service/testing/runner/selenium"
"github.com/viant/endly/service/testing/runner/webdriver"
"github.com/viant/endly/service/workflow"
"github.com/viant/toolbox"
"github.com/viant/toolbox/data"
Expand Down Expand Up @@ -668,7 +668,7 @@ func (r *Runner) Run(request *workflow.RunRequest) (err error) {
r.context = r.manager.NewContext(toolbox.NewContext())
//init shared session
exec.TerminalSessions(r.context)
selenium.Sessions(r.context)
webdriver.Sessions(r.context)

r.report = &ReportSummaryEvent{}
r.context.CLIEnabled = true
Expand Down
4 changes: 2 additions & 2 deletions cli/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ package cli_test
// {
// err := runner.Run(&model.ProcessRequest{
// URL: "action",
// Tasks: "run",
// tasks: "run",
// Params: map[string]interface{}{
// "service": "logger",
// "action": "print",
Expand All @@ -87,7 +87,7 @@ package cli_test
//
// err := runner.Run(&model.ProcessRequest{
// URL: "action",
// Tasks: "run",
// tasks: "run",
// Params: map[string]interface{}{
// "service": "workflow",
// "action": "fail",
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ It comes with the following registered keys:
* tmpDir - temp directory
* uuid.next - generate unique id
* uuid.Get - returns previously generated unique id, or generate new
*.env.XXX where XXX is the ID of the env variable to return
*.env.XXX where XXX is the SessionID of the env variable to return
* all UFD registry functions
*/

Expand Down
4 changes: 0 additions & 4 deletions endly/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ init:
Ver: $Cat(${appPath}/Version)

pipeline:
set_sdk:
action: sdk.set
target: $target
sdk: go:1.20
build:
action: exec:run
target: $target
Expand Down
18 changes: 3 additions & 15 deletions example/ui/sso/e2e/regression/req/selenium_init.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
pipeline:
setEnv:
action: exec:run
target: $target
env:
JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
commands:
- export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
start:
action: "selenium:start"
action: webdriver:start
target: $target
sdk: jdk
sdkVersion: 1.8
version: 3.4
port: $seleniumServerPort
timeSleepMs: 1000
open:
action: "selenium:open"
action: webdriver:open
remoteSelenium:
URL: http://${targetHost}:$seleniumServerPort/
browser: firefox

post:
- SeleniumSessionID = ${open.SessionID}
11 changes: 6 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ require (
github.com/segmentio/kafka-go v0.3.4
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/stretchr/testify v1.9.0
github.com/tebeka/selenium v0.9.3
github.com/viant/afs v1.25.1-0.20240315182541-4e60ffd52287
github.com/viant/afsc v1.9.1
github.com/tebeka/selenium v0.9.10-0.20211105214847-e9100b7f5ac1
github.com/viant/afs v1.25.1
github.com/viant/afsc v1.9.2-0.20240422173805-b3d0ac5529a7
github.com/viant/asc v0.5.0
github.com/viant/assertly v0.9.1-0.20220620174148-bab013f93a60
github.com/viant/bgc v0.9.0
github.com/viant/dsc v0.19.0
github.com/viant/dsunit v0.11.1-0.20240315154953-016b93c322c2
github.com/viant/scy v0.9.1
github.com/viant/toolbox v0.36.1-0.20240317233530-c01f67964ef7
github.com/viant/toolbox v0.37.0
github.com/yuin/gopher-lua v0.0.0-20221210110428-332342483e3f // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/net v0.22.0
Expand Down Expand Up @@ -116,6 +116,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect
github.com/aws/smithy-go v1.20.2 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/bufbuild/protocompile v0.8.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
Expand Down Expand Up @@ -149,6 +150,7 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mazznoer/csscolorparser v0.1.3 // indirect
github.com/mediabuyerbot/go-crx3 v1.3.1 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
Expand Down Expand Up @@ -204,4 +206,3 @@ require (
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)

0 comments on commit 4f28b03

Please sign in to comment.