0.0
No release in over 3 years
Low commit activity in last 3 years
Provide Tes-Client, Tes-Provider to use public Logic and data struct
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 12.0
~> 3.0

Runtime

 Project Readme

Tes::Request

Build Status Gem Version

TES(Test Env Service) request profile struct, manager lib and request tools

Installation

Add this line to your application's Gemfile:

source "https://rubygems.org"
gem 'tes-request'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tes-request
# check bins:
$ tes-ci-slicer
$ tes-client

Usage

tes-ci-slicer

Given you project root path: /project/root/path, and there has file .ci.yml, file contents as follow:

# file .ci.yml
---
with_one_exclude_pattern:
  spec:
    pattern:
    - spec/a/**/*_spec.rb
    - spec/b/**/*_spec.rb
    exclude_pattern: spec/**/exclude_*_spec.rb

And spec/**/*_spec.rb has content:

# file spec/**/*_spec.rb all have the content part in the head:
# @env begin
#   *1:type=cluster,cfg.member.size>=2,cfg.vs_enable=1
#   &1.cfg.member
#   type=storage_iscsi
#   type=storage_iscsi
# @distribution -standalone
# @end

describe 'abc' do
  # more ...
end

Then you need to slice all spec script to several paralleled jobs.

Step: run cmds like

tes-ci-slicer properties apps/test_project func_test 16 apps/test_project/res_attr_add_map.json

tes-client

# run tes-client without args to sees help usage:
$ tes-client

# Usage:
#     % /usr/local/bin/tes-client {TesWebUrl} {User} request_res  {ResourceId}  [1|0]                       # Request Specified Resource
#     % /usr/local/bin/tes-client {TesWebUrl} {User} release_res  {ResourceId}                              # Release Specified Resource
#     % /usr/local/bin/tes-client {TesWebUrl} {User} request_pool {PoolAskFile} {SaveFile} [TimeoutSeconds] # Request Env Pool 
#     % /usr/local/bin/tes-client {TesWebUrl} {User} release_pool [PoolFile]                                # Release Env Pool

Development

  • After checking out the repo, run bundle to install dependencies. Then, run rake spec to run the tests.
  • To install this gem onto your local machine, run bundle exec rake install.
  • To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/NightProgrammers/tes-request. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.