Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Ruby gem for managing and maintaining the HCK setup remotely.

License

NotificationsYou must be signed in to change notification settings

HCK-CI/rtoolsHCK

Repository files navigation

CircleCI

rtoolsHCK is a ruby gem tool-kit based ontoolsHCK for managing and maintaining the HCK setup remotely.

Getting Started

Follow these instructions to install and start using rtoolsHCK.

Prerequisites

What things you need to install the gem

Installing

Execute this command in the git clone's directory

rake buildrake install

Usage

Initialization options

A hash that contains:

ParameterDescriptions
:addrController machine's IP address
(default: 127.0.0.1)
:userThe user name to use in order to connect via winrm to the guest
(default: Administrator)
:passThe password of the user name specified
(default: PASSWORD)
:winrm_portsThe clients winrm connection ports as a hash
(example: { 'Client' => port, ... })
(default: { 'Cl1' => 4001, 'Cl2' => 4002 })
:jsonJSON format the output of the action methods
(default: true)
:timeoutThe action's timeout in seconds
(default: 60)
:log_to_stdoutLog to STDOUT switch
(default: false)
:loggerThe ruby logger object for logging
(default: disabled)
:outp_dirThe path of the directory to fetch the output files to on the local machine
(default: disbaled)

Examples

Creating a rtoolsHCK session to create a new "test" pool and list the pools info

require 'rtoolsHCK'logger = Logger.new('./logger.log')init_opts = {  addr: '10.0.1.5',  user: 'Administrator',  pass: 'PASSWORD',  winrm_ports: { 'Cl1' => 4001, 'Cl2' => 4002 },  logger: logger,  log_to_stdout: true,  outp_dir: './fethced_files'}rtoolsHCK_session = RToolsHCK::new(init_opts)rtoolsHCK_session.create_pool('test')rtoolsHCK_session.list_poolsrtoolsHCK_session.close

Creating a rtoolsHCK session to shutdown the two clients and the controller's machines

require 'rtoolsHCK'logger = Logger.new('./logger.log')init_opts = {  addr: '10.0.1.5',  user: 'Administrator',  pass: 'PASSWORD',  winrm_ports: { 'Cl1' => 4001, 'Cl2' => 4002 },  logger: logger,  log_to_stdout: true,  outp_dir: './fethced_files'}rtoolsHCK_session = RToolsHCK::new(init_opts)rtoolsHCK_session.machine_shutdown('cl1-win10x64')rtoolsHCK_session.machine_shutdown('cl2-win10x64')rtoolsHCK_session.close_and_shutdown

Methods

Action methods

ActionDescriptions
list_poolsLists the pools info.
create_poolCreates a pool.
delete_poolDeletes a pool.
move_machineMoves a machine from one pool to another.
set_machine_stateSets the state of a machine to Ready or NotReady.
delete_machineDeletes a machine.
list_machine_targetsLists the target devices of a machine that are available to be tested.
list_projectsLists the projects info.
create_projectCreates a project.
delete_projectDeletes a project.
create_project_targetCreates a project's target.
delete_project_targetDeletes a project's target.
list_testsLists a project target's tests.
get_test_infoGets a project target's test info.
queue_testQueue's a test, use get_test_results to get the results.
update_filtersUpdates the HCK\HLK controller's filters.
apply_project_filtersApplies the filters on a project's test results.
apply_test_result_filtersApplies the filters on a test result.
list_test_resultsLists a test results info.
zip_test_result_logsZipps a test result's log and fetches the zip.
create_project_packageCreates a project's package.

Control methods

ActionDescriptions
get_machine_ipGets a machine's ip address.
shutdownShuts down or restarts the studio.
machine_shutdownShuts down or restarts a client machine.
install_machine_driver_packageInstalls a driver package on a client machine.
reconnectTries to regain the connection to the guest machine.
connection_checkChecks if connection is still alive.
close_and_shutdownCloses the instance and shuts down the studio.
closeCloses the instance.
closed?Boolean methods to the instance being closed.

For more info execute this command in the git clone's directory

rake rdoc

And open doc/index.html with a browser.

Authors

  • Bishara AbuHattoum

About

Ruby gem for managing and maintaining the HCK setup remotely.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp