superbot-cloud 0.3.3 → 0.3.4
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/Gemfile.lock +1 -1
- data/lib/superbot/cloud/cli/logout_command.rb +1 -1
- data/lib/superbot/cloud/cli/member_command.rb +3 -3
- data/lib/superbot/cloud/cli/organization_command.rb +1 -1
- data/lib/superbot/cloud/cli/root_command.rb +2 -2
- data/lib/superbot/cloud/cli/run/console_command.rb +7 -8
- data/lib/superbot/cloud/cli/schedule/create_command.rb +5 -1
- data/lib/superbot/cloud/cli/test_command.rb +4 -4
- data/lib/superbot/cloud/cli/token_command.rb +2 -2
- data/lib/superbot/cloud/cli/webdriver/create_command.rb +1 -1
- data/lib/superbot/cloud/cli/webdriver_command.rb +1 -1
- data/lib/superbot/cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0b0dd499632ae0fd1d7a06fc4fd549eb3188bb23049edd454f6cc03a3f679de
|
4
|
+
data.tar.gz: 545fa12d7e306da49080028fb7a43b61b613f840af1d8a73b45ff6e122ab68fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa9666becf83bf7eebb22d4b6813991e803eb89b87d96903b7c40bad818dd59e213950308aa92b863fd8540de9e6f28f785058d21a6c32252d161a3eabde756e
|
7
|
+
data.tar.gz: bc870fd7873f8350ec44880cd8b78dda78fdcf9a632a4853258311082a944f77682620ac4732ff1a0f90a98337ca72e2407529dfa3866f9d7c31204c479316dc
|
data/Gemfile.lock
CHANGED
@@ -9,9 +9,9 @@ module Superbot
|
|
9
9
|
module Cloud
|
10
10
|
module CLI
|
11
11
|
class MemberCommand < LoginRequiredCommand
|
12
|
-
subcommand ['add'], "Add member to organization", Member::AddCommand
|
13
|
-
subcommand ['remove'], "Remove member from organization", Member::RemoveCommand
|
14
|
-
subcommand ['list'], "List
|
12
|
+
subcommand ['add'], "Add a member to organization", Member::AddCommand
|
13
|
+
subcommand ['remove'], "Remove a member from organization", Member::RemoveCommand
|
14
|
+
subcommand ['list'], "List organization's members", Member::ListCommand
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -8,7 +8,7 @@ module Superbot
|
|
8
8
|
module Cloud
|
9
9
|
module CLI
|
10
10
|
class OrganizationCommand < LoginRequiredCommand
|
11
|
-
subcommand ['list'], "List user organizations from the cloud", Organization::ListCommand
|
11
|
+
subcommand ['list'], "List user's organizations from the cloud", Organization::ListCommand
|
12
12
|
subcommand ['default'], "Set default organization for CLI", Organization::DefaultCommand
|
13
13
|
end
|
14
14
|
end
|
@@ -24,10 +24,10 @@ module Superbot
|
|
24
24
|
subcommand ['org'], 'Manage your organizations', OrganizationCommand
|
25
25
|
subcommand ['test'], "Manage your tests", TestCommand
|
26
26
|
subcommand ['webdriver'], "Manage your webdriver sessions", WebdriverCommand
|
27
|
-
subcommand ['member'], "Manage your organization members", MemberCommand
|
27
|
+
subcommand ['member'], "Manage your organization's members", MemberCommand
|
28
28
|
subcommand ['schedule'], "Manage your schedules", ScheduleCommand
|
29
29
|
subcommand(['run'], "Manage your interactive cloud runs", RunCommand) if ENV['SUPERBOT_FEAT_CLOUD_RUNS'] == 'true'
|
30
|
-
subcommand ['token'], "Manage your organization tokens", TokenCommand
|
30
|
+
subcommand ['token'], "Manage your organization's tokens", TokenCommand
|
31
31
|
|
32
32
|
option ['-v', '--version'], :flag, "Show version information" do
|
33
33
|
puts Superbot::Cloud::VERSION
|
@@ -9,14 +9,13 @@ module Superbot
|
|
9
9
|
|
10
10
|
def execute
|
11
11
|
abort "Run is not active anymore" if fetch_interaction[:status] == 'aborted'
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
# end
|
12
|
+
loop do
|
13
|
+
printf '> '
|
14
|
+
input = $stdin.gets
|
15
|
+
exit if input.nil?
|
16
|
+
cmd, arg = input.rstrip.split(' ')
|
17
|
+
invoke_command(cmd, arg)
|
18
|
+
end
|
20
19
|
end
|
21
20
|
|
22
21
|
private
|
@@ -10,6 +10,8 @@ module Superbot
|
|
10
10
|
option ['--when'], 'WHEN', "When to schedule a test (either asap or cron expression)", default: 'asap', attribute_name: :starts_at
|
11
11
|
option ['--bots'], 'BOTS', 'Number of running cloud superbots', default: 1
|
12
12
|
option ['--loop'], 'LOOP_COUNT', 'Number of runs for each bot', default: 1, attribute_name: :loop_count
|
13
|
+
option ['--base-url'], 'BASE_URL', 'Base project URL for test'
|
14
|
+
option ['--local-webdriver'], :flag, 'Use local webdriver instead of cloud webdriver api', hidden: true
|
13
15
|
|
14
16
|
def execute
|
15
17
|
schedule_test
|
@@ -27,7 +29,9 @@ module Superbot
|
|
27
29
|
organization_name: organization,
|
28
30
|
parallel: bots,
|
29
31
|
starts_at: starts_at,
|
30
|
-
loop: loop_count
|
32
|
+
loop: loop_count,
|
33
|
+
webdriver_api: local_webdriver?,
|
34
|
+
base_url: base_url
|
31
35
|
}.compact
|
32
36
|
end
|
33
37
|
end
|
@@ -10,10 +10,10 @@ module Superbot
|
|
10
10
|
module Cloud
|
11
11
|
module CLI
|
12
12
|
class TestCommand < LoginRequiredCommand
|
13
|
-
subcommand ['list'], "List user tests from the cloud", Test::ListCommand
|
14
|
-
subcommand ['upload'], "Upload test to the cloud", Test::UploadCommand
|
15
|
-
subcommand ['download'], "Download test from the cloud", Test::DownloadCommand
|
16
|
-
subcommand ['delete'], "Delete test from the cloud", Test::DeleteCommand
|
13
|
+
subcommand ['list'], "List user's tests from the cloud", Test::ListCommand
|
14
|
+
subcommand ['upload'], "Upload a test to the cloud", Test::UploadCommand
|
15
|
+
subcommand ['download'], "Download a test from the cloud", Test::DownloadCommand
|
16
|
+
subcommand ['delete'], "Delete a test from the cloud", Test::DeleteCommand
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -10,8 +10,8 @@ module Superbot
|
|
10
10
|
module CLI
|
11
11
|
class TokenCommand < LoginRequiredCommand
|
12
12
|
subcommand ['generate'], "Generate new access token", Token::GenerateCommand
|
13
|
-
subcommand ['revoke'], "Revoke token", Token::RevokeCommand
|
14
|
-
subcommand ['list'], "List your organization access tokens", Token::ListCommand
|
13
|
+
subcommand ['revoke'], "Revoke a token", Token::RevokeCommand
|
14
|
+
subcommand ['list'], "List your organization's access tokens", Token::ListCommand
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -21,7 +21,7 @@ module Superbot
|
|
21
21
|
}
|
22
22
|
}
|
23
23
|
request_body[:desiredCapabilities][:superOptions][:region] = region if region
|
24
|
-
puts "Creating webdriver session..."
|
24
|
+
puts "Creating a webdriver session..."
|
25
25
|
puts "Please wait for Session ID or press [ctrl/cmd + c] to exit"
|
26
26
|
session = Excon.post(
|
27
27
|
[Superbot.webdriver_endpoint(local? ? 'local_cloud' : 'cloud'), 'wd/hub/session'].join('/'),
|
@@ -11,7 +11,7 @@ module Superbot
|
|
11
11
|
class WebdriverCommand < LoginRequiredCommand
|
12
12
|
subcommand ['list'], "List all webdriver sessions", Webdriver::ListCommand
|
13
13
|
subcommand ['delete'], "Terminate and finish specific session", Webdriver::DeleteCommand
|
14
|
-
subcommand ['create'], "Create active webdriver session", Webdriver::CreateCommand
|
14
|
+
subcommand ['create'], "Create an active webdriver session", Webdriver::CreateCommand
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|