Revert "fix: explicitly specify admin credentials in acceptance tests"

This reverts commit 9c6e76f869f65d02ccb32fe025cc5c4c3715d77a.

Commit 860e16c87e6f58f2507ca8be762f70a360e16f97 effectively fixes the
issue with the integration tests.
This commit is contained in:
Gabriel Roldan 2025-04-08 12:43:34 -03:00
parent 7a85df4fba
commit 5e03026cf2
No known key found for this signature in database
GPG Key ID: 697E8F9DF72128E1

View File

@ -6,8 +6,6 @@ import sqlalchemy
from geoservercloud import GeoServerCloud
GEOSERVER_URL = os.getenv("GEOSERVER_URL", "http://gateway:8080/geoserver/cloud")
GEOSERVER_USERNAME = os.getenv("GEOSERVER_USERNAME", "admin")
GEOSERVER_PASSWORD = os.getenv("GEOSERVER_PASSWORD", "geoserver")
RESOURCE_DIR = Path(__file__).parent / "resources"
# Database connection
PGHOST = "geodatabase"
@ -44,11 +42,7 @@ def db_session(engine):
@pytest.fixture(scope="module")
def geoserver():
geoserver = GeoServerCloud(
url=GEOSERVER_URL,
user=GEOSERVER_USERNAME,
password=GEOSERVER_PASSWORD
)
geoserver = GeoServerCloud(GEOSERVER_URL)
geoserver.recreate_workspace(WORKSPACE, set_default_workspace=True)
geoserver.create_pg_datastore(
workspace=WORKSPACE,