dtk-client 0.5.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +5 -0
  3. data/Gemfile_dev +12 -0
  4. data/README.md +78 -0
  5. data/bin/dtk +54 -0
  6. data/bin/dtk-shell +15 -0
  7. data/dtk-client.gemspec +49 -0
  8. data/lib/auxiliary.rb +13 -0
  9. data/lib/bundler_monkey_patch.rb +9 -0
  10. data/lib/client.rb +48 -0
  11. data/lib/command_helper.rb +16 -0
  12. data/lib/command_helpers/git_repo.rb +391 -0
  13. data/lib/command_helpers/jenkins_client/config_xml.rb +271 -0
  14. data/lib/command_helpers/jenkins_client.rb +91 -0
  15. data/lib/command_helpers/service_importer.rb +99 -0
  16. data/lib/command_helpers/service_link.rb +18 -0
  17. data/lib/command_helpers/ssh_processing.rb +43 -0
  18. data/lib/commands/common/thor/assembly_workspace.rb +1089 -0
  19. data/lib/commands/common/thor/clone.rb +39 -0
  20. data/lib/commands/common/thor/common.rb +34 -0
  21. data/lib/commands/common/thor/edit.rb +168 -0
  22. data/lib/commands/common/thor/list_diffs.rb +84 -0
  23. data/lib/commands/common/thor/pull_clone_changes.rb +11 -0
  24. data/lib/commands/common/thor/pull_from_remote.rb +99 -0
  25. data/lib/commands/common/thor/purge_clone.rb +26 -0
  26. data/lib/commands/common/thor/push_clone_changes.rb +45 -0
  27. data/lib/commands/common/thor/push_to_remote.rb +45 -0
  28. data/lib/commands/common/thor/reparse.rb +36 -0
  29. data/lib/commands/common/thor/set_required_params.rb +29 -0
  30. data/lib/commands/common/thor/task_status.rb +81 -0
  31. data/lib/commands/thor/account.rb +213 -0
  32. data/lib/commands/thor/assembly.rb +329 -0
  33. data/lib/commands/thor/attribute.rb +62 -0
  34. data/lib/commands/thor/component.rb +52 -0
  35. data/lib/commands/thor/component_module.rb +829 -0
  36. data/lib/commands/thor/component_template.rb +153 -0
  37. data/lib/commands/thor/dependency.rb +18 -0
  38. data/lib/commands/thor/developer.rb +105 -0
  39. data/lib/commands/thor/dtk.rb +117 -0
  40. data/lib/commands/thor/library.rb +107 -0
  41. data/lib/commands/thor/node.rb +411 -0
  42. data/lib/commands/thor/node_group.rb +211 -0
  43. data/lib/commands/thor/node_template.rb +88 -0
  44. data/lib/commands/thor/project.rb +17 -0
  45. data/lib/commands/thor/provider.rb +155 -0
  46. data/lib/commands/thor/repo.rb +35 -0
  47. data/lib/commands/thor/service.rb +656 -0
  48. data/lib/commands/thor/service_module.rb +806 -0
  49. data/lib/commands/thor/state_change.rb +10 -0
  50. data/lib/commands/thor/target.rb +94 -0
  51. data/lib/commands/thor/task.rb +100 -0
  52. data/lib/commands/thor/utils.rb +4 -0
  53. data/lib/commands/thor/workspace.rb +437 -0
  54. data/lib/commands.rb +40 -0
  55. data/lib/config/cacert.pem +3785 -0
  56. data/lib/config/client.conf.header +18 -0
  57. data/lib/config/configuration.rb +82 -0
  58. data/lib/config/default.conf +14 -0
  59. data/lib/config/disk_cacher.rb +60 -0
  60. data/lib/configurator.rb +92 -0
  61. data/lib/context_router.rb +23 -0
  62. data/lib/core.rb +460 -0
  63. data/lib/domain/git_adapter.rb +221 -0
  64. data/lib/domain/response.rb +234 -0
  65. data/lib/dtk-client/version.rb +3 -0
  66. data/lib/dtk_constants.rb +23 -0
  67. data/lib/dtk_logger.rb +96 -0
  68. data/lib/error.rb +74 -0
  69. data/lib/git-logs/git.log +0 -0
  70. data/lib/parser/adapters/option_parser.rb +53 -0
  71. data/lib/parser/adapters/thor/common_option_defs.rb +12 -0
  72. data/lib/parser/adapters/thor.rb +509 -0
  73. data/lib/require_first.rb +87 -0
  74. data/lib/search_hash.rb +27 -0
  75. data/lib/shell/context.rb +975 -0
  76. data/lib/shell/context_aux.rb +29 -0
  77. data/lib/shell/domain.rb +447 -0
  78. data/lib/shell/header_shell.rb +27 -0
  79. data/lib/shell/help_monkey_patch.rb +221 -0
  80. data/lib/shell/interactive_wizard.rb +233 -0
  81. data/lib/shell/parse_monkey_patch.rb +22 -0
  82. data/lib/shell/status_monitor.rb +105 -0
  83. data/lib/shell.rb +219 -0
  84. data/lib/util/console.rb +143 -0
  85. data/lib/util/dtk_puppet.rb +46 -0
  86. data/lib/util/os_util.rb +265 -0
  87. data/lib/view_processor/augmented_simple_list.rb +27 -0
  88. data/lib/view_processor/hash_pretty_print.rb +106 -0
  89. data/lib/view_processor/simple_list.rb +139 -0
  90. data/lib/view_processor/table_print.rb +277 -0
  91. data/lib/view_processor.rb +112 -0
  92. data/puppet/manifests/init.pp +72 -0
  93. data/puppet/manifests/params.pp +16 -0
  94. data/puppet/r8meta.puppet.yml +18 -0
  95. data/puppet/templates/bash_profile.erb +2 -0
  96. data/puppet/templates/client.conf.erb +1 -0
  97. data/puppet/templates/dtkclient.erb +2 -0
  98. data/spec/assembly_spec.rb +50 -0
  99. data/spec/assembly_template_spec.rb +51 -0
  100. data/spec/component_template_spec.rb +40 -0
  101. data/spec/dependency_spec.rb +6 -0
  102. data/spec/dtk_shell_spec.rb +13 -0
  103. data/spec/dtk_spec.rb +33 -0
  104. data/spec/lib/spec_helper.rb +10 -0
  105. data/spec/lib/spec_thor.rb +105 -0
  106. data/spec/module_spec.rb +35 -0
  107. data/spec/node_spec.rb +43 -0
  108. data/spec/node_template_spec.rb +25 -0
  109. data/spec/project_spec.rb +6 -0
  110. data/spec/repo_spec.rb +7 -0
  111. data/spec/response_spec.rb +52 -0
  112. data/spec/service_spec.rb +41 -0
  113. data/spec/state_change_spec.rb +7 -0
  114. data/spec/table_print_spec.rb +48 -0
  115. data/spec/target_spec.rb +57 -0
  116. data/spec/task_spec.rb +28 -0
  117. data/views/assembly/augmented_simple_list.rb +12 -0
  118. data/views/assembly_template/augmented_simple_list.rb +12 -0
  119. data/views/list_task/augmented_simple_list.rb +12 -0
  120. metadata +351 -0
