Commit Graph

26 Commits

Author SHA1 Message Date
Imran Iqbal
cb2758d86e
test(freebsd): add specific tests for FreeBSD 2021-03-31 09:30:10 +01:00
Imran Iqbal
bf6a7582b7
test: standardise use of share suite & _mapdata state [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/302
2021-03-23 21:31:45 +00:00
Daniel Dehennin
b8e3c2c2fa
chore(rubocop): allow use of YAML.load for _mapdata.rb [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/296
2021-02-23 21:50:22 +00:00
Imran Iqbal
daa4c9ef43
ci(kitchen+gitlab-ci): use latest pre-salted images [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/293
2021-02-14 13:39:42 +00:00
Imran Iqbal
610cfee031
test(_mapdata): add verification files for new platforms
* `fedora-32`
* `fedora-33`
* `opensuse-tumbleweed`
* `oraclelinux-7`
* `oraclelinux-8`
* `ubuntu-20`
2021-02-14 13:06:42 +00:00
Imran Iqbal
2154f60c51
chore: standardise structure (.gitignore & _mapdata.rb) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/292
2021-02-11 11:52:24 +00:00
Imran Iqbal
147c996a69
test(share): standardise with latest changes [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/288
2021-02-01 07:23:36 +00:00
Imran Iqbal
b30f5146d0
test(_mapdata): update for _mapdata/init.sls change 2021-01-14 21:09:02 +00:00
Imran Iqbal
46ad65e39e
refactor(map): use top-level values: key in map.jinja dumps
* Semi-automated using https://github.com/myii/ssf-formula/pull/284
2020-12-23 16:54:51 +00:00
Imran Iqbal
1a4d20877c
test: fix rubocop violations
Use method:

1. `rubocop -a --safe`
2. `rubocop -A --safe`
3. Use `rubocop:disable`

```
Offenses:

test/integration/default/controls/config_spec.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal
comment.
control 'Php configuration' do
^
test/integration/default/controls/config_spec.rb:4:3: C: Metrics/AbcSize: Assignment Branch Condition size for
test_debian is too high. [<0, 26, 0> 26/17]
(http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
  def test_debian ...
  ^^^^^^^^^^^^^^^
test/integration/default/controls/config_spec.rb:4:3: C: Metrics/MethodLength: Method has too many lines. [14/10]
(https://rubystyle.guide#short-methods)
  def test_debian ...
  ^^^^^^^^^^^^^^^
test/integration/default/controls/config_spec.rb:24:3: C: Style/EmptyMethod: Put empty method definitions on a single
line. (https://rubystyle.guide#no-single-line-methods)
  def test_redhat ...
  ^^^^^^^^^^^^^^^
test/integration/default/controls/config_spec.rb:27:3: C: Style/EmptyMethod: Put empty method definitions on a single
line. (https://rubystyle.guide#no-single-line-methods)
  def test_suse ...
  ^^^^^^^^^^^^^
test/integration/default/controls/package_spec.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string
literal comment.
control 'Php package' do
^
test/integration/default/controls/package_spec.rb:4:3: C: Metrics/AbcSize: Assignment Branch Condition size for
test_debian is too high. [<1, 26, 1> 26.04/17] (http://c2.com/cgi/wiki?AbcMetric,
https://en.wikipedia.org/wiki/ABC_Software_Metric)
  def test_debian ...
  ^^^^^^^^^^^^^^^
test/integration/default/controls/package_spec.rb:4:3: C: Metrics/MethodLength: Method has too many lines. [20/10]
(https://rubystyle.guide#short-methods)
  def test_debian ...
  ^^^^^^^^^^^^^^^
test/integration/default/controls/package_spec.rb:21:1: C: Layout/EmptyLinesAroundBlockBody: Extra empty line detected
at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies)
test/integration/default/controls/service_spec.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string
literal comment.
control 'Php service' do
^
test/integration/default/controls/service_spec.rb:16:3: C: Style/EmptyMethod: Put empty method definitions on a single
line. (https://rubystyle.guide#no-single-line-methods)
  def test_redhat ...
  ^^^^^^^^^^^^^^^
test/integration/default/controls/service_spec.rb:19:3: C: Style/EmptyMethod: Put empty method definitions on a single
line. (https://rubystyle.guide#no-single-line-methods)
  def test_suse ...
  ^^^^^^^^^^^^^

7 files inspected, 12 offenses detected, 8 offenses auto-correctable
```
2020-12-22 15:02:31 +00:00
Imran Iqbal
f88fdf784a
test(_mapdata): generate verification files 2020-12-22 14:38:56 +00:00
Imran Iqbal
e9591db355
test(map): verify map.jinja dump using _mapdata state
* Automated using https://github.com/myii/ssf-formula/pull/283
2020-12-22 14:30:35 +00:00
Imran Iqbal
55d5df17d4 ci(platform): add arch-base-latest (commented out for now) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/50
2019-10-01 16:20:45 +01:00
Imran Iqbal
fd675701a5
test(suse): update version to 7.0 for opensuse-leap-15 2019-09-05 22:17:15 +01:00
Nicolas Rodriguez
496ec28dae fix(xdebug): fix xdebug package name 2019-09-04 22:46:11 +02:00
Nicolas Rodriguez
b13bed2a48 test(ubuntu): fix tests on Ubuntu distro 2019-09-04 02:58:06 +02:00
Nicolas Rodriguez
23214bfa78 fix(tests): don't test services on Suse and RedHat 2019-09-04 01:40:02 +02:00
Nicolas Rodriguez
6555cf0432 test(config): add tests on Php config 2019-09-04 01:33:06 +02:00
Nicolas Rodriguez
dc12a0bbf2 style(spec): remove empty lines 2019-09-04 01:13:22 +02:00
Nicolas Rodriguez
baeac04bd9 test(service): add tests on Php services 2019-09-04 01:12:38 +02:00
Nicolas Rodriguez
59f648c067 test(package): fix package spec in case of multi Php versions 2019-09-04 01:12:28 +02:00
Imran Iqbal
571cc4b46c
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:

```bash
php-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./test/integration/default/inspec.yml
  1:1       warning  missing document start "---"  (document-start)

pillar.example
  3:1       warning  missing document start "---"  (document-start)
  7:22      warning  truthy value should be one of [false, true]  (truthy)
  8:22      warning  truthy value should be one of [false, true]  (truthy)
  10:22     warning  truthy value should be one of [false, true]  (truthy)
  16:17     warning  truthy value should be one of [false, true]  (truthy)
  41:12     error    wrong indentation: expected 10 but found 11  (indentation)
  46:27     warning  truthy value should be one of [false, true]  (truthy)
  70:18     warning  truthy value should be one of [false, true]  (truthy)
  74:19     warning  truthy value should be one of [false, true]  (truthy)
  83:22     warning  truthy value should be one of [false, true]  (truthy)
  97:22     warning  truthy value should be one of [false, true]  (truthy)
  107:89    error    line too long (93 > 88 characters)  (line-length)
  118:20    warning  truthy value should be one of [false, true]  (truthy)
  126:14    error    wrong indentation: expected 12 but found 13  (indentation)
  126:23    warning  truthy value should be one of [false, true]  (truthy)
  151:20    warning  truthy value should be one of [false, true]  (truthy)
  177:19    warning  truthy value should be one of [false, true]  (truthy)
  197:25    warning  truthy value should be one of [false, true]  (truthy)
```
2019-08-14 23:24:41 +01:00
sticky-note
4f75eac5fe fix(tests): fix package name for debian 2019-08-14 02:00:08 +11:00
Imran Iqbal
45f9a75961 chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.1)
2019-07-19 17:16:12 +01:00
Imran Iqbal
4af569aa19
docs: merge latest changes from template-formula
* Completes #179
* Fix testing on `develop` images and enable in the matrix
2019-06-27 07:17:31 +01:00
Nicolas Rodriguez
cdd206a10a feat(semantic-release): add support of semantic-release 2019-06-27 00:02:46 +02:00