|
76 | 76 | its(:exit_status) { should eq 1 }
|
77 | 77 | end
|
78 | 78 |
|
79 |
| - %w[dblink hstore pgcrypto uuid-ossp].each do |extension| |
| 79 | + installed_extensions = %w[ |
| 80 | + adminpack autoinc btree_gin btree_gist chkpass citext cube dblink dict_int |
| 81 | + dict_xsyn earthdistance file_fdw fuzzystrmatch hstore insert_username |
| 82 | + intarray isn lo ltree moddatetime pageinspect pg_buffercache pg_freespacemap |
| 83 | + pg_stat_statements pg_trgm pgcrypto pgrowlocks pgstattuple postgres_fdw seg |
| 84 | + sslinfo tablefunc tcn test_parser timetravel tsearch2 unaccent uuid-ossp |
| 85 | + xml2 |
| 86 | + ] |
| 87 | + installed_extensions.each do |extension| |
80 | 88 | describe command(cmd_extension_exists("testdb", extension)) do
|
| 89 | + its(:stdout) { should match(extension) } |
81 | 90 | its(:exit_status) { should eq 0 }
|
82 | 91 | end
|
83 | 92 | end
|
84 | 93 |
|
85 | 94 | describe command(cmd_extension_exists("testdb", "fake_extension")) do
|
| 95 | + its(:stdout) { should_not match("fake_extension") } |
86 | 96 | its(:exit_status) { should eq 1 }
|
87 | 97 | end
|
88 | 98 |
|
89 |
| - %w[plpgsql plperl plpythonu plpython3u pltcl plv8].each do |language| |
| 99 | + installed_languages = %w[ |
| 100 | + plpgsql pllua plperl plproxy plpythonu plpython3u plr plsh pltcl plv8 |
| 101 | + ] |
| 102 | + installed_languages.each do |language| |
90 | 103 | describe command(cmd_language_exists("testdb", language)) do
|
| 104 | + its(:stdout) { should match(language) } |
91 | 105 | its(:exit_status) { should eq 0 }
|
92 | 106 | end
|
93 | 107 | end
|
94 | 108 |
|
95 | 109 | describe command(cmd_language_exists("testdb", "fake_language")) do
|
| 110 | + its(:stdout) { should_not match("fake_language") } |
96 | 111 | its(:exit_status) { should eq 1 }
|
97 | 112 | end
|
98 | 113 | end
|
0 commit comments