superbot-cloud 0.3.3 → 0.3.4

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: f2a886e3702c71e296e2d610682a65939ad1725bf25313c142ce151e13cc4c50
4
- data.tar.gz: 1fba2349f03ebfb382bde48f19e52f4357f1012a75c6f744738e4b4d6e590218
3
+ metadata.gz: e0b0dd499632ae0fd1d7a06fc4fd549eb3188bb23049edd454f6cc03a3f679de
4
+ data.tar.gz: 545fa12d7e306da49080028fb7a43b61b613f840af1d8a73b45ff6e122ab68fd
5
5
  SHA512:
6
- metadata.gz: '0787d8bde10d2429ab455f540aaeb3a1e16df3f7ba3a929d59b5aafc7118e0814e25972a7024eaa4d24af881caea6ba5c9758f1e292b5e679cedfb8312ae1687'
7
- data.tar.gz: a7c47127634f3598e5d71a4b4bd0ab4590952af21209a0a41b0e932a119c345da8e4589387ad7a0e9709e4640fcf0435725a7cbaaf016a693b1f82b3ab030e03
6
+ metadata.gz: aa9666becf83bf7eebb22d4b6813991e803eb89b87d96903b7c40bad818dd59e213950308aa92b863fd8540de9e6f28f785058d21a6c32252d161a3eabde756e
7
+ data.tar.gz: bc870fd7873f8350ec44880cd8b78dda78fdcf9a632a4853258311082a944f77682620ac4732ff1a0f90a98337ca72e2407529dfa3866f9d7c31204c479316dc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot-cloud (0.3.3)
4
+ superbot-cloud (0.3.4)
5
5
  marcel (= 0.3.3)
6
6
  multipart-post (= 2.0.0)
7
7
 
@@ -6,7 +6,7 @@ module Superbot
6
6
  class LogoutCommand < Clamp::Command
7
7
  def execute
8
8
  Superbot::Cloud.remove_credentials
9
- puts "Succesfully loged out."
9
+ puts "Succesfully logged out."
10
10
  end
11
11
  end
12
12
  end
@@ -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 your organization members", Member::ListCommand
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
- Pry.start
13
- # loop do
14
- # printf '> '
15
- # input = $stdin.gets
16
- # exit if input.nil?
17
- # cmd, arg = input.rstrip.split(' ')
18
- # invoke_command(cmd, arg)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Superbot
4
4
  module Cloud
5
- VERSION = "0.3.3"
5
+ VERSION = "0.3.4"
6
6
  end
7
7
  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.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-01 00:00:00.000000000 Z
11
+ date: 2019-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post