3.3. Integration Test Suite の手動設定
discover-tempest-config コマンドは、tempest.conf ファイルを自動的に生成します。ただし、tempest.conf ファイルが環境の設定に対応していることを確認する必要があります。
3.3.1. Integration Test Suite 拡張リストの手動設定 リンクのコピーリンクがクリップボードにコピーされました!
デフォルトの tempest.conf ファイルには、各コンポーネントの拡張リストが含まれます。tempest.conf ファイルの各コンポーネントの api_extensions 属性を検査し、拡張機能のリストがデプロイメントに対応することを確認します。
デプロイメントで利用可能な拡張機能が tempest.conf ファイルの api_extensions 属性の拡張機能のリストと一致しない場合、コンポーネントは tempest テストに失敗します。この失敗を回避するには、デプロイメントで利用可能な拡張機能を特定し、api_extensions パラメーターに含める必要があります。デプロイメント内の Network、Compute、Volume、または Identity 拡張機能のリストを取得するには、以下のコマンドを実行します。
手順
デプロイメント内の Network、Compute、Volume、または Identity 拡張機能のリストを取得するには、以下のコマンドを入力します。
$ openstack extension list [--network] [--compute] [--volume] [--identity]
3.3.2. heat_plugin の手動設定 リンクのコピーリンクがクリップボードにコピーされました!
tempest.conf ファイルで、heat_plugin を手動で設定できます。
手順
以下の例を使用して、デプロイメントに応じて
heat_pluginを設定します。[service_available] heat = True [heat_plugin] username = demo password = *** project_name = demo admin_username = admin admin_password = **** admin_project_name = admin auth_url = http://10.0.0.110:5000//v3 auth_version = 3 user_domain_id = default project_domain_id = default user_domain_name = Default project_domain_name = Default region = regionOne fixed_network_name = demo_project_network network_for_ssh = public floating_network_name = nova instance_type = m1.nano minimal_instance_type = m1.micro image_ref = 7faed41e-a56c-4971-bf48-24e4e23e69a5 minimal_image_ref = 7faed41e-a56c-4971-bf48-24e4e23e69a5
openstack network list コマンドを使用して、fixed_network_name、network_for_ssh、および floating_network_name のネットワークを特定します。
tempest.conf ファイルの [service_available] セクションで heat を True に設定する必要があります。また、[heat_plugin] セクションの username 属性にあるユーザーは、member である必要があります。たとえば、以下のコマンドを入力して member ロールを demo ユーザーに追加します。
$ openstack role add --user demo --project demo member