abiquo-installer-tests 20120104 → 20121023.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +11 -7
- data/bin/abiquo-installer-tests +68 -43
- data/tests/1.8.5/abiquo_ciab.rb +21 -0
- data/tests/1.8.5/abiquo_kvm.rb +25 -0
- data/tests/1.8.5/abiquo_lvmiscsi.rb +17 -0
- data/tests/1.8.5/abiquo_monolithic.rb +12 -0
- data/tests/1.8.5/abiquo_nfs_repository.rb +23 -0
- data/tests/1.8.5/abiquo_platform.rb +39 -0
- data/tests/1.8.5/abiquo_remote_services.rb +115 -0
- data/tests/1.8.5/abiquo_server.rb +63 -0
- data/tests/1.8.5/abiquo_v2v.rb +37 -0
- data/tests/1.8.5/abiquo_vbox.rb +27 -0
- data/tests/1.8.5/abiquo_xen.rb +27 -0
- data/tests/2.0/abiquo_ciab.rb +9 -0
- data/tests/2.0/abiquo_community_hypervisor.rb +52 -0
- data/tests/2.0/abiquo_kvm.rb +5 -23
- data/tests/2.0/abiquo_monolithic.rb +12 -1
- data/tests/2.0/abiquo_platform.rb +2 -2
- data/tests/2.0/abiquo_remote_services.rb +15 -38
- data/tests/2.0/abiquo_server.rb +7 -1
- data/tests/2.0/abiquo_v2v.rb +42 -0
- data/tests/2.0/abiquo_vbox.rb +5 -25
- data/tests/2.0/abiquo_xen.rb +5 -25
- data/tests/2.2.0/abiquo_ciab.rb +30 -0
- data/tests/2.2.0/abiquo_community_hypervisor.rb +52 -0
- data/tests/2.2.0/abiquo_kvm.rb +7 -0
- data/tests/2.2.0/abiquo_lvmiscsi.rb +17 -0
- data/tests/2.2.0/abiquo_monolithic.rb +23 -0
- data/tests/2.2.0/abiquo_nfs_repository.rb +23 -0
- data/tests/2.2.0/abiquo_platform.rb +35 -0
- data/tests/2.2.0/abiquo_remote_services.rb +96 -0
- data/tests/2.2.0/abiquo_server.rb +95 -0
- data/tests/2.2.0/abiquo_v2v.rb +79 -0
- data/tests/2.2.0/abiquo_vbox.rb +7 -0
- data/tests/2.2.0/abiquo_xen.rb +7 -0
- data/tests/2.3.0/abiquo_ciab.rb +30 -0
- data/tests/2.3.0/abiquo_community_hypervisor.rb +52 -0
- data/tests/2.3.0/abiquo_kvm.rb +7 -0
- data/tests/2.3.0/abiquo_lvmiscsi.rb +17 -0
- data/tests/2.3.0/abiquo_monolithic.rb +23 -0
- data/tests/2.3.0/abiquo_nfs_repository.rb +23 -0
- data/tests/2.3.0/abiquo_platform.rb +35 -0
- data/tests/2.3.0/abiquo_remote_services.rb +96 -0
- data/tests/2.3.0/abiquo_server.rb +95 -0
- data/tests/2.3.0/abiquo_v2v.rb +79 -0
- data/tests/2.3.0/abiquo_vbox.rb +7 -0
- data/tests/2.3.0/abiquo_xen.rb +7 -0
- data/tests/abiquo_postinst_test.rb +12 -1
- data/vendor/net-scp-1.0.4/CHANGELOG.rdoc +29 -0
- data/vendor/net-scp-1.0.4/Manifest +17 -0
- data/vendor/net-scp-1.0.4/README.rdoc +98 -0
- data/vendor/net-scp-1.0.4/Rakefile +83 -0
- data/vendor/net-scp-1.0.4/lib/net/scp.rb +432 -0
- data/vendor/net-scp-1.0.4/lib/net/scp/download.rb +150 -0
- data/vendor/net-scp-1.0.4/lib/net/scp/errors.rb +5 -0
- data/vendor/net-scp-1.0.4/lib/net/scp/upload.rb +142 -0
- data/vendor/net-scp-1.0.4/lib/net/scp/version.rb +18 -0
- data/vendor/net-scp-1.0.4/lib/uri/open-scp.rb +18 -0
- data/vendor/net-scp-1.0.4/lib/uri/scp.rb +35 -0
- data/vendor/net-scp-1.0.4/net-scp.gemspec +34 -0
- data/vendor/net-scp-1.0.4/setup.rb +1331 -0
- data/vendor/net-scp-1.0.4/test/common.rb +153 -0
- data/vendor/net-scp-1.0.4/test/test_all.rb +3 -0
- data/vendor/net-scp-1.0.4/test/test_download.rb +170 -0
- data/vendor/net-scp-1.0.4/test/test_scp.rb +60 -0
- data/vendor/net-scp-1.0.4/test/test_upload.rb +269 -0
- data/vendor/net-sftp-2.0.5/CHANGELOG.rdoc +49 -0
- data/vendor/net-sftp-2.0.5/Manifest +55 -0
- data/vendor/net-sftp-2.0.5/README.rdoc +96 -0
- data/vendor/net-sftp-2.0.5/Rakefile +30 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp.rb +70 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/constants.rb +187 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/errors.rb +39 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/operations/dir.rb +93 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/operations/download.rb +364 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/operations/file.rb +176 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/operations/file_factory.rb +60 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/operations/upload.rb +387 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/packet.rb +21 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol.rb +32 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/01/attributes.rb +315 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/01/base.rb +268 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/01/name.rb +43 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/02/base.rb +31 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/03/base.rb +35 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/04/attributes.rb +152 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/04/base.rb +94 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/04/name.rb +67 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/05/base.rb +66 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/06/attributes.rb +107 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/06/base.rb +63 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/protocol/base.rb +50 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/request.rb +91 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/response.rb +76 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/session.rb +952 -0
- data/vendor/net-sftp-2.0.5/lib/net/sftp/version.rb +18 -0
- data/vendor/net-sftp-2.0.5/net-sftp.gemspec +34 -0
- data/vendor/net-sftp-2.0.5/setup.rb +1331 -0
- data/vendor/net-sftp-2.0.5/test/common.rb +172 -0
- data/vendor/net-sftp-2.0.5/test/protocol/01/test_attributes.rb +97 -0
- data/vendor/net-sftp-2.0.5/test/protocol/01/test_base.rb +210 -0
- data/vendor/net-sftp-2.0.5/test/protocol/01/test_name.rb +27 -0
- data/vendor/net-sftp-2.0.5/test/protocol/02/test_base.rb +26 -0
- data/vendor/net-sftp-2.0.5/test/protocol/03/test_base.rb +27 -0
- data/vendor/net-sftp-2.0.5/test/protocol/04/test_attributes.rb +148 -0
- data/vendor/net-sftp-2.0.5/test/protocol/04/test_base.rb +74 -0
- data/vendor/net-sftp-2.0.5/test/protocol/04/test_name.rb +53 -0
- data/vendor/net-sftp-2.0.5/test/protocol/05/test_base.rb +62 -0
- data/vendor/net-sftp-2.0.5/test/protocol/06/test_attributes.rb +124 -0
- data/vendor/net-sftp-2.0.5/test/protocol/06/test_base.rb +51 -0
- data/vendor/net-sftp-2.0.5/test/protocol/test_base.rb +42 -0
- data/vendor/net-sftp-2.0.5/test/test_all.rb +7 -0
- data/vendor/net-sftp-2.0.5/test/test_dir.rb +47 -0
- data/vendor/net-sftp-2.0.5/test/test_download.rb +252 -0
- data/vendor/net-sftp-2.0.5/test/test_file.rb +159 -0
- data/vendor/net-sftp-2.0.5/test/test_file_factory.rb +48 -0
- data/vendor/net-sftp-2.0.5/test/test_packet.rb +9 -0
- data/vendor/net-sftp-2.0.5/test/test_protocol.rb +17 -0
- data/vendor/net-sftp-2.0.5/test/test_request.rb +71 -0
- data/vendor/net-sftp-2.0.5/test/test_response.rb +53 -0
- data/vendor/net-sftp-2.0.5/test/test_session.rb +741 -0
- data/vendor/net-sftp-2.0.5/test/test_upload.rb +219 -0
- data/vendor/net-ssh-2.5.2/CHANGELOG.rdoc +295 -0
- data/vendor/net-ssh-2.5.2/LICENSE.rdoc +19 -0
- data/vendor/net-ssh-2.5.2/Manifest +132 -0
- data/vendor/net-ssh-2.5.2/README.rdoc +184 -0
- data/vendor/net-ssh-2.5.2/Rakefile +88 -0
- data/vendor/net-ssh-2.5.2/Rudyfile +96 -0
- data/vendor/net-ssh-2.5.2/THANKS.rdoc +19 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh.rb +223 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/agent.rb +23 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/agent/java_pageant.rb +85 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/agent/socket.rb +170 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/constants.rb +18 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/key_manager.rb +253 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/methods/abstract.rb +60 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/methods/hostbased.rb +75 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/methods/keyboard_interactive.rb +70 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/methods/password.rb +43 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/methods/publickey.rb +96 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/pageant.rb +264 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/authentication/session.rb +154 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/buffer.rb +350 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/buffered_io.rb +198 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/config.rb +207 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/connection/channel.rb +630 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/connection/constants.rb +33 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/connection/session.rb +597 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/connection/term.rb +178 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/errors.rb +88 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/key_factory.rb +107 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/known_hosts.rb +141 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/loggable.rb +61 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/packet.rb +102 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/prompt.rb +93 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/proxy/command.rb +75 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/proxy/errors.rb +14 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/proxy/http.rb +94 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/proxy/socks4.rb +70 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/proxy/socks5.rb +142 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/ruby_compat.rb +51 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/service/forward.rb +298 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test.rb +89 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/channel.rb +129 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/extensions.rb +152 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/kex.rb +44 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/local_packet.rb +51 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/packet.rb +81 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/remote_packet.rb +38 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/script.rb +157 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/test/socket.rb +64 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/algorithms.rb +407 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/cipher_factory.rb +106 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/constants.rb +32 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/ctr.rb +95 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac.rb +45 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/abstract.rb +79 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/md5.rb +12 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/md5_96.rb +11 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/none.rb +15 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/ripemd160.rb +13 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/sha1.rb +13 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/sha1_96.rb +11 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/sha2_256.rb +15 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/sha2_256_96.rb +13 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/sha2_512.rb +14 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/hmac/sha2_512_96.rb +13 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/identity_cipher.rb +55 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex.rb +28 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/diffie_hellman_group14_sha1.rb +44 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +216 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +80 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha256.rb +15 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb +93 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/ecdh_sha2_nistp384.rb +13 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/kex/ecdh_sha2_nistp521.rb +13 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/key_expander.rb +26 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/openssl.rb +237 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/packet_stream.rb +235 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/server_version.rb +71 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/session.rb +278 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/transport/state.rb +206 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/verifiers/lenient.rb +30 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/verifiers/null.rb +12 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/verifiers/strict.rb +53 -0
- data/vendor/net-ssh-2.5.2/lib/net/ssh/version.rb +62 -0
- data/vendor/net-ssh-2.5.2/net-ssh.gemspec +172 -0
- data/vendor/net-ssh-2.5.2/setup.rb +1585 -0
- data/vendor/net-ssh-2.5.2/support/arcfour_check.rb +20 -0
- data/vendor/net-ssh-2.5.2/support/ssh_tunnel_bug.rb +65 -0
- data/vendor/net-ssh-2.5.2/test/README.txt +43 -0
- data/vendor/net-ssh-2.5.2/test/authentication/methods/common.rb +28 -0
- data/vendor/net-ssh-2.5.2/test/authentication/methods/test_abstract.rb +51 -0
- data/vendor/net-ssh-2.5.2/test/authentication/methods/test_hostbased.rb +114 -0
- data/vendor/net-ssh-2.5.2/test/authentication/methods/test_keyboard_interactive.rb +100 -0
- data/vendor/net-ssh-2.5.2/test/authentication/methods/test_password.rb +52 -0
- data/vendor/net-ssh-2.5.2/test/authentication/methods/test_publickey.rb +148 -0
- data/vendor/net-ssh-2.5.2/test/authentication/test_agent.rb +205 -0
- data/vendor/net-ssh-2.5.2/test/authentication/test_key_manager.rb +218 -0
- data/vendor/net-ssh-2.5.2/test/authentication/test_session.rb +106 -0
- data/vendor/net-ssh-2.5.2/test/common.rb +107 -0
- data/vendor/net-ssh-2.5.2/test/configs/eqsign +3 -0
- data/vendor/net-ssh-2.5.2/test/configs/exact_match +8 -0
- data/vendor/net-ssh-2.5.2/test/configs/host_plus +10 -0
- data/vendor/net-ssh-2.5.2/test/configs/multihost +4 -0
- data/vendor/net-ssh-2.5.2/test/configs/nohost +19 -0
- data/vendor/net-ssh-2.5.2/test/configs/numeric_host +4 -0
- data/vendor/net-ssh-2.5.2/test/configs/wild_cards +14 -0
- data/vendor/net-ssh-2.5.2/test/connection/test_channel.rb +467 -0
- data/vendor/net-ssh-2.5.2/test/connection/test_session.rb +488 -0
- data/vendor/net-ssh-2.5.2/test/known_hosts/github +1 -0
- data/vendor/net-ssh-2.5.2/test/manual/test_forward.rb +223 -0
- data/vendor/net-ssh-2.5.2/test/start/test_transport.rb +28 -0
- data/vendor/net-ssh-2.5.2/test/test_all.rb +9 -0
- data/vendor/net-ssh-2.5.2/test/test_buffer.rb +426 -0
- data/vendor/net-ssh-2.5.2/test/test_buffered_io.rb +63 -0
- data/vendor/net-ssh-2.5.2/test/test_config.rb +120 -0
- data/vendor/net-ssh-2.5.2/test/test_key_factory.rb +121 -0
- data/vendor/net-ssh-2.5.2/test/test_known_hosts.rb +13 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_md5.rb +39 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_md5_96.rb +25 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_none.rb +34 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_ripemd160.rb +34 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_sha1.rb +34 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_sha1_96.rb +25 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_sha2_256.rb +35 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_sha2_256_96.rb +25 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_sha2_512.rb +35 -0
- data/vendor/net-ssh-2.5.2/test/transport/hmac/test_sha2_512_96.rb +25 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_diffie_hellman_group14_sha1.rb +13 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_diffie_hellman_group1_sha1.rb +146 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_diffie_hellman_group_exchange_sha1.rb +92 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_diffie_hellman_group_exchange_sha256.rb +33 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_ecdh_sha2_nistp256.rb +161 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_ecdh_sha2_nistp384.rb +37 -0
- data/vendor/net-ssh-2.5.2/test/transport/kex/test_ecdh_sha2_nistp521.rb +37 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_algorithms.rb +330 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_cipher_factory.rb +441 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_hmac.rb +34 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_identity_cipher.rb +40 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_packet_stream.rb +1745 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_server_version.rb +78 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_session.rb +315 -0
- data/vendor/net-ssh-2.5.2/test/transport/test_state.rb +179 -0
- metadata +325 -78
data/tests/2.0/abiquo_xen.rb
CHANGED
@@ -1,27 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
def test_aim_running
|
4
|
-
assert !`ps aux|grep abiquo-aim`.strip.chomp.empty?
|
5
|
-
end
|
6
|
-
|
7
|
-
def test_aim_service_enabled
|
8
|
-
assert ::TestUtils.service_on?('abiquo-aim')
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_libvirtd_service_enabled
|
12
|
-
assert ::TestUtils.service_on?('libvirtd')
|
13
|
-
end
|
1
|
+
require 'abiquo_community_hypervisor'
|
14
2
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
def test_abiquo_aim_properties_file
|
20
|
-
assert File.exist? '/etc/abiquo-aim.ini'
|
21
|
-
end
|
22
|
-
|
23
|
-
def test_nfs_mounted
|
24
|
-
assert !`mount|grep vm_repository`.strip.chomp.empty?
|
25
|
-
end
|
26
|
-
|
3
|
+
class AbiquoXenTest < Test::Unit::TestCase
|
4
|
+
def test_dummy
|
5
|
+
assert true
|
6
|
+
end
|
27
7
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'abiquo_platform'
|
2
|
+
require 'abiquo_remote_services'
|
3
|
+
require 'abiquo_server'
|
4
|
+
require 'abiquo_v2v'
|
5
|
+
require 'abiquo_monolithic'
|
6
|
+
require 'abiquo_kvm'
|
7
|
+
require 'abiquo_lvmiscsi'
|
8
|
+
|
9
|
+
class AbiquoCIABTest < Test::Unit::TestCase
|
10
|
+
def test_lvm_tomcat_dir
|
11
|
+
assert File.directory? '/opt/abiquo/lvmiscsi/tomcat/',"lvmiscsi webapp does not exist."
|
12
|
+
end
|
13
|
+
|
14
|
+
#
|
15
|
+
# overriding abiquo_platform test
|
16
|
+
# FW can be safely enabled in CIAB installs
|
17
|
+
#
|
18
|
+
def test_firewall_service_enabled
|
19
|
+
assert true
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_fullvirt_disabled
|
23
|
+
prop = TestUtils.find_abiquo_property 'abiquo.virtualfactory.kvm.fullVirt'
|
24
|
+
assert !prop.nil?, "Property abiquo.virtualfactory.kvm.fullVirt not found"
|
25
|
+
pval = prop.split("=")[1].strip.chomp
|
26
|
+
assert (pval == 'false'),
|
27
|
+
"Invalid abiquo.virtualfactory.kvm.fullVirt property value. Value should be false."
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
class AbiquoCommunityHypervisor < Test::Unit::TestCase
|
2
|
+
def test_aim_running
|
3
|
+
assert !`ps aux|grep abiquo-aim`.strip.chomp.empty?
|
4
|
+
end
|
5
|
+
|
6
|
+
def test_aim_service_enabled
|
7
|
+
assert ::TestUtils.service_on?('abiquo-aim'),"abiquo-aim service not enabled"
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_libvirtd_service_enabled
|
11
|
+
assert ::TestUtils.service_on?('libvirtd'),"libvirtd service not enabled"
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_firewall_service_enabled
|
15
|
+
assert !::TestUtils.service_on?('iptables'),
|
16
|
+
"WARNING: iptables service is enabled. This might be ok but double check the firewall rules if you are having problems connecting to the hypervisor."
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_abiquo_aim_properties_file
|
20
|
+
assert File.exist? '/etc/abiquo-aim.ini',"/etc/abiquo-aim.ini does not exist."
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_nfs_mounted
|
24
|
+
# It's ok if the NFS isn't mounted in a CIAB install
|
25
|
+
if not TestUtils.installer_profiles.include? 'cloud-in-a-box'
|
26
|
+
assert !`mount|grep vm_repository`.strip.chomp.empty?,"vm_repository not mounted"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
def test_valid_libvirt_conf
|
32
|
+
buff = File.read '/etc/libvirt/libvirtd.conf'
|
33
|
+
|
34
|
+
if buff =~ /^auth_tls.*none/ and \
|
35
|
+
buff =~ /^tcp_port.*16509/ and \
|
36
|
+
buff =~ /^auth_tcp.*none/
|
37
|
+
assert true
|
38
|
+
else
|
39
|
+
assert false, "Invalid /etc/libvirt/libvirtd.conf"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_valid_libvirt_sysconfig
|
44
|
+
buff = File.read '/etc/sysconfig/libvirtd'
|
45
|
+
if buff =~ /^LIBVIRTD_ARGS.*--listen/
|
46
|
+
assert true
|
47
|
+
else
|
48
|
+
assert false, "Invalid /etc/sysconfig/libvirtd"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class AbiquoLVMISCSITest < Test::Unit::TestCase
|
2
|
+
|
3
|
+
def test_tomcat_running
|
4
|
+
assert !`ps aux|grep java|grep '/opt/abiquo/lvmiscsi/tomcat'`.strip.chomp.empty?,"lvmiscsi webapp does not exist."
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_tomcat_enabled
|
8
|
+
assert ::TestUtils.service_on?('abiquo-lvmiscsi'),"abiquo-lvmiscsi service not enabled."
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_firewall_service_enabled
|
12
|
+
unless ::TestUtils.installer_profiles.include? 'cloud-in-a-box'
|
13
|
+
assert !::TestUtils.service_on?('iptables'),"WARNING: iptables enabled."
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'abiquo_platform'
|
2
|
+
require 'abiquo_remote_services'
|
3
|
+
require 'abiquo_server'
|
4
|
+
require 'abiquo_v2v'
|
5
|
+
|
6
|
+
class AbiquoMonolithicTest < Test::Unit::TestCase
|
7
|
+
def test_required_packages
|
8
|
+
%w{abiquo-pocsetup abiquo-core ntp nfs-utils}.each do |p|
|
9
|
+
assert !`rpm -q #{p}`.strip.chomp.empty?, "#{p} package not installed."
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_repository_location_property
|
14
|
+
if TestUtils.installer_profiles.include?('abiquo-nfs-repository')
|
15
|
+
prop = TestUtils.find_abiquo_property 'abiquo.appliancemanager.repositoryLocation'
|
16
|
+
assert !prop.nil?
|
17
|
+
pval = prop.split("=")[1].strip.chomp
|
18
|
+
assert (pval =~ /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):\//).eql?(0),
|
19
|
+
"Invalid abiquo.appliancemanager.repositoryLocation property value: #{pval}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class NFSRepositoryTest < Test::Unit::TestCase
|
2
|
+
|
3
|
+
def test_abiquo_repository_file
|
4
|
+
assert File.exist? '/opt/vm_repository/.abiquo_repository',"WARNING: /opt/vm_repository/.abiquo_repository does not exist."
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_exports_file
|
8
|
+
assert File.exist? '/etc/exports',"/etc/exports does not exist."
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_exports_file_contents
|
12
|
+
count = 0
|
13
|
+
File.read('/etc/exports').each_line do |l|
|
14
|
+
count += 1 if l =~ /\/opt\/vm_repository/
|
15
|
+
end
|
16
|
+
assert(count == 1),"WARNING: Wrong /etc/exports."
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_nfs_service_on
|
20
|
+
assert(::TestUtils.service_on? 'nfs'),"nfs service not enabled."
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
class AbiquoPlatformTest < Test::Unit::TestCase
|
2
|
+
|
3
|
+
def test_version_string
|
4
|
+
assert File.read('/etc/abiquo-release') =~ /\s2\.2/,"Wrong abiquo release version."
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_tomcat_core_version
|
8
|
+
assert `rpm -q abiquo-core` =~ /abiquo-core-2\.2.*el5/,"Wrong abiquo-core package."
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_abiquo_etk_version
|
12
|
+
assert `rpm -q rubygem-abiquo-etk` =~ /0\.6\.2/,"Wrong rubygem-abiquo-etk package."
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_tomcat_running
|
16
|
+
assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?,
|
17
|
+
"Abiquo Tomcat is not Running"
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_tomcat_enabled
|
21
|
+
assert ::TestUtils.service_on?('abiquo-tomcat'),
|
22
|
+
"abiquo-tomcat service is not enabled"
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_abiquo_dir
|
26
|
+
assert File.directory?('/opt/abiquo/tomcat'),
|
27
|
+
"/opt/abiquo/tomcat directory does not exist"
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_firewall_service_enabled
|
31
|
+
assert !::TestUtils.service_on?('iptables'),
|
32
|
+
"WARNING: iptables service is enabled. This might be ok but double check the firewall rules if you are having problems connecting to the hypervisor."
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
require 'abiquo_platform'
|
2
|
+
|
3
|
+
class AbiquoRemoteServicesTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_required_packages
|
6
|
+
%w{abiquo-remote-services abiquo-vsm abiquo-ssm abiquo-virtualfactory abiquo-nodecollector abiquo-core ntp nfs-utils jdk}.each do |p|
|
7
|
+
assert !`rpm -q #{p}`.strip.chomp.empty?, "#{p} package not installed."
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_abiquo_properties_present
|
12
|
+
assert File.exist?('/opt/abiquo/config/abiquo.properties'),
|
13
|
+
'abiquo.properties file not found'
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_redis_running
|
17
|
+
assert !`ps aux|grep java|grep redis`.strip.chomp.empty?,
|
18
|
+
'redis is not running'
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_nfs_mounted
|
22
|
+
if not ::TestUtils.installer_profiles.include?('abiquo-nfs-repository') and \
|
23
|
+
!::TestUtils.installer_profiles.include?('cloud-in-a-box')
|
24
|
+
assert !`mount|grep vm_repository`.strip.chomp.empty?,"vm_repository not mounted."
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_webapps_deployed?
|
29
|
+
%w{virtualfactory vsm ssm am nodecollector}.each do |w|
|
30
|
+
assert TestUtils.webapp_deployed?(w), "#{w} tomcat webapp not found in #{TestUtils.abiquo_base_dir}/tomcat/webapps"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_dhcpd_enabled
|
35
|
+
assert ::TestUtils.service_on?('dhcpd')
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_am
|
39
|
+
assert ::TestUtils.web_service_ok?('am/check'), "AM webapp status is not OK. Check for tomcat errors."
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_vsm
|
43
|
+
assert ::TestUtils.web_service_ok?('vsm/check'), "VSM webapp status is not OK. Check for tomcat errors."
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_nodecollector
|
47
|
+
assert ::TestUtils.web_service_ok?('nodecollector/check'), "NodeCollector webapp status is not OK. Check for tomcat errors."
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_ssm
|
51
|
+
assert ::TestUtils.web_service_ok?('ssm/check'), "SSM webapp status is not OK. Check for tomcat errors."
|
52
|
+
end
|
53
|
+
|
54
|
+
def test_virtualfactory
|
55
|
+
assert ::TestUtils.web_service_ok?('virtualfactory/check'), "Virtualfactory webapp status is not OK. Check for tomcat errors."
|
56
|
+
end
|
57
|
+
|
58
|
+
def test_abiquo_repository_file
|
59
|
+
assert File.exist?('/opt/vm_repository/.abiquo_repository'), "File /opt/vm_repository/.abiquo_repository not found"
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_properties
|
63
|
+
require 'iniparse'
|
64
|
+
config = IniParse.parse(File.read('/opt/abiquo/config/abiquo.properties'))
|
65
|
+
assert !config['remote-services'].nil?,
|
66
|
+
"[remote-services] section in /opt/abiquo/config/abiquo.properties is missing"
|
67
|
+
|
68
|
+
assert !config['remote-services']['abiquo.rabbitmq.username'].nil?,
|
69
|
+
"abiquo.rabbitmq.username property is missing in abiquo.properties"
|
70
|
+
|
71
|
+
assert !config['remote-services']['abiquo.rabbitmq.password'].nil?,
|
72
|
+
"abiquo.rabbitmq.password property is missing in abiquo.properties"
|
73
|
+
|
74
|
+
assert !config['remote-services']['abiquo.rabbitmq.host'].nil?,
|
75
|
+
"abiquo.rabbitmq.host property is missing in abiquo.properties"
|
76
|
+
|
77
|
+
assert !config['remote-services']['abiquo.rabbitmq.port'].nil?,
|
78
|
+
"abiquo.rabbitmq.port property is missing in abiquo.properties"
|
79
|
+
|
80
|
+
assert !config['remote-services']['abiquo.appliancemanager.localRepositoryPath'].nil?,
|
81
|
+
"abiquo.appliancemanager.localRepositoryPath property is missing in abiquo.properties"
|
82
|
+
|
83
|
+
assert !config['remote-services']['abiquo.appliancemanager.repositoryLocation'].nil?,
|
84
|
+
"abiquo.appliancemanager.repositoryLocation property is missing in abiquo.properties"
|
85
|
+
|
86
|
+
assert !config['remote-services']['abiquo.redis.port'].nil?,
|
87
|
+
"abiquo.redis.port is missing in abiquo.properties"
|
88
|
+
|
89
|
+
assert !config['remote-services']['abiquo.redis.host'].nil?,
|
90
|
+
"abiquo.redis.host is missing in abiquo.properties"
|
91
|
+
|
92
|
+
assert !config['remote-services']['abiquo.datacenter.id'].nil?,
|
93
|
+
"abiquo.datacenter.id property is missing in abiquo.properties"
|
94
|
+
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'abiquo_platform'
|
2
|
+
|
3
|
+
class AbiquoServerTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_required_packages
|
6
|
+
%w{abiquo-server abiquo-api abiquo-client-premium abiquo-core ntp nfs-utils jdk redis}.each do |p|
|
7
|
+
assert !`rpm -q #{p}`.strip.chomp.empty?, "#{p} package not installed."
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_abiquo_properties_present
|
12
|
+
assert File.exist? '/opt/abiquo/config/abiquo.properties',"abiquo.properties does not exist."
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_mysql_schema_present
|
16
|
+
assert(`mysql -e 'show databases' 2>&1` =~ /kinton/m),"kinton schema does not exist."
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_mysql_running
|
20
|
+
assert !`service mysqld status|grep running`.strip.chomp.empty?,"mysql service not running."
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_redis_running
|
24
|
+
assert !`ps aux|grep redis-server`.strip.chomp.empty?,"redis not running."
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_rabbit_running
|
28
|
+
assert !`ps aux|grep java|grep rabbitmq`.strip.chomp.empty?,"rabbitmq not running."
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_motd_service
|
32
|
+
assert ::TestUtils.service_on?('motd'), "MOTD service not enabled"
|
33
|
+
assert File.exist?('/etc/init.d/motd'), "MOTD service (/etc/init.d/motd) not installed"
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_api_ws
|
37
|
+
assert TestUtils.web_service_auth_required?('/api/console'), "API webapp status is not OK. Check for tomcat errors."
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_webapps_deployed?
|
41
|
+
%w{api ROOT client-premium}.each do |w|
|
42
|
+
assert TestUtils.webapp_deployed?(w), "#{w} Tomcat webapp not found in #{TestUtils.abiquo_base_dir}/tomcat/webapps"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_properties
|
47
|
+
require 'iniparse'
|
48
|
+
config = IniParse.parse(File.read('/opt/abiquo/config/abiquo.properties'))
|
49
|
+
assert !config['server'].nil?,
|
50
|
+
"[server] section is missing in missing in abiquo.properties"
|
51
|
+
|
52
|
+
assert !config['server']['abiquo.server.sessionTimeout'].nil?,
|
53
|
+
"abiquo.server.sessionTimeout is missing in abiquo.properties"
|
54
|
+
|
55
|
+
assert !config['server']['abiquo.server.mail.server'].nil?,
|
56
|
+
"abiquo.server.mail.server is missing in abiquo.properties"
|
57
|
+
|
58
|
+
assert !config['server']['abiquo.server.mail.user'].nil?,
|
59
|
+
"abiquo.server.mail.user is missing in abiquo.properties"
|
60
|
+
|
61
|
+
assert !config['server']['abiquo.server.mail.password'].nil?,
|
62
|
+
"abiquo.server.mail.password is missing in abiquo.properties"
|
63
|
+
|
64
|
+
assert !config['server']['abiquo.rabbitmq.username'].nil?,
|
65
|
+
"abiquo.rabbitmq.username is missing in abiquo.properties"
|
66
|
+
|
67
|
+
assert !config['server']['abiquo.rabbitmq.password'].nil?,
|
68
|
+
"abiquo.rabbitmq.host is missing in abiquo.properties"
|
69
|
+
|
70
|
+
assert !config['server']['abiquo.rabbitmq.host'].nil?,
|
71
|
+
"abiquo.rabbitmq.host is missing in abiquo.properties"
|
72
|
+
|
73
|
+
assert !config['server']['abiquo.rabbitmq.port'].nil?,
|
74
|
+
"abiquo.rabbitmq.port is missing in abiquo.properties"
|
75
|
+
|
76
|
+
assert !config['server']['abiquo.database.user'].nil?,
|
77
|
+
"abiquo.database.user is missing in abiquo.properties"
|
78
|
+
|
79
|
+
assert !config['server']['abiquo.auth.module'].nil?,
|
80
|
+
"abiquo.auth.module is missing in abiquo.properties"
|
81
|
+
|
82
|
+
assert !config['server']['abiquo.server.api.location'].nil?,
|
83
|
+
"abiquo.server.api.location is missing in abiquo.properties"
|
84
|
+
|
85
|
+
if not TestUtils.webapp_deployed?('virtualfactory')
|
86
|
+
assert !config['server']['abiquo.redis.host'].nil?,
|
87
|
+
"abiquo.redis.host is missing in abiquo.properties"
|
88
|
+
assert !config['server']['abiquo.redis.port'].nil?,
|
89
|
+
"abiquo.redis.port is missing in abiquo.properties"
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
require 'abiquo_platform'
|
2
|
+
|
3
|
+
class AbiquoV2VTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_required_packages
|
6
|
+
%w{abiquo-v2v abiquo-core ntp nfs-utils jdk}.each do |p|
|
7
|
+
assert !`rpm -q #{p}`.strip.chomp.empty?, "#{p} package not installed."
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_mechadora_available
|
12
|
+
assert File.exist?('/usr/bin/mechadora'), "mechadora script not found in /usr/bin/mechadora."
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_v2v_diskmanager_available
|
16
|
+
assert File.exist?('/usr/bin/v2v-diskmanager'), "V2V Disk Manager script not found in /usr/bin/v2v-diskmanager."
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_tomcat_running
|
20
|
+
assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?, "tomcat not running."
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_nfs_mounted
|
24
|
+
if (not ::TestUtils.installer_profiles.include?('abiquo-nfs-repository')) and \
|
25
|
+
(! ::TestUtils.installer_profiles.include?('cloud-in-a-box'))
|
26
|
+
assert !`mount|grep vm_repository`.strip.chomp.empty?, "vm_repository not mounted."
|
27
|
+
end
|
28
|
+
end
|
29
|
+
def test_webapps_deployed?
|
30
|
+
%w{bpm-async}.each do |w|
|
31
|
+
assert TestUtils.webapp_deployed?(w), "#{w} tomcat webapp not found in #{TestUtils.abiquo_base_dir}/tomcat/webapps"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_abiquo_repository_file
|
36
|
+
assert File.exist? '/opt/vm_repository/.abiquo_repository', ".abiquo_repository does not exist."
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_tomcat_enabled
|
40
|
+
assert ::TestUtils.service_on?('abiquo-tomcat'),"abiquo-tomcat service is not enabled."
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_v2v_context_present
|
44
|
+
assert File.directory? '/opt/abiquo/tomcat/webapps/bpm-async',"V2V context is not present."
|
45
|
+
end
|
46
|
+
|
47
|
+
def test_abiquo_dir
|
48
|
+
assert File.directory? '/opt/abiquo',"abiquo directory does not exist."
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_abiquo_properties_present
|
52
|
+
assert File.exist?('/opt/abiquo/config/abiquo.properties'),
|
53
|
+
'abiquo.properties file not found'
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_properties
|
57
|
+
require 'iniparse'
|
58
|
+
config = IniParse.parse(File.read('/opt/abiquo/config/abiquo.properties'))
|
59
|
+
assert !config['remote-services'].nil?,
|
60
|
+
"[remote-services] section in /opt/abiquo/config/abiquo.properties is missing"
|
61
|
+
|
62
|
+
assert !config['remote-services']['abiquo.rabbitmq.username'].nil?,
|
63
|
+
"abiquo.rabbitmq.username property is missing in abiquo.properties"
|
64
|
+
|
65
|
+
assert !config['remote-services']['abiquo.rabbitmq.password'].nil?,
|
66
|
+
"abiquo.rabbitmq.password property is missing in abiquo.properties"
|
67
|
+
|
68
|
+
assert !config['remote-services']['abiquo.rabbitmq.host'].nil?,
|
69
|
+
"abiquo.rabbitmq.host property is missing in abiquo.properties"
|
70
|
+
|
71
|
+
assert !config['remote-services']['abiquo.rabbitmq.port'].nil?,
|
72
|
+
"abiquo.rabbitmq.port property is missing in abiquo.properties"
|
73
|
+
|
74
|
+
assert !config['remote-services']['abiquo.datacenter.id'].nil?,
|
75
|
+
"abiquo.datacenter.id property is missing in abiquo.properties"
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|