Skip to content

Commit

Permalink
Add about yaml file to spec miq_vim_inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jun 28, 2017
1 parent 15e9e52 commit 3a9a095
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 7 deletions.
61 changes: 61 additions & 0 deletions spec/tools/vim_data/miq_vim_inventory/about.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
--- !ruby/hash-with-ivars:VimHash
elements:
name: !ruby/string:VimString
str: VMware vCenter Server
xsiType: :SOAP::SOAPString
vimType:
fullName: !ruby/string:VimString
str: VMware vCenter Server 4.1.0 build-5318154
xsiType: :SOAP::SOAPString
vimType:
vendor: !ruby/string:VimString
str: VMware, Inc.
xsiType: :SOAP::SOAPString
vimType:
version: !ruby/string:VimString
str: 6.5.0
xsiType: :SOAP::SOAPString
vimType:
build: !ruby/string:VimString
str: '5318154'
xsiType: :SOAP::SOAPString
vimType:
localeVersion: !ruby/string:VimString
str: INTL
xsiType: :SOAP::SOAPString
vimType:
localeBuild: !ruby/string:VimString
str: '000'
xsiType: :SOAP::SOAPString
vimType:
osType: !ruby/string:VimString
str: linux-x64
xsiType: :SOAP::SOAPString
vimType:
productLineId: !ruby/string:VimString
str: vpx
xsiType: :SOAP::SOAPString
vimType:
apiType: !ruby/string:VimString
str: VirtualCenter
xsiType: :SOAP::SOAPString
vimType:
apiVersion: !ruby/string:VimString
str: '4.1'
xsiType: :SOAP::SOAPString
vimType:
instanceUuid: !ruby/string:VimString
str: EF53782F-6F1A-4471-B338-72B27774AFDD
xsiType: :SOAP::SOAPString
vimType:
licenseProductName: !ruby/string:VimString
str: VMware VirtualCenter Server
xsiType: :SOAP::SOAPString
vimType:
licenseProductVersion: !ruby/string:VimString
str: '4.1'
xsiType: :SOAP::SOAPString
vimType:
ivars:
:@xsiType: :AboutInfo
:@vimType:
7 changes: 0 additions & 7 deletions spec/tools/vim_data/vim_data_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ def method_missing(m, *_args)
class FakeMiqVimHandle < FakeMiqVimHandleBase
DATA_DIR = "miq_vim_inventory"

def about
{
"apiVersion" => "4.1",
"instanceUuid" => "EF53782F-6F1A-4471-B338-72B27774AFDD"
}
end

def method_missing(m, *args)
m = m.to_s
byMor = (m[-5..-1] == "ByMor" && m[-6, 1] != "s")
Expand Down

0 comments on commit 3a9a095

Please sign in to comment.