Skip to content

Commit

Permalink
tests: set only_bump_suffix to true in beta/prod branches
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetrr committed Apr 16, 2024
1 parent bb8a1c1 commit 6d9d54a
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/e2e/test_one_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_initial(self) -> None:
args_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -56,6 +57,7 @@ def test_initial(self) -> None:
args_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -112,6 +114,7 @@ def test_chore(self) -> None:
args_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -127,6 +130,7 @@ def test_chore(self) -> None:
args_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -185,6 +189,7 @@ def test_fix(self) -> None:
args_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -200,6 +205,7 @@ def test_fix(self) -> None:
args_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -258,6 +264,7 @@ def test_feat(self) -> None:
args_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -273,6 +280,7 @@ def test_feat(self) -> None:
args_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -331,6 +339,7 @@ def test_breaking(self) -> None:
args_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -346,6 +355,7 @@ def test_breaking(self) -> None:
args_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down
6 changes: 6 additions & 0 deletions tests/e2e/test_one_hotfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_fix_then_hotfix(self) -> None:
args_fix_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -57,6 +58,7 @@ def test_fix_then_hotfix(self) -> None:
args_fix_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -196,6 +198,7 @@ def test_feature_then_hotfix(self) -> None:
args_feat_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -211,6 +214,7 @@ def test_feature_then_hotfix(self) -> None:
args_feat_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -350,6 +354,7 @@ def test_breaking_then_hotfix(self) -> None:
args_breaking_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -365,6 +370,7 @@ def test_breaking_then_hotfix(self) -> None:
args_breaking_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down
12 changes: 12 additions & 0 deletions tests/e2e/test_one_hotfix_then_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_fix_then_hotfix_then_fix(self) -> None:
args_fix1_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -57,6 +58,7 @@ def test_fix_then_hotfix_then_fix(self) -> None:
args_fix1_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -140,6 +142,7 @@ def test_fix_then_hotfix_then_fix(self) -> None:
args_fix2_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -155,6 +158,7 @@ def test_fix_then_hotfix_then_fix(self) -> None:
args_fix2_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -267,6 +271,7 @@ def test_fix_then_hotfix_then_feature(self) -> None:
args_fix_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -282,6 +287,7 @@ def test_fix_then_hotfix_then_feature(self) -> None:
args_fix_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -365,6 +371,7 @@ def test_fix_then_hotfix_then_feature(self) -> None:
args_feature_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -380,6 +387,7 @@ def test_fix_then_hotfix_then_feature(self) -> None:
args_feature_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -492,6 +500,7 @@ def test_fix_then_hotfix_then_breaking(self) -> None:
args_fix_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -507,6 +516,7 @@ def test_fix_then_hotfix_then_breaking(self) -> None:
args_fix_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down Expand Up @@ -590,6 +600,7 @@ def test_fix_then_hotfix_then_breaking(self) -> None:
args_breaking_beta = ActionInputs(
prefix='v',
suffix='beta',
only_bump_suffix=True,
reference_version_suffix='pre',
create_tag=True
)
Expand All @@ -605,6 +616,7 @@ def test_fix_then_hotfix_then_breaking(self) -> None:
args_breaking_prod = ActionInputs(
prefix='v',
suffix=None,
only_bump_suffix=True,
reference_version_suffix='beta',
create_tag=True
)
Expand Down
Loading

0 comments on commit 6d9d54a

Please sign in to comment.