Skip to content

Commit bc7b1b0

Browse files
pcrespovodeimaiz
andauthored
Is1838/fogbugz areas per product (#1850)
Resolves #1838: Adds different links to fogbugz depending on product * Adds settings for front-end apps * Simplified fogbugz url * Adapts new name of pytest_simcore. plugin * Simplified makefile in tests/environment-setup * add extra product fg cfg links * Upgrades all aio-pika to 6.7.1. Co-authored-by: Odei Maiz <[email protected]>
1 parent 6602888 commit bc7b1b0

File tree

33 files changed

+340
-180
lines changed

33 files changed

+340
-180
lines changed

.env-devel

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ WEBSERVER_RESOURCES_DELETION_TIMEOUT_SECONDS=900
6060
WEBSERVER_GARBAGE_COLLECTION_INTERVAL_SECONDS=30
6161
WEBSERVER_MANUAL_MAIN_URL=http://docs.osparc.io/
6262
WEBSERVER_MANUAL_EXTRA_URL=https://itisfoundation.github.io/osparc-manual-z43/
63-
WEBSERVER_FOGBUGZ_URL=htpps://z43.fogbugz.com
64-
WEBSERVER_FOGBUGZ_PROJECT_ID=45
63+
WEBSERVER_FOGBUGZ_LOGIN_URL=https://z43.fogbugz.com/login
64+
WEBSERVER_FOGBUGZ_NEWCASE_URL=https://z43.fogbugz.com/f/cases/new?command=new&pg=pgEditBug&ixProject=45&ixArea=449
65+
WEBSERVER_S4L_FOGBUGZ_NEWCASE_URL=https://z43.fogbugz.com/f/cases/new?command=new&pg=pgEditBug&ixProject=45&ixArea=458
66+
WEBSERVER_TIS_FOGBUGZ_NEWCASE_URL=https://z43.fogbugz.com/f/cases/new?command=new&pg=pgEditBug&ixProject=45&ixArea=459
6567
WEBSERVER_FEEDBACK_FORM_URL=https://docs.google.com/forms/d/e/1FAIpQLSe232bTigsM2zV97Kjp2OhCenl6o9gNGcDFt2kO_dfkIjtQAQ/viewform?usp=sf_link
6668

6769
# for debugging

packages/postgres-database/tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import yaml
1212
from aiopg.sa.engine import Engine
1313

14+
pytest_plugins = ["pytest_simcore.repository_paths"]
15+
1416

1517
@pytest.fixture(scope="session")
1618
def postgres_service(docker_services, docker_ip, docker_compose_file) -> str:

packages/postgres-database/tests/test_classifiers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from simcore_postgres_database.models.classifiers import group_classifiers
1919
from simcore_postgres_database.models.groups import groups
2020

21-
pytest_plugins = ["pytest_simcore.environs"]
2221

2322

2423
@pytest.fixture

packages/pytest-simcore/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To install in a modules (e.g. web/server):
1414
```python
1515
from pytest_simcore.helpers.utils_assert import foo
1616

17-
pytest_plugins = ["pytest_simcore.environs"]
17+
pytest_plugins = ["pytest_simcore.repository_paths"]
1818

1919

2020
def test_something( some_pytest_simcore_fixture, ... )
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# pylint: disable=redefined-outer-name
2+
3+
from pathlib import Path
4+
from typing import Dict
5+
6+
import pytest
7+
8+
from .helpers.utils_environs import load_env
9+
10+
11+
@pytest.fixture(scope="session")
12+
def env_devel_config(env_devel_file: Path) -> Dict[str,str]:
13+
env_devel = {}
14+
# TODO: use instead from dotenv import dotenv_values
15+
# env_devel = dotenv_values(env_devel_file, verbose=True, interpolate=True)
16+
with env_devel_file.open() as f:
17+
env_devel = load_env(f)
18+
return env_devel

packages/pytest-simcore/src/pytest_simcore/environs.py renamed to packages/pytest-simcore/src/pytest_simcore/repository_paths.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@pytest.fixture(scope="session")
1212
def osparc_simcore_root_dir(request) -> Path:
1313
""" osparc-simcore repo root dir """
14-
WILDCARD = "packages/pytest-simcore/src/pytest_simcore/environs.py"
14+
WILDCARD = "packages/pytest-simcore/src/pytest_simcore/__init__.py"
1515
ROOT = Path("/")
1616

1717
test_dir = Path(request.session.fspath) # expected test dir in simcore
@@ -55,6 +55,13 @@ def services_dir(osparc_simcore_root_dir: Path) -> Path:
5555
return services_folder
5656

5757

58+
@pytest.fixture(scope="session")
59+
def services_docker_compose_file(services_dir):
60+
dcpath = services_dir / "docker-compose.yml"
61+
assert dcpath.exists()
62+
return dcpath
63+
64+
5865
@pytest.fixture(scope="module")
5966
def temp_folder(request, tmpdir_factory) -> Path:
6067
tmp = Path(tmpdir_factory.mktemp(f"tmp_module_{request.module.__name__}"))

packages/pytest-simcore/tests/test_fixture_environs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_root_dir_with_installed_plugin(testdir):
1616
testdir.makepyfile(
1717
f"""
1818
from pathlib import Path
19-
pytest_plugins = ["pytest_simcore.environs"]
19+
pytest_plugins = ["pytest_simcore.repository_paths"]
2020
2121
def test_sth(osparc_simcore_root_dir):
2222
assert osparc_simcore_root_dir == Path('{repo_base_dir}')

packages/pytest-simcore/tests/test_simcore_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def test_using_pytest_simcore_fixture(testdir):
66

77
# create a temporary pytest test module
88
testdir.makepyfile("""
9-
pytest_plugins = ["pytest_simcore.environs"]
9+
pytest_plugins = ["pytest_simcore.repository_paths"]
1010
1111
def test_sth(request):
1212
assert request.config.getoption("--keep-docker-up") == True

packages/simcore-sdk/tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# FIXTURES
2626
pytest_plugins = [
27-
"pytest_simcore.environs",
27+
"pytest_simcore.repository_paths",
2828
"pytest_simcore.docker_compose",
2929
"pytest_simcore.docker_swarm",
3030
"pytest_simcore.postgres_service",

services/catalog/tests/unit/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import simcore_service_catalog
1313

1414
pytest_plugins = [
15-
"pytest_simcore.environs",
15+
"pytest_simcore.repository_paths",
1616
"pytest_simcore.service_environs",
1717
"pytest_simcore.schemas",
1818
"pytest_simcore.docker_registry",

0 commit comments

Comments
 (0)