Skip to content

Commit eaf955b

Browse files
committed
update kms helper name
1 parent 24bc6d5 commit eaf955b

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

sagemaker-core/tests/integ/kms_utils.py renamed to sagemaker-core/tests/integ/integ_test_kms_helpers.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13+
"""KMS test helpers for integration tests.
14+
15+
Ported from SageMakerHulkPythonSDK/tests/integ/kms_utils.py.
16+
17+
NOTE: KMS keys created by these helpers use a fixed alias and are intentionally
18+
reused across test runs rather than deleted after each run. This is because KMS
19+
keys have a mandatory 7-day minimum deletion window (schedule_key_deletion), so
20+
per-run create/delete is not practical. The persistent shared key approach avoids
21+
accumulating orphaned keys and unnecessary costs.
22+
"""
1323
from __future__ import absolute_import
1424

1525
import json

‎sagemaker-core/tests/integ/remote_function/test_decorator.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from sagemaker.core.common_utils import unique_name_from_base
4242
from tests.integ.s3_utils import assert_s3_files_exist
4343

44-
from tests.integ.kms_utils import get_or_create_kms_key
44+
from tests.integ.integ_test_kms_helpers import get_or_create_kms_key
4545
import os
4646

4747
DATA_DIR = os.path.join(os.path.dirname(__file__), "..", "..", "data")

0 commit comments

Comments
 (0)