Browse Source

Merge "Add missing tests for module import in nova"

tags/11.2.0
Zuul 1 week ago
parent
commit
bbef575f01

+ 10
- 5
spec/classes/tripleo_profile_base_nova_api_spec.rb View File

@@ -42,8 +42,9 @@ eos
42 42
         is_expected.to contain_class('tripleo::profile::base::nova')
43 43
         is_expected.to_not contain_class('nova::keystone::authtoken')
44 44
         is_expected.to_not contain_class('nova::api')
45
-        is_expected.to_not contain_class('nova::wsgi::apache_api')
45
+        is_expected.to_not contain_class('nova::cors')
46 46
         is_expected.to_not contain_class('nova::network::neutron')
47
+        is_expected.to_not contain_class('nova::wsgi::apache_api')
47 48
       }
48 49
     end
49 50
 
@@ -59,8 +60,9 @@ eos
59 60
         is_expected.to contain_class('nova::cell_v2::simple_setup')
60 61
         is_expected.to contain_class('nova::keystone::authtoken')
61 62
         is_expected.to contain_class('nova::api')
62
-        is_expected.to_not contain_class('nova::wsgi::apache_api')
63
+        is_expected.to contain_class('nova::cors')
63 64
         is_expected.to contain_class('nova::network::neutron')
65
+        is_expected.to_not contain_class('nova::wsgi::apache_api')
64 66
       }
65 67
     end
66 68
 
@@ -76,8 +78,9 @@ eos
76 78
         is_expected.to contain_class('nova::cell_v2::simple_setup')
77 79
         is_expected.to contain_class('nova::keystone::authtoken')
78 80
         is_expected.to contain_class('nova::api')
79
-        is_expected.to_not contain_class('nova::wsgi::apache_api')
81
+        is_expected.to contain_class('nova::cors')
80 82
         is_expected.to contain_class('nova::network::neutron')
83
+        is_expected.to_not contain_class('nova::wsgi::apache_api')
81 84
       }
82 85
     end
83 86
 
@@ -91,8 +94,9 @@ eos
91 94
         is_expected.to_not contain_class('nova::db::sync_cell_v2')
92 95
         is_expected.to contain_class('nova::keystone::authtoken')
93 96
         is_expected.to contain_class('nova::api')
94
-        is_expected.to_not contain_class('nova::wsgi::apache_api')
97
+        is_expected.to contain_class('nova::cors')
95 98
         is_expected.to contain_class('nova::network::neutron')
99
+        is_expected.to_not contain_class('nova::wsgi::apache_api')
96 100
       }
97 101
     end
98 102
 
@@ -109,8 +113,9 @@ eos
109 113
         is_expected.to_not contain_class('nova::db::sync_cell_v2')
110 114
         is_expected.to contain_class('nova::keystone::authtoken')
111 115
         is_expected.to contain_class('nova::api')
112
-        is_expected.to contain_class('nova::wsgi::apache_api')
116
+        is_expected.to contain_class('nova::cors')
113 117
         is_expected.to contain_class('nova::network::neutron')
118
+        is_expected.to contain_class('nova::wsgi::apache_api')
114 119
       }
115 120
     end
116 121
 

+ 12
- 0
spec/classes/tripleo_profile_base_nova_spec.rb View File

@@ -30,7 +30,10 @@ describe 'tripleo::profile::base::nova' do
30 30
         is_expected.to contain_class('tripleo::profile::base::nova')
31 31
         is_expected.to_not contain_class('nova')
32 32
         is_expected.to_not contain_class('nova::config')
33
+        is_expected.to_not contain_class('nova::logging')
33 34
         is_expected.to_not contain_class('nova::cache')
35
+        is_expected.to_not contain_class('nova::placement')
36
+        is_expected.to_not contain_class('nova::keystone::service_user')
34 37
       }
35 38
     end
36 39
 
@@ -49,11 +52,14 @@ describe 'tripleo::profile::base::nova' do
49 52
           :default_transport_url => 'rabbit://nova:foo@localhost:5672/?ssl=0'
50 53
         )
51 54
         is_expected.to contain_class('nova::config')
55
+        is_expected.to contain_class('nova::logging')
52 56
         is_expected.to contain_class('nova::cache').with(
53 57
           :enabled => true,
54 58
           :backend => 'oslo_cache.memcache_pool',
55 59
           :memcache_servers => ['127.0.0.1:11211']
56 60
         )
61
+        is_expected.to contain_class('nova::placement')
62
+        is_expected.to contain_class('nova::keystone::service_user')
57 63
       }
58 64
     end
59 65
 
@@ -69,7 +75,10 @@ describe 'tripleo::profile::base::nova' do
69 75
         is_expected.to contain_class('tripleo::profile::base::nova')
70 76
         is_expected.to_not contain_class('nova')
71 77
         is_expected.to_not contain_class('nova::config')
78
+        is_expected.to_not contain_class('nova::logging')
72 79
         is_expected.to_not contain_class('nova::cache')
80
+        is_expected.to_not contain_class('nova::placement')
81
+        is_expected.to_not contain_class('nova::keystone::service_user')
73 82
       }
74 83
     end
75 84
 
@@ -90,7 +99,10 @@ describe 'tripleo::profile::base::nova' do
90 99
           :nova_private_key => nil,
91 100
         )
92 101
         is_expected.to contain_class('nova::config')
102
+        is_expected.to contain_class('nova::logging')
93 103
         is_expected.to contain_class('nova::cache')
104
+        is_expected.to contain_class('nova::placement')
105
+        is_expected.to contain_class('nova::keystone::service_user')
94 106
         is_expected.to_not contain_class('nova::migration::libvirt')
95 107
         is_expected.to_not contain_file('/etc/nova/migration/authorized_keys')
96 108
         is_expected.to_not contain_file('/etc/nova/migration/identity')

Loading…
Cancel
Save