diff --git a/src/sign_workflow/signer.py b/src/sign_workflow/signer.py index d2e51ff750..eb061ed1f3 100644 --- a/src/sign_workflow/signer.py +++ b/src/sign_workflow/signer.py @@ -18,7 +18,7 @@ class Signer: - ACCEPTED_FILE_TYPES = [".zip", ".jar", ".war", ".pom", ".module", ".tar.gz", ".whl"] + ACCEPTED_FILE_TYPES = [".zip", ".jar", ".war", ".pom", ".module", ".tar.gz", ".whl", ".crate"] def __init__(self): self.git_repo = GitRepository(self.get_repo_url(), "HEAD", working_subdirectory="src") diff --git a/tests/tests_sign_workflow/test_signer.py b/tests/tests_sign_workflow/test_signer.py index bba2086e59..c22427700d 100644 --- a/tests/tests_sign_workflow/test_signer.py +++ b/tests/tests_sign_workflow/test_signer.py @@ -45,7 +45,8 @@ def test_accepted_file_types_sig(self, git_repo): "the-tar.tar.gz", "random-file.txt", "something-1.0.0.0.jar", - "opensearch_sql_cli-1.0.0-py3-none-any.whl" + "opensearch_sql_cli-1.0.0-py3-none-any.whl", + "cratefile.crate" ] expected = [ call(os.path.join("path", "the-jar.jar"), ".sig"), @@ -56,6 +57,7 @@ def test_accepted_file_types_sig(self, git_repo): call(os.path.join("path", "the-tar.tar.gz"), ".sig"), call(os.path.join("path", "something-1.0.0.0.jar"), ".sig"), call(os.path.join("path", "opensearch_sql_cli-1.0.0-py3-none-any.whl"), ".sig"), + call(os.path.join("path", "cratefile.crate"), ".sig") ] signer = Signer() signer.sign = MagicMock()