diff --git a/sekoia_automation/scripts/new_module/template/hooks/post_gen_project.sh b/sekoia_automation/scripts/new_module/template/hooks/post_gen_project.sh index 0972045..f487834 100644 --- a/sekoia_automation/scripts/new_module/template/hooks/post_gen_project.sh +++ b/sekoia_automation/scripts/new_module/template/hooks/post_gen_project.sh @@ -1,2 +1,3 @@ #!/bin/bash +poetry add sekoia-automation-sdk@latest poetry lock \ No newline at end of file diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/CHANGELOG.md b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/CHANGELOG.md new file mode 100644 index 0000000..11bddf3 --- /dev/null +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/CHANGELOG.md @@ -0,0 +1,8 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/Dockerfile b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/Dockerfile index a326133..411dd17 100644 --- a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/Dockerfile +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 +FROM python:3.11 WORKDIR /app diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/manifest.json b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/manifest.json index 3b96f0b..c501297 100644 --- a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/manifest.json +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/manifest.json @@ -9,6 +9,5 @@ "description": "{{cookiecutter.module_description}}", "name": "{{cookiecutter.module_name}}", "uuid": "{{ uuid4() }}", - "docker": "sekoia-automation-module-{{cookiecutter.module_name.lower()}}", - "version": "1.0" + "version": "0.1.0" } diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py index b4612d9..e236460 100644 --- a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/tests/conftest.py @@ -2,16 +2,15 @@ from tempfile import mkdtemp import pytest - from sekoia_automation import constants @pytest.fixture -def symphony_storage(): +def data_storage(): original_storage = constants.DATA_STORAGE constants.DATA_STORAGE = mkdtemp() yield constants.DATA_STORAGE rmtree(constants.DATA_STORAGE) - constants.SYMPHONY_STORAGE = original_storage + constants.DATA_STORAGE = original_storage