Resync spec fixtures with the environment skeleton (clamav, use_firewalld)

未关闭 适合新手
#236 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
ruby, yaml
领域
testing

调研方向

从 spec/lib/simp/cli/commands/files/environments/simp/data/ 下的 Hiera 5 fixtures 开始,并将它们与 simp/simp-environment-skeleton 中对应的文件进行比较。从指定的三个 YAML 文件中删除过时的 simp_options::clamav 条目,并将 iptables::use_firewalld: true 添加到 scenarios/simp.yaml;保持旧版快照 simp_hiera3/ 不变。这些 fixtures 与所述 skeleton 修改一致时即告完成。

由索引模型根据 Issue 内容生成。

描述

The environment skeleton fixtures under spec/lib/simp/cli/commands/files/environments/ have drifted from simp/simp-environment-skeleton. No spec reads these values, so nothing fails today, but the fixtures no longer show what simp environment new actually copies.

Drift in the Hiera 5 copy (simp/data/):

  • simp_options::clamav is still set in scenarios/simp.yaml, simp_lite.yaml and remote_access.yaml. The skeleton removed it as obsolete in simp/simp-environment-skeleton#39 (2021).
  • scenarios/simp.yaml is missing iptables::use_firewalld: true, which the skeleton added in simp/simp-environment-skeleton#35 (2020).

The legacy simp_hiera3/ copy also sets simp_options::clamav and lists clamav in its simp::classes. Since there is no Hiera 3 skeleton to compare against anymore, it may be better to leave that copy as a frozen snapshot.

Found while working on #228, which handled only the haveged lines.

主要语言
Ruby
星标
2
派生
12
平均合并
1 天 13 小时
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

simp/rubygem-simp-cli 的其他 Issue

查看 simp/rubygem-simp-cli 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。