test commit

This commit is contained in:
Tristan Ancelet 2024-06-28 13:01:04 -05:00
parent 7e71d62bce
commit 73797ce2d7
4 changed files with 24 additions and 5 deletions

View File

@ -5,6 +5,8 @@ This is a framework/tool to organize & QA testing of a build of a remote node (l
- [Design Doc](design.adoc)
## What is it's intended purpose?
This is meant to provide an all in one tooling for creating a QA framework for testing builds of a remote
This is meant to provide an all in one tooling for creating a QA framework for testing builds of a remote device over the network.
This can be done with shells like bash, but only to a lesser degree of accuracy. This project seeks to provide a greater degree of accuracy in tests on ensuring that a host has been properly built by whatever tooling you use (puppet, jenkins, etc).

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
$LOAD_PATH << __dir__
require 'manager.rb'
require 'resource.rb'
require 'host.rb'
require 'test.rb'
require 'manager'
require 'resource'
require 'host'
require 'test'

View File

@ -24,6 +24,13 @@ Manager.new_test("hostname in /etc/hosts", :cluster => true ) {|host|
match_regex = /127\.0\.0\.1.+#{hostname.downcase}/
hosts.match? match_regex
}
Manager.new_test("Has user tristan") do |host|
passwd_file = host.exec("cat /etc/passwd")
passwd_file.match? /tristan.*/
end
$Manager.add_host(host)
$Manager.run_tests
$Manager.report

10
rubyqa.gemspec Normal file
View File

@ -0,0 +1,10 @@
Gem::Specification.new do |s|
s.name = "RubyQA"
s.version = '0.1.0'
s.summary = 'A Ruby framework for QA *NIX system builds'
s.description = 'A Ruby based framework defining & orchestrating tests against a host or hosts'
s.authors = ['Tristan Ancelet']
s.email = 'tristanancelet@yahoo.com'
s.homepatge = 'https://git.arcanium.tech/tristan/RubyQA'
s.files = Dir.glob('lib/*.rb')
end