@@ -0,0 +1,72 @@
1
+ class dtk_client($server_hostname)
2
+ {
3
+ include dtk_client::params
4
+ $repos = $dtk_client::params::repos
5
+ $client_user = $dtk_client::params::client_user
6
+ $client_user_homedir = $dtk_client::params::client_user_homedir
7
+ $dtk_username = $dtk_client::params::dtk_username
8
+ $dtk_password = $dtk_client::params::dtk_password
9
+ $client_src_path = $dtk_client::params::repo_targets['client']
10
+ $dtk_client_bin_path = "${client_user_homedir}/${client_src_path}/bin"
11
+
12
+ package {['thor','activesupport']:
13
+ ensure => 'installed',
14
+ provider => 'gem'
15
+ }
16
+
17
+ user { $client_user:
18
+ home => $client_homedir,
19
+ shell => '/bin/bash',
20
+ managehome => true
21
+ }
22
+
23
+ file { "${client_user_homedir}/.bash_profile":
24
+ content => template('dtk_client/bash_profile.erb'),
25
+ owner => $client_user,
26
+ require => User[$client_user]
27
+ }
28
+
29
+ file { "${client_user_homedir}/dtk/connection.conf":
30
+ content => template('dtk_client/dtkclient.erb'),
31
+ owner => $client_user,
32
+ require => User[$client_user]
33
+ }
34
+
35
+ file { '/etc/dtk/':
36
+ ensure => directory,
37
+ owner => $client_user,
38
+ require => User[$client_user]
39
+ }
40
+
41
+ file { '/etc/dtk/client.conf':
42
+ content => template('dtk_client/client.conf.erb'),
43
+ owner => $client_user,
44
+ require => File['/etc/dtk/']
45
+ }
46
+ dtk_client::github_repo { $repos:
47
+ require => User[$client_user]
48
+ }
49
+ }
50
+
51
+ #TODO: change to real app deployment; this only works when right keys already on node
52
+ define dtk_client::github_repo(
53
+ )
54
+ {
55
+ $repo = $name
56
+ include dtk_client::params
57
+ $repo_url = $dtk_client::params::repo_urls[$repo]
58
+ $target = $dtk_client::params::repo_targets[$repo]
59
+ $client_user = $dtk_client::params::client_user
60
+ $client_user_homedir = $dtk_client::params::client_user_homedir
61
+
62
+ $repo_target_dir = "${client_user_homedir}/${target}"
63
+ $git_clone_cmd = "git clone ${repo_url} ${repo_target_dir}"
64
+ $chown_cmd = "chown -R ${client_user} ${repo_target_dir}"
65
+
66
+ exec { "clone ${name}":
67
+ command => "${git_clone_cmd}; ${chown_cmd}",
68
+ path => ['/bin','/usr/bin'],
69
+ logoutput => true,
70
+ creates => $repo_target_dir
71
+ }
72
+ }
@@ -0,0 +1,16 @@
1
+ class dtk_client::params()
2
+ {
3
+ $client_user = 'dtk-client'
4
+ $dtk_username = 'joe'
5
+ $dtk_password = 'r8server'
6
+ $client_user_homedir = "/home/${client_user}"
7
+ $repos = ['client','common']
8
+ $repo_urls = {
9
+ 'client' => 'git@github.com:rich-reactor8/dtk-client.git',
10
+ 'common' => 'git@github.com:rich-reactor8/dtk-common.git'
11
+ }
12
+ $repo_targets = {
13
+ 'client' => 'src',
14
+ 'common' => 'common'
15
+ }
16
+ }
@@ -0,0 +1,18 @@
1
+ --- !omap
2
+ - dtk_client: !omap
3
+ - display_name: dtk_client
4
+ - description: DTK client
5
+ - external_ref:
6
+ class_name: dtk_client
7
+ type: puppet_class
8
+ - basic_type: service
9
+ - component_type: dtk_client
10
+ - attribute: !omap
11
+ - server_hostname: !omap
12
+ - display_name: server_hostname
13
+ - description: DTK server hostname
14
+ - data_type: string
15
+ - required: true
16
+ - external_ref:
17
+ type: puppet_attribute
18
+ path: node[dtk_client][server_hostname]
@@ -0,0 +1,2 @@
1
+ PATH=$PATH:<%= dtk_client_bin_path %>
2
+ export PATH
@@ -0,0 +1 @@
1
+ server_host = <%= server_hostname %>
@@ -0,0 +1,2 @@
1
+ username = <%= dtk_username %>
2
+ password = <%= dtk_password %>
@@ -0,0 +1,50 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/assembly', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+ describe DTK::Client::Assembly do
8
+ $about = ['nodes', 'components', 'attributes','tasks']
9
+ $assembly_id = nil
10
+
11
+ #list all assemblies and take one assembly_id
12
+ context "#list" do
13
+ $assembly_list = run_from_dtk_shell('service list')
14
+
15
+ it "should have assembly listing" do
16
+ $assembly_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
17
+ end
18
+
19
+ unless $assembly_list.nil?
20
+ unless $assembly_list['data'].nil?
21
+ $assembly_id = $assembly_list['data'].first['id'] unless $assembly_list['data'].empty?
22
+ end
23
+ end
24
+ end
25
+
26
+ # for previously taken assembly_id, do list nodes|components|tasks
27
+ context "#list/command" do
28
+ unless $assembly_id.nil?
29
+ $about.each do |type|
30
+ output = run_from_dtk_shell("service #{$assembly_id} list #{type}")
31
+
32
+ it "should list all #{type} for assembly with id #{$assembly_id}" do
33
+ output.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
34
+ end
35
+ end
36
+ end
37
+ end
38
+
39
+ # for previously taken assembly_id, do info
40
+ context "#info" do
41
+ unless $assembly_id.nil?
42
+ output = run_from_dtk_shell("service #{$assembly_id} info")
43
+
44
+ it "should show information about assembly with id #{$assembly_id}" do
45
+ output.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
46
+ end
47
+ end
48
+ end
49
+
50
+ end
@@ -0,0 +1,51 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/assembly', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+ #Currently disabled because this context does not exist anymore
8
+ =begin
9
+ describe DTK::Client::AssemblyTemplate do
10
+ $about = ['nodes', 'components']
11
+ $assembly_template_id = nil
12
+
13
+ context '#list' do
14
+ $assembly_template_list = run_from_dtk_shell('assembly-template list')
15
+
16
+ it "should have assembly-template listing" do
17
+ $assembly_template_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id|Missing)/)
18
+ end
19
+
20
+ unless $assembly_template_list.nil?
21
+ unless $assembly_template_list['data'].nil?
22
+ puts $assembly_template_list['data']
23
+ $assembly_template_id = $assembly_template_list['data'].first['id'] unless $assembly_template_list['data'].empty?
24
+ end
25
+ end
26
+ end
27
+
28
+ context "#list/command" do
29
+ unless $assembly_template_id.nil?
30
+ $about.each do |type|
31
+ output = run_from_dtk_shell("assembly-template #{$assembly_template_id} list #{type}")
32
+
33
+ it "should list all #{type} for assembly-template with id #{$assembly_template_id}" do
34
+ output.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
35
+ end
36
+ end
37
+ end
38
+ end
39
+
40
+ context "#info" do
41
+ unless $assembly_template_id.nil?
42
+ output = run_from_dtk_shell("assembly-template #{$assembly_template_id} info")
43
+
44
+ it "should show information about assembly-template with id #{$assembly_template_id}" do
45
+ output.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ =end
@@ -0,0 +1,40 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/component_template', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+ #Currently disabled because this context does not exist anymore
8
+ =begin
9
+ describe DTK::Client::ComponentTemplate do
10
+ $about = ['none', 'nodes']
11
+ $component_template_id = nil
12
+
13
+ context '#list' do
14
+ $component_template_list = run_from_dtk_shell('component-template list')
15
+
16
+ it "should have assembly listing" do
17
+ $component_template_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
18
+ end
19
+
20
+ unless $component_template_list.nil?
21
+ unless $component_template_list['data'].nil?
22
+ $component_template_id = $component_template_list['data'].first['id'] unless $component_template_list['data'].empty?
23
+ end
24
+ end
25
+ end
26
+
27
+ context "#list/command" do
28
+ unless $component_template_id.nil?
29
+ $about.each do |type|
30
+ output = run_from_dtk_shell("component-template #{$component_template_id} list #{type}")
31
+
32
+ it "should list all #{type} for component-template with id #{$component_template_id}" do
33
+ output.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
34
+ end
35
+ end
36
+ end
37
+ end
38
+
39
+ end
40
+ =end
@@ -0,0 +1,6 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/dependency', File.dirname(__FILE__))
4
+
5
+
6
+
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../lib/shell', File.dirname(__FILE__))
2
+
3
+ describe DTK::Shell do
4
+
5
+ # generic test for all task of Thor class
6
+ #test_task_interface(DTK::Client::Task)
7
+
8
+ init_shell_context()
9
+
10
+ line = 'cc /service'
11
+ execute_shell_command(line,'')
12
+
13
+ end
data/spec/dtk_spec.rb ADDED
@@ -0,0 +1,33 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+
4
+ include SpecThor
5
+
6
+ describe DTK::Client::Dtk do
7
+
8
+ # generic test for all task of Thor class
9
+ #test_task_interface(DTK::Client::Dtk)
10
+
11
+ context "Dtk CLI command" do
12
+
13
+ f = IO.popen('dtk')
14
+ output = f.readlines.join('')
15
+
16
+ it "should have assembly listing" do
17
+ output.should match(/(dtk|service|ok|status|empty|INFO|WARNING)/)
18
+ end
19
+
20
+ it "should have node listing" do
21
+ output.should match(/(dtk|node|ok|status|empty|INFO|WARNING)/)
22
+ end
23
+
24
+ # it "should have repo listing" do
25
+ # output.should include("dtk repo")
26
+ # end
27
+
28
+ it "should have task listing" do
29
+ output.should match(/(dtk|task|ok|status|empty|INFO|WARNING)/)
30
+ end
31
+ end
32
+
33
+ end
@@ -0,0 +1,10 @@
1
+ RSpec.configure do |config|
2
+ # Use color in STDOUT
3
+ config.color_enabled = true
4
+
5
+ # Use color not only in STDOUT but also in pagers and files
6
+ config.tty = true
7
+
8
+ # Use the specified formatter
9
+ #config.formatter = :documentation # :progress, :html, :textmate
10
+ end
@@ -0,0 +1,105 @@
1
+ require File.expand_path('../../lib/client', File.dirname(__FILE__))
2
+ require File.expand_path('../../lib/parser/adapters/thor', File.dirname(__FILE__))
3
+ require File.expand_path('../../lib/shell/context', File.dirname(__FILE__))
4
+ require File.expand_path('../../lib/shell/domain', File.dirname(__FILE__))
5
+ Dir[File.expand_path('../../lib/shell/parse_monkey_patch.rb', File.dirname(__FILE__))].each {|file| require file }
6
+
7
+ require 'shellwords'
8
+ require 'rspec'
9
+
10
+ module SpecThor
11
+
12
+ include DTK::Client::Auxiliary
13
+
14
+ def run_from_dtk_shell(line)
15
+ args = Shellwords.split(line)
16
+ cmd = args.shift
17
+ conn = DTK::Client::Session.get_connection()
18
+
19
+ # special case for when no params are provided use help method
20
+ if (cmd == 'help' || cmd.nil?)
21
+ cmd = 'dtk'
22
+ args = ['help']
23
+ end
24
+
25
+ context = DTK::Shell::Context.new(true)
26
+
27
+ entity_name, method_name, hashed_argv, options_args = context.get_dtk_command_parameters(cmd, args)
28
+ entity_class = DTK::Client.const_get "#{cap_form(entity_name)}"
29
+
30
+ return entity_class.execute_from_cli(conn,method_name,hashed_argv,options_args,true)
31
+ end
32
+
33
+ ##
34
+ # Capturing stream and returning string
35
+ def capture(stream)
36
+ begin
37
+ stream = stream.to_s
38
+ eval "$#{stream} = StringIO.new"
39
+ yield
40
+ result = eval("$#{stream}").string
41
+ ensure
42
+ eval("$#{stream} = #{stream.upcase}")
43
+ end
44
+
45
+ result
46
+ end
47
+
48
+ ##
49
+ # Method work with classes that inherit Thor class. Method will take each task
50
+ # and just run it to check for any errors. In this case internal error.
51
+ def test_task_interface(clazz)
52
+
53
+ # this will stop buffering of print method, for proper output
54
+ # STDOUT.sync = true
55
+
56
+ clazz.all_tasks.each do |a,task|
57
+ context "#{clazz.name} CLI command (#{task.name})" do
58
+
59
+ # e.g. shell execute: dtk assembly list
60
+ command = "dtk #{get_task_name(clazz.name)} #{task.name}"
61
+
62
+ print ">> Surface test for #{command} ... "
63
+
64
+ output = `#{command}`
65
+
66
+ it "should not have errors." do
67
+ output.should_not include("[INTERNAL ERROR]")
68
+ end
69
+
70
+ # test finished (print OK! in green color)
71
+ puts "\e[32mOK!\e[0m"
72
+
73
+ end
74
+ end
75
+ end
76
+
77
+
78
+ # Redirects stderr and stdout to /dev/null.
79
+ def silence_output
80
+ $stderr = File.new('/dev/null', 'w')
81
+ $stdout = File.new('/dev/null', 'w')
82
+ end
83
+
84
+ # Replace stdout and stderr so anything else is output correctly.
85
+ def enable_output
86
+ $stderr = STDOUT
87
+ $stdout = STDERR
88
+ end
89
+
90
+ def unindent(num=nil)
91
+ regex = num ? /^\s{#{num}}/ : /^\s*/
92
+ gsub(regex, '').chomp
93
+ end
94
+
95
+ private
96
+
97
+ ##
98
+ # Method will take task name from class name
99
+ # e.g. DTK::Client::Assembly => assembly
100
+ def get_task_name(clazz_name)
101
+ snake_form(clazz_name.split('::').last).downcase
102
+ end
103
+
104
+
105
+ end
@@ -0,0 +1,35 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/component_module', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+ describe DTK::Client::ComponentModule do
8
+ $module_id = nil
9
+
10
+ #list all assemblies and take one assembly_id
11
+ context '#list' do
12
+ $module_list = run_from_dtk_shell('component-module list')
13
+
14
+ it "should have module listing" do
15
+ $module_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
16
+ end
17
+
18
+ unless $module_list.nil?
19
+ unless $module_list['data'].nil?
20
+ $module_id = $module_list['data'].first['id'] unless $module_list['data'].empty?
21
+ end
22
+ end
23
+ end
24
+
25
+ context "#list/command" do
26
+ unless $module_id.nil?
27
+ output = run_from_dtk_shell("component-module #{$module_id} list-components")
28
+
29
+ it "should list all components for module with id #{$module_id}" do
30
+ $module_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
31
+ end
32
+ end
33
+ end
34
+
35
+ end
data/spec/node_spec.rb ADDED
@@ -0,0 +1,43 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/node', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+ #Currently disabled because this context does not exist anymore
8
+ =begin
9
+ describe DTK::Client::Node do
10
+ $about = ['components', 'attributes']
11
+ $node_id = nil
12
+
13
+ #list all assemblies and take one assembly_id
14
+ context '#list' do
15
+ $node_list = run_from_dtk_shell('node list')
16
+
17
+ it "should list all nodes" do
18
+ $node_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
19
+ end
20
+
21
+ unless $node_list.nil?
22
+ unless $node_list['data'].nil?
23
+ $node_id = $node_list['data'].first['id'] unless $node_list['data'].empty?
24
+ end
25
+ end
26
+ end
27
+
28
+ #current dtk-client code for this test is not implemented
29
+
30
+ # context "#list/command" do
31
+ # unless $node_id.nil?
32
+ # $about.each do |type|
33
+ # output = run_from_dtk_shell("node #{$node_id} list #{type}")
34
+
35
+ # it "should list all #{type} for node with id #{$node_id}" do
36
+ # output.to_s.should match(/(ok|status|id|name|empty|error|WARNING)/)
37
+ # end
38
+ # end
39
+ # end
40
+ # end
41
+
42
+ end
43
+ =end
@@ -0,0 +1,25 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/node_template', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+ describe DTK::Client::NodeTemplate do
8
+ $node_template_id = nil
9
+
10
+ #list all assemblies and take one assembly_id
11
+ context '#list' do
12
+ $node_template_list = run_from_dtk_shell('node-template list')
13
+
14
+ it "should have node-template listing" do
15
+ $node_template_list.to_s.should match(/(ok|status|empty|INFO|WARNING|name|id)/)
16
+ end
17
+
18
+ unless $node_template_list.nil?
19
+ unless $node_template_list['data'].nil?
20
+ $node_template_id = $node_template_list['data'].first['id'] unless $node_template_list['data'].empty?
21
+ end
22
+ end
23
+ end
24
+
25
+ end
@@ -0,0 +1,6 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/project', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
data/spec/repo_spec.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+ require File.expand_path('../lib/commands/thor/repo', File.dirname(__FILE__))
4
+
5
+ include SpecThor
6
+
7
+
@@ -0,0 +1,52 @@
1
+ require 'lib/spec_thor'
2
+ require File.expand_path('../lib/require_first', File.dirname(__FILE__))
3
+
4
+ include SpecThor
5
+
6
+ describe DTK::Client::Response do
7
+ # before{
8
+ # @hash = {"data"=>[{"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147507731, "nodes"=>[{"components"=>["hdp-hadoop::smoketest_hdfs", "hdp-hadoop::datanode", "hdp-hadoop::tasktracker", "hdp", "hdp-hadoop::namenode-conn", "stdlib"], "node_id"=>2147507717, "node_name"=>"HADOOP-slave01"}, {"components"=>["hdp-hadoop::namenode", "hdp", "stdlib", "hdp-hadoop::jobtracker"], "node_id"=>2147507725, "node_name"=>"HADOOP-NN-JT"}], "display_name"=>"abh::R8-C5-HADOOP"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147506303, "nodes"=>[{"components"=>["hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147506290, "node_name"=>"HADOOP-NN-JT"}, {"components"=>["hdp-hadoop::namenode-conn", "hdp-hadoop::datanode", "hdp", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147506296, "node_name"=>"HADOOP-slave01"}], "display_name"=>"abh::R8-CS-HADOOP"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147506141, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147506134, "node_name"=>"HADOOP-slave01"}], "display_name"=>"abh::R8-CS-HADOOP_slave"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505988, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "hdp-hbase::zk-conn", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505961, "node_name"=>"HBASE-slave01"}, {"components"=>["hdp-hbase::master", "hdp", "hdp-hbase::zk-conn", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147505978, "node_name"=>"HBASE-NN-JT-HM"}, {"components"=>["hdp", "stdlib", "hdp-zookeeper"], "node_id"=>2147505973, "node_name"=>"HBASE-ZK"}], "display_name"=>"abh::R8-CS-HBASE"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147506008, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "hdp-hbase::zk-conn", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505996, "node_name"=>"HBASE-slave01"}], "display_name"=>"abh::R8-CS-HBASE_slave"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505734, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib"], "node_id"=>2147505728, "node_name"=>"HDFS-slave01"}, {"components"=>["hdp", "stdlib", "hdp-hadoop::namenode"], "node_id"=>2147505723, "node_name"=>"HDFS-NN"}], "display_name"=>"abh::R8-CS-HDFS"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505743, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib"], "node_id"=>2147505737, "node_name"=>"HDFS-slave01"}], "display_name"=>"abh::R8-CS-HDFS_slave"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505230, "nodes"=>[{"components"=>["hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147505224, "node_name"=>"HADOOP-NN-JT"}, {"components"=>["hdp-hadoop::datanode", "hdp", "hdp-hadoop::namenode-conn", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147505217, "node_name"=>"HADOOP-slave01"}], "display_name"=>"abh::R8-RH-HADOOP"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505240, "nodes"=>[{"components"=>["hdp-hadoop::datanode", "hdp", "hdp-hadoop::namenode-conn", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147505233, "node_name"=>"HADOOP-slave01"}], "display_name"=>"abh::R8-RH-HADOOP_slave"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505617, "nodes"=>[{"components"=>["hdp", "stdlib", "hdp-zookeeper"], "node_id"=>2147505612, "node_name"=>"HBASE-ZK"}, {"components"=>["hdp-hadoop::namenode-conn", "hdp-hbase::zk-conn", "hdp-hadoop::datanode", "hdp", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505590, "node_name"=>"HBASE-slave01"}, {"components"=>["hdp-hbase::master", "hdp-hbase::zk-conn", "hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147505602, "node_name"=>"HBASE-NN-JT-HM"}], "display_name"=>"abh::R8-RH-HBASE"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505637, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp-hbase::zk-conn", "hdp-hadoop::datanode", "hdp", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505625, "node_name"=>"HBASE-slave01"}], "display_name"=>"abh::R8-RH-HBASE_slave"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505200, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib"], "node_id"=>2147505194, "node_name"=>"HDFS-slave01"}, {"components"=>["hdp", "stdlib", "hdp-hadoop::namenode"], "node_id"=>2147505189, "node_name"=>"HDFS-NN"}], "display_name"=>"abh::R8-RH-HDFS"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147505356, "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp-hadoop::datanode", "hdp", "stdlib"], "node_id"=>2147505350, "node_name"=>"HDFS-slave01"}], "display_name"=>"abh::R8-RH-HDFS_slave"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147508641, "nodes"=>[{"components"=>["hdp-hadoop::tasktracker", "hdp-hadoop::datanode", "hdp-hadoop::namenode-conn", "hdp", "stdlib"], "node_id"=>2147508634, "node_name"=>"HADOOP-slave01"}, {"components"=>["hdp-hadoop::smoketest_hdfs", "hdp-hadoop::namenode", "hdp", "stdlib", "hdp-hadoop::jobtracker"], "node_id"=>2147508627, "node_name"=>"HADOOP-NN-JT"}], "display_name"=>"abh::centos_hadoop_smoke"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147508533, "nodes"=>[{"components"=>["hdp-hadoop::tasktracker", "hdp-hadoop::datanode", "hdp-hadoop::namenode-conn", "hdp", "stdlib"], "node_id"=>2147508519, "node_name"=>"HADOOP-slave01"}, {"components"=>["hdp-hadoop::jobtracker", "hdp-hadoop::smoketest_hdfs", "hdp-hadoop::namenode", "hdp", "stdlib"], "node_id"=>2147508526, "node_name"=>"HADOOP-NN-JT"}], "display_name"=>"abh::hadoop_smoke"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147508831, "nodes"=>[{"components"=>["hdp-hbase::master-conn", "hdp-hadoop::datanode", "hdp-hbase::zk-conn", "hdp-hadoop::tasktracker", "hdp", "hdp-hadoop::namenode-conn", "stdlib", "hdp-hbase::regionserver"], "node_id"=>2147508819, "node_name"=>"HBASE-slave01"}, {"components"=>["hdp-hadoop::namenode", "hdp-hadoop::smoketest_hdfs", "hdp-hbase::master", "hdp-hbase::zk-conn", "hdp", "stdlib", "hdp-hadoop::jobtracker"], "node_id"=>2147508808, "node_name"=>"HBASE-NN-JT-HM"}, {"components"=>["hdp-zookeeper", "hdp", "stdlib"], "node_id"=>2147508803, "node_name"=>"HBASE-ZK"}], "display_name"=>"abh::hbase_centos_smoke"}, {"execution_status"=>nil, "module_branch_id"=>2147485695, "id"=>2147493292, "nodes"=>[{"components"=>["hdp-hadoop::namenode", "hdp-hbase::master", "hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hbase::zk-conn"], "node_id"=>2147493278, "node_name"=>"master"}, {"components"=>["stdlib", "hdp-hadoop::namenode-conn", "hdp-hbase::regionserver", "hdp-hbase::master-conn", "hdp-hadoop::tasktracker", "hdp-hadoop::datanode", "hdp-zookeeper", "hdp"], "node_id"=>2147493259, "node_name"=>"slave"}, {"components"=>["hdp-hadoop::namenode-conn", "hdp-hadoop::client", "hdp-hadoop::smoketest_hdfs", "hdp", "stdlib"], "node_id"=>2147493271, "node_name"=>"client"}], "display_name"=>"abh::smoke"}], "status"=>"ok"}
9
+ # # @response = DTK::Client::Response.new(:assembly, @hash)
10
+
11
+ # # @response.render_table(:assembly)
12
+ # # @a = @response.render_data.to_s
13
+ # }
14
+
15
+ # it "render_table" do
16
+
17
+ # expected_table = <<-TABLE.unindent
18
+ # +------------+--------------------------+--------+-------+------------+
19
+ # | id | assembly_name | status | nodes | components |
20
+ # +------------+--------------------------+--------+-------+------------+
21
+ # | 2147507731 | abh::R8-C5-HADOOP | | 2 | |
22
+ # | 2147506303 | abh::R8-CS-HADOOP | | 2 | |
23
+ # | 2147506141 | abh::R8-CS-HADOOP_slave | | 1 | |
24
+ # | 2147505988 | abh::R8-CS-HBASE | | 3 | |
25
+ # | 2147506008 | abh::R8-CS-HBASE_slave | | 1 | |
26
+ # | 2147505734 | abh::R8-CS-HDFS | | 2 | |
27
+ # | 2147505743 | abh::R8-CS-HDFS_slave | | 1 | |
28
+ # | 2147505230 | abh::R8-RH-HADOOP | | 2 | |
29
+ # | 2147505240 | abh::R8-RH-HADOOP_slave | | 1 | |
30
+ # | 2147505617 | abh::R8-RH-HBASE | | 3 | |
31
+ # | 2147505637 | abh::R8-RH-HBASE_slave | | 1 | |
32
+ # | 2147505200 | abh::R8-RH-HDFS | | 2 | |
33
+ # | 2147505356 | abh::R8-RH-HDFS_slave | | 1 | |
34
+ # | 2147508641 | abh::centos_hadoop_smoke | | 2 | |
35
+ # | 2147508533 | abh::hadoop_smoke | | 2 | |
36
+ # | 2147508831 | abh::hbase_centos_smoke | | 3 | |
37
+ # | 2147493292 | abh::smoke | | 3 | |
38
+ # +------------+--------------------------+--------+-------+------------+
39
+
40
+ # 17 rows in set
41
+ # TABLE
42
+
43
+ # @data = [{"execution_status"=>nil, "id"=>2147507731, "display_name"=>"abh::R8-C5-HADOOP", "nodes"=>[{"components"=>["hdp-hadoop::smoketest_hdfs", "hdp-hadoop::datanode", "hdp-hadoop::tasktracker", "hdp", "hdp-hadoop::namenode-conn", "stdlib"], "node_id"=>2147507717, "node_name"=>"HADOOP-slave01"}, {"components"=>["hdp-hadoop::namenode", "hdp", "stdlib", "hdp-hadoop::jobtracker"], "node_id"=>2147507725, "node_name"=>"HADOOP-NN-JT"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147506303, "display_name"=>"abh::R8-CS-HADOOP", "nodes"=>[{"components"=>["hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147506290, "node_name"=>"HADOOP-NN-JT"}, {"components"=>["hdp-hadoop::namenode-conn", "hdp-hadoop::datanode", "hdp", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147506296, "node_name"=>"HADOOP-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147506141, "display_name"=>"abh::R8-CS-HADOOP_slave", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147506134, "node_name"=>"HADOOP-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505988, "display_name"=>"abh::R8-CS-HBASE", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "hdp-hbase::zk-conn", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505961, "node_name"=>"HBASE-slave01"}, {"components"=>["hdp-hbase::master", "hdp", "hdp-hbase::zk-conn", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147505978, "node_name"=>"HBASE-NN-JT-HM"}, {"components"=>["hdp", "stdlib", "hdp-zookeeper"], "node_id"=>2147505973, "node_name"=>"HBASE-ZK"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147506008, "display_name"=>"abh::R8-CS-HBASE_slave", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "hdp-hbase::zk-conn", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505996, "node_name"=>"HBASE-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505734, "display_name"=>"abh::R8-CS-HDFS", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib"], "node_id"=>2147505728, "node_name"=>"HDFS-slave01"}, {"components"=>["hdp", "stdlib", "hdp-hadoop::namenode"], "node_id"=>2147505723, "node_name"=>"HDFS-NN"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505743, "display_name"=>"abh::R8-CS-HDFS_slave", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib"], "node_id"=>2147505737, "node_name"=>"HDFS-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505230, "display_name"=>"abh::R8-RH-HADOOP", "nodes"=>[{"components"=>["hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147505224, "node_name"=>"HADOOP-NN-JT"}, {"components"=>["hdp-hadoop::datanode", "hdp", "hdp-hadoop::namenode-conn", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147505217, "node_name"=>"HADOOP-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505240, "display_name"=>"abh::R8-RH-HADOOP_slave", "nodes"=>[{"components"=>["hdp-hadoop::datanode", "hdp", "hdp-hadoop::namenode-conn", "stdlib", "hdp-hadoop::tasktracker"], "node_id"=>2147505233, "node_name"=>"HADOOP-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505617, "display_name"=>"abh::R8-RH-HBASE", "nodes"=>[{"components"=>["hdp", "stdlib", "hdp-zookeeper"], "node_id"=>2147505612, "node_name"=>"HBASE-ZK"}, {"components"=>["hdp-hadoop::namenode-conn", "hdp-hbase::zk-conn", "hdp-hadoop::datanode", "hdp", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505590, "node_name"=>"HBASE-slave01"}, {"components"=>["hdp-hbase::master", "hdp-hbase::zk-conn", "hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hadoop::namenode"], "node_id"=>2147505602, "node_name"=>"HBASE-NN-JT-HM"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505637, "display_name"=>"abh::R8-RH-HBASE_slave", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp-hbase::zk-conn", "hdp-hadoop::datanode", "hdp", "stdlib", "hdp-hbase::regionserver", "hdp-hadoop::tasktracker", "hdp-hbase::master-conn"], "node_id"=>2147505625, "node_name"=>"HBASE-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505200, "display_name"=>"abh::R8-RH-HDFS", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp", "hdp-hadoop::datanode", "stdlib"], "node_id"=>2147505194, "node_name"=>"HDFS-slave01"}, {"components"=>["hdp", "stdlib", "hdp-hadoop::namenode"], "node_id"=>2147505189, "node_name"=>"HDFS-NN"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147505356, "display_name"=>"abh::R8-RH-HDFS_slave", "nodes"=>[{"components"=>["hdp-hadoop::namenode-conn", "hdp-hadoop::datanode", "hdp", "stdlib"], "node_id"=>2147505350, "node_name"=>"HDFS-slave01"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147508641, "display_name"=>"abh::centos_hadoop_smoke", "nodes"=>[{"components"=>["hdp-hadoop::tasktracker", "hdp-hadoop::datanode", "hdp-hadoop::namenode-conn", "hdp", "stdlib"], "node_id"=>2147508634, "node_name"=>"HADOOP-slave01"}, {"components"=>["hdp-hadoop::smoketest_hdfs", "hdp-hadoop::namenode", "hdp", "stdlib", "hdp-hadoop::jobtracker"], "node_id"=>2147508627, "node_name"=>"HADOOP-NN-JT"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147508533, "display_name"=>"abh::hadoop_smoke", "nodes"=>[{"components"=>["hdp-hadoop::tasktracker", "hdp-hadoop::datanode", "hdp-hadoop::namenode-conn", "hdp", "stdlib"], "node_id"=>2147508519, "node_name"=>"HADOOP-slave01"}, {"components"=>["hdp-hadoop::jobtracker", "hdp-hadoop::smoketest_hdfs", "hdp-hadoop::namenode", "hdp", "stdlib"], "node_id"=>2147508526, "node_name"=>"HADOOP-NN-JT"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147508831, "display_name"=>"abh::hbase_centos_smoke", "nodes"=>[{"components"=>["hdp-hbase::master-conn", "hdp-hadoop::datanode", "hdp-hbase::zk-conn", "hdp-hadoop::tasktracker", "hdp", "hdp-hadoop::namenode-conn", "stdlib", "hdp-hbase::regionserver"], "node_id"=>2147508819, "node_name"=>"HBASE-slave01"}, {"components"=>["hdp-hadoop::namenode", "hdp-hadoop::smoketest_hdfs", "hdp-hbase::master", "hdp-hbase::zk-conn", "hdp", "stdlib", "hdp-hadoop::jobtracker"], "node_id"=>2147508808, "node_name"=>"HBASE-NN-JT-HM"}, {"components"=>["hdp-zookeeper", "hdp", "stdlib"], "node_id"=>2147508803, "node_name"=>"HBASE-ZK"}], "module_branch_id"=>2147485695}, {"execution_status"=>nil, "id"=>2147493292, "display_name"=>"abh::smoke", "nodes"=>[{"components"=>["hdp-hadoop::namenode", "hdp-hbase::master", "hdp", "stdlib", "hdp-hadoop::jobtracker", "hdp-hbase::zk-conn"], "node_id"=>2147493278, "node_name"=>"master"}, {"components"=>["stdlib", "hdp-hadoop::namenode-conn", "hdp-hbase::regionserver", "hdp-hbase::master-conn", "hdp-hadoop::tasktracker", "hdp-hadoop::datanode", "hdp-zookeeper", "hdp"], "node_id"=>2147493259, "node_name"=>"slave"}, {"components"=>["hdp-hadoop::namenode-conn", "hdp-hadoop::client", "hdp-hadoop::smoketest_hdfs", "hdp", "stdlib"], "node_id"=>2147493271, "node_name"=>"client"}], "module_branch_id"=>2147485695}]
44
+ # @command_clazz = :assembly
45
+ # @data_type_clazz = "ASSEMBLY"
46
+
47
+ # @a = DTK::Client::ViewProcTablePrint.new("table_print", :assembly)
48
+ # @a.render(@data, @command_clazz, @data_type_clazz)
49
+ # end
50
+
51
+
52
+ end