Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/api/tests_ui/multiconfig_config/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ def create_multiconfig_project_with_env_options_use_secrets_api(jenkins_steps):
@pytest.fixture
def create_multiconfig_project_with_env_options_add_timestamps_api(jenkins_steps):
jenkins_steps.post_create_item(project_name, Config.config_add_timestamps_xml)


@allure.title("API: Create project with Environment options enabled")
@pytest.fixture
def create_multiconfig_project_with_env_options_build_lod_api(jenkins_steps):
jenkins_steps.post_create_item(project_name, Config.config_Inspect_build_log_xml)
27 changes: 26 additions & 1 deletion tests/api/tests_ui/multiconfig_config/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,29 @@ def get_multiconfig_github_link_xml(cls, github_link: str, branch_name: str = "*
<runSequentially>false</runSequentially>
</executionStrategy>
</matrix-project>
"""
"""

config_Inspect_build_log_xml = """
<matrix-project plugin="matrix-project@845.vffd7fa_f27555">
<actions/>
<description/>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<axes/>
<builders/>
<publishers/>
<buildWrappers>
<hudson.plugins.gradle.BuildScanBuildWrapper plugin="gradle@2.14.1"/>
</buildWrappers>
<executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
<runSequentially>false</runSequentially>
</executionStrategy>
</matrix-project>
"""
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,11 @@ def test_add_timestamps_checkbox_selected(create_multiconfig_project_with_env_op
page = main_page.go_to_multiconfig_project_page(project_name).go_to_configure_page()
with allure.step("Assert 'Add timestamps to the Console Output' checkbox is selected"):
assert page.is_elements_selected(page.Locators.ADD_TIMESTAMP_CHECKBOX)


@allure.testcase("https://github.com/RedRoverSchool/JenkinsQA_Python_2025_spring/issues/891", name="TC_04.007.04")
@allure.link("https://github.com/RedRoverSchool/JenkinsQA_Python_2025_spring/issues/891", name="Github issue")
def test_Inspect_build_log_published_build_checkbox_selected(create_multiconfig_project_with_env_options_build_lod_api, main_page):
page = main_page.go_to_multiconfig_project_page(project_name).go_to_configure_page()
with allure.step("Assert 'Inspect build log for published build' checkbox is selected"):
assert page.is_elements_selected(page.Locators.BUILD_SCANS_CHECKBOX)
Loading