Skip to content

Commit 5892bb0

Browse files
committed
skip fips test
1 parent 5996e39 commit 5892bb0

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

tests/integ/test_packaging.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ def test_patch_on_get_available_versions_for_packages(session):
185185
(not is_pandas_and_numpy_available) or IS_IN_STORED_PROC,
186186
reason="numpy and pandas are required",
187187
)
188+
@pytest.mark.skipif(
189+
"FIPS_TEST" in os.environ,
190+
reason="SNOW-3425553: need FIPS mode investigation",
191+
)
188192
def test_add_packages(session, local_testing_mode):
189193
# Use numpy 2.3.1 for Python 3.13+, numpy 1.26.3 doesn't support Python 3.13
190194
numpy_version = "numpy==2.3.1" if sys.version_info >= (3, 13) else "numpy==1.26.3"
@@ -341,6 +345,10 @@ def test_add_packages_with_underscore_and_versions(session):
341345
@pytest.mark.skipif(
342346
IS_IN_STORED_PROC, reason="Need certain version of datautil/pandas/numpy"
343347
)
348+
@pytest.mark.skipif(
349+
"FIPS_TEST" in os.environ,
350+
reason="SNOW-3425553: need FIPS mode investigation",
351+
)
344352
def test_add_packages_negative(session, caplog):
345353
with pytest.raises(ValueError) as ex_info:
346354
session.add_packages("python-dateutil****")
@@ -470,6 +478,10 @@ def test_add_requirements_twice_should_fail_if_packages_are_different(
470478
IS_PY314,
471479
reason="Python 3.14 uses pypi repository",
472480
)
481+
@pytest.mark.skipif(
482+
"FIPS_TEST" in os.environ,
483+
reason="SNOW-3425553: need FIPS mode investigation",
484+
)
473485
def test_add_unsupported_requirements_should_fail_if_custom_packages_upload_enabled_not_switched_on(
474486
session, resources_path
475487
):
@@ -529,6 +541,10 @@ def test_urllib() -> str:
529541
IS_PY314,
530542
reason="Python 3.14 uses pypi repository",
531543
)
544+
@pytest.mark.skipif(
545+
"FIPS_TEST" in os.environ,
546+
reason="SNOW-3425553: need FIPS mode investigation",
547+
)
532548
def test_add_unsupported_packages_should_fail_if_custom_packages_upload_enabled_not_switched_on(
533549
session,
534550
):
@@ -702,6 +718,10 @@ def check_if_package_works() -> str:
702718
IS_IN_STORED_PROC,
703719
reason="Subprocess calls are not allowed within stored procedures.",
704720
)
721+
@pytest.mark.skipif(
722+
"FIPS_TEST" in os.environ,
723+
reason="SNOW-3425553: need FIPS mode investigation",
724+
)
705725
def test_add_packages_with_native_dependency_without_force_push(session):
706726
session.custom_package_usage_config = {"enabled": True}
707727
with patch.object(session, "_is_anaconda_terms_acknowledged", lambda: True):
@@ -1005,6 +1025,10 @@ def get_skfuzzy_version() -> str:
10051025
IS_PY314,
10061026
reason="Python 3.14 uses pypi repository",
10071027
)
1028+
@pytest.mark.skipif(
1029+
"FIPS_TEST" in os.environ,
1030+
reason="SNOW-3425553: need FIPS mode investigation",
1031+
)
10081032
def test_add_requirements_unsupported_with_cache_path_negative(
10091033
session, resources_path, temporary_stage
10101034
):

tests/integ/test_stored_procedure.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def setup(session, resources_path, local_testing_mode):
9595
IS_IN_STORED_PROC,
9696
reason="Cannot create session in SP",
9797
)
98+
@pytest.mark.skipif(
99+
"FIPS_TEST" in os.environ,
100+
reason="SNOW-3425553: need FIPS mode investigation",
101+
)
98102
@patch("snowflake.snowpark._internal.udf_utils.VERSION", (999, 9, 9))
99103
@pytest.mark.parametrize(
100104
"packages,should_fail",
@@ -157,6 +161,10 @@ def return1(session_):
157161
],
158162
)
159163
@patch("snowflake.snowpark._internal.udf_utils.VERSION", (999, 9, 9))
164+
@pytest.mark.skipif(
165+
"FIPS_TEST" in os.environ,
166+
reason="SNOW-3425553: need FIPS mode investigation",
167+
)
160168
def test__do_register_sp_submits_correct_packages(
161169
patched_resolve, session_packages, local_packages, db_parameters
162170
):
@@ -2424,6 +2432,10 @@ def artifact_repo_test(session: snowflake.snowpark.Session) -> str:
24242432
("999.999.999", True), # Major version change - expect warning
24252433
],
24262434
)
2435+
@pytest.mark.skipif(
2436+
"FIPS_TEST" in os.environ,
2437+
reason="SNOW-3425553: need FIPS mode investigation",
2438+
)
24272439
def test_snowpark_python_bugfix_version_warning(
24282440
session, caplog, version_override, expect_warning
24292441
):

0 commit comments

Comments
 (0)