Remove leftover of MongoDB support

We already removed support for MongoDB a while ago[1]. This removes
the leftover in Oslo::DBConn type so that we use the single consistent
pattern.

[1] 2ad73a71c0

Change-Id: I341286bbf834e9ec90de3d79b95cb64c1ca8b847
This commit is contained in:
Takashi Kajinami 2023-06-19 16:45:25 +09:00
parent 471514fa53
commit 8e04fa6153
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ describe 'Oslo::Dbconn' do
'postgresql://db:db@localhost/db',
'postgresql+psycopg2://db:db@localhost/db',
'sqlite:///var/lib/db.db',
'mongodb://db:db@localhost/db',
].each do |value|
describe value.inspect do
it { is_expected.to allow_value(value) }

View File

@ -1 +1 @@
type Oslo::Dbconn = Pattern[/^(sqlite|mysql(\+pymysql)?|postgresql(\+psycopg2)?|mongodb):\/\/(\S+:\S+@\S+\/\S+)?/]
type Oslo::Dbconn = Pattern[/^(sqlite|mysql(\+pymysql)?|postgresql(\+psycopg2)?):\/\/(\S+:\S+@\S+\/\S+)?/]