Skip to content

Commit

Permalink
chore: remove deprecated container delegates
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Sep 24, 2024
1 parent cce8b4f commit 6531d18
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 99 deletions.
20 changes: 0 additions & 20 deletions lib/container/ceph_container.ex
Original file line number Diff line number Diff line change
Expand Up @@ -259,23 +259,3 @@ defmodule Testcontainers.CephContainer do
def after_start(_config, _container, _conn), do: :ok
end
end

defmodule Testcontainers.Container.CephContainer do
@moduledoc """
Deprecated. Use `Testcontainers.CephContainer` instead.
This module is kept for backward compatibility and will be removed in future releases.
"""

@deprecated "Use Testcontainers.CephContainer instead"

defdelegate new, to: Testcontainers.CephContainer
defdelegate with_image(self, image), to: Testcontainers.CephContainer
defdelegate with_access_key(self, user), to: Testcontainers.CephContainer
defdelegate with_secret_key(self, password), to: Testcontainers.CephContainer
defdelegate with_bucket(self, database), to: Testcontainers.CephContainer
defdelegate with_port(self, port), to: Testcontainers.CephContainer
defdelegate with_wait_timeout(self, wait_timeout), to: Testcontainers.CephContainer
defdelegate port(self), to: Testcontainers.CephContainer
defdelegate connection_url(self), to: Testcontainers.CephContainer
end
22 changes: 0 additions & 22 deletions lib/container/mysql_container.ex
Original file line number Diff line number Diff line change
Expand Up @@ -252,25 +252,3 @@ defmodule Testcontainers.MySqlContainer do
fn container -> Container.with_bind_volume(container, volume, "/var/lib/mysql") end
end
end

defmodule Testcontainers.Container.MySqlContainer do
@moduledoc """
Deprecated. Use `Testcontainers.MySqlContainer` instead.
This module is kept for backward compatibility and will be removed in future releases.
"""

@deprecated "Use Testcontainers.MySqlContainer instead"

defdelegate new, to: Testcontainers.MySqlContainer
defdelegate with_image(self, image), to: Testcontainers.MySqlContainer
defdelegate with_user(self, user), to: Testcontainers.MySqlContainer
defdelegate with_password(self, password), to: Testcontainers.MySqlContainer
defdelegate with_database(self, database), to: Testcontainers.MySqlContainer
defdelegate with_port(self, port), to: Testcontainers.MySqlContainer
defdelegate with_wait_timeout(self, wait_timeout), to: Testcontainers.MySqlContainer
defdelegate port(self), to: Testcontainers.MySqlContainer
defdelegate connection_parameters(self), to: Testcontainers.MySqlContainer
defdelegate default_image_with_tag, to: Testcontainers.MySqlContainer
defdelegate default_port, to: Testcontainers.PostgresContainer
end
22 changes: 0 additions & 22 deletions lib/container/postgres_container.ex
Original file line number Diff line number Diff line change
Expand Up @@ -258,25 +258,3 @@ defmodule Testcontainers.PostgresContainer do
fn container -> Container.with_bind_volume(container, volume, "/var/lib/postgresql/data") end
end
end

defmodule Testcontainers.Container.PostgresContainer do
@moduledoc """
Deprecated. Use `Testcontainers.PostgresContainer` instead.
This module is kept for backward compatibility and will be removed in future releases.
"""

@deprecated "Use Testcontainers.PostgresContainer instead"

defdelegate new, to: Testcontainers.PostgresContainer
defdelegate with_image(self, image), to: Testcontainers.PostgresContainer
defdelegate with_user(self, user), to: Testcontainers.PostgresContainer
defdelegate with_password(self, password), to: Testcontainers.PostgresContainer
defdelegate with_database(self, database), to: Testcontainers.PostgresContainer
defdelegate with_port(self, port), to: Testcontainers.PostgresContainer
defdelegate with_wait_timeout(self, wait_timeout), to: Testcontainers.PostgresContainer
defdelegate port(self), to: Testcontainers.PostgresContainer
defdelegate connection_parameters(self), to: Testcontainers.PostgresContainer
defdelegate default_image_with_tag, to: Testcontainers.PostgresContainer
defdelegate default_port, to: Testcontainers.PostgresContainer
end
17 changes: 0 additions & 17 deletions lib/container/redis_container.ex
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,3 @@ defmodule Testcontainers.RedisContainer do
def after_start(_config, _container, _conn), do: :ok
end
end

defmodule Testcontainers.Container.RedisContainer do
@moduledoc """
Deprecated. Use `Testcontainers.RedisContainer` instead.
This module is kept for backward compatibility and will be removed in future releases.
"""

@deprecated "Use Testcontainers.RedisContainer instead"

defdelegate new, to: Testcontainers.RedisContainer
defdelegate with_image(self, image), to: Testcontainers.RedisContainer
defdelegate with_port(self, port), to: Testcontainers.RedisContainer
defdelegate with_wait_timeout(self, wait_timeout), to: Testcontainers.RedisContainer
defdelegate port(self), to: Testcontainers.RedisContainer
defdelegate connection_url(self), to: Testcontainers.RedisContainer
end
16 changes: 0 additions & 16 deletions lib/container/selenium_container.ex
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,3 @@ defmodule Testcontainers.SeleniumContainer do
def after_start(_config, _container, _conn), do: :ok
end
end

defmodule Testcontainers.Container.SeleniumContainer do
@moduledoc """
Deprecated. Use `Testcontainers.SeleniumContainer` instead.
This module is kept for backward compatibility and will be removed in future releases.
"""

@deprecated "Use Testcontainers.SeleniumContainer instead"

defdelegate new, to: Testcontainers.SeleniumContainer
defdelegate with_image(self, image), to: Testcontainers.SeleniumContainer
defdelegate with_port1(self, port), to: Testcontainers.SeleniumContainer
defdelegate with_port2(self, port), to: Testcontainers.SeleniumContainer
defdelegate with_wait_timeout(self, wait_timeout), to: Testcontainers.SeleniumContainer
end
2 changes: 1 addition & 1 deletion lib/util/constants.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Testcontainers.Constants do
@moduledoc false

def library_name, do: :testcontainers
def library_version, do: "1.10.1"
def library_version, do: "1.10.2"
def container_label, do: "org.testcontainers"
def container_lang_label, do: "org.testcontainers.lang"
def container_reuse_hash_label, do: "org.testcontainers.reuse-hash"
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule TestcontainersElixir.MixProject do
use Mix.Project

@app :testcontainers
@version "1.10.1"
@version "1.10.2"
@source_url "https://github.com/testcontainers/testcontainers-elixir"

def project do
Expand Down

0 comments on commit 6531d18

Please sign in to comment.