Skip to content

Commit

Permalink
tests: use stable release
Browse files Browse the repository at this point in the history
This shouldn't test (unstable) snapshots
  • Loading branch information
Paul Spooren committed Jun 1, 2023
1 parent 29cf9de commit bb23023
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ def redis_load_mock_data(redis):
redis.sadd("packages:SNAPSHOT:SNAPSHOT:ath79/generic", "vim", "tmux")
redis.sadd("packages:SNAPSHOT:SNAPSHOT:x86/64", "vim", "tmux")

redis.sadd("profiles:21.02:21.02.7:ath79/generic", "tplink_tl-wdr4300-v1")
redis.sadd("packages:21.02:21.02.7:ath79/generic", "vim", "tmux")
redis.sadd("packages:21.02:21.02.7:x86/64", "vim", "tmux")

redis.hset(
"mapping:1.2:1.2.3:testtarget/testsubtarget",
mapping={"testvendor,testprofile": "testprofile"},
)
redis.sadd("targets:1.2", "testtarget/testsubtarget")
redis.sadd("targets:SNAPSHOT", "ath79/generic", "x86/64")
redis.sadd("targets:21.02", "testtarget/testsubtarget")
redis.sadd("targets:21.02", "testtarget/testsubtarget", "ath79/generic", "x86/64")
redis.hset("mapping-abi", mapping={"test1-1": "test1"})


Expand Down Expand Up @@ -133,7 +137,7 @@ def app(mocked_redis, test_path):
"name": "21.02",
"enabled": True,
"snapshot": True,
"versions": ["21.02.0", "21.02.0-rc4", "21.02-SNAPSHOT"],
"versions": ["21.02.7", "21.02.0", "21.02.0-rc4", "21.02-SNAPSHOT"],
"git_branch": "openwrt-21.02",
"path": "releases/{version}",
"path_packages": "releases/packages-{branch}",
Expand Down
8 changes: 4 additions & 4 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def test_api_build_real_x86(app):
"/api/v1/build",
json=dict(
target="x86/64",
version="SNAPSHOT",
version="21.02.7",
packages=["tmux", "vim"],
profile="some_random_cpu_which_doesnt_exists_as_profile",
),
Expand All @@ -297,7 +297,7 @@ def test_api_build_real_x86(app):
"/api/v1/build",
json=dict(
target="x86/64",
version="SNAPSHOT",
version="21.02.7",
packages=["tmux", "vim"],
profile="some_random_cpu_which_doesnt_exists_as_profile",
filesystem="ext4",
Expand All @@ -316,7 +316,7 @@ def test_api_build_real_ath79(app):
"/api/v1/build",
json=dict(
target="ath79/generic",
version="SNAPSHOT",
version="21.02.7",
packages=["tmux", "vim"],
profile="tplink_tl-wdr4300-v1",
),
Expand All @@ -329,7 +329,7 @@ def test_api_build_real_ath79(app):
"/api/v1/build",
json=dict(
target="ath79/generic",
version="SNAPSHOT",
version="21.02.7",
packages=["tmux", "vim"],
profile="tplink_tl-wdr4300-v1",
filesystem="squashfs",
Expand Down

0 comments on commit bb23023

Please sign in to comment.