Quellcode durchsuchen

test(git): Add git kitchen-test for Podman

- Add Podman kitchen-dokken

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO vor 2 Jahren
Ursprung
Commit
3db3835a0e
3 geänderte Dateien mit 24 neuen und 4 gelöschten Zeilen
  1. 9 4
      base.lock.json
  2. 5 0
      base.rb
  3. 10 0
      kitchen.yml

+ 9 - 4
base.lock.json

@@ -1,9 +1,14 @@
 {
-  "revision_id": "03a97f5f166d36c6d72573e3428cb377e211910b08f23d6932a4966cd07191e0",
+  "revision_id": "93f85e5d20ae75fbc3ad6f74528843b9e1ce3f6485a737fd7b7c5155fdd665f2",
   "name": "base",
   "run_list": [
     "recipe[workstation::default]"
   ],
+  "named_run_lists": {
+    "git": [
+      "recipe[workstation::_git]"
+    ]
+  },
   "included_policy_locks": [
 
   ],
@@ -67,14 +72,14 @@
     },
     "workstation": {
       "version": "0.1.0",
-      "identifier": "87cabbed29a4226c60fe17b24c2e549cf8a1b77c",
-      "dotted_decimal_identifier": "38222030342562850.30505941920271406.93033162979196",
+      "identifier": "686828b9dc4db37278242bac4fe9a331c1842b27",
+      "dotted_decimal_identifier": "29387921704111539.32220244091883497.179434095389479",
       "source": "cookbooks/workstation",
       "cache_key": null,
       "scm_info": {
         "scm": "git",
         "remote": null,
-        "revision": "db957898aa9883bb8a303e9625ac488202921f70",
+        "revision": "77f5ec5510d8a5ebd742da8081fdd5cd32de6f53",
         "working_tree_clean": false,
         "published": false,
         "synchronized_remote_branches": [

+ 5 - 0
base.rb

@@ -15,6 +15,11 @@ run_list [
   'workstation::default',
 ]
 
+# Kitchen-test suite
+named_run_list :git, [
+  'workstation::_git',
+]
+
 # Specify a custom source for a single cookbook:
 # cookbook 'example_cookbook', path: '../cookbooks/example_cookbook'
 cookbook 'etckeeper', git: 'https://github.com/jmauro/etckeeper-cookbook', branch: 'master-next'

+ 10 - 0
kitchen.yml

@@ -14,6 +14,7 @@ provisioner:
   enforce_idempotency: true
   multiple_converge: 2
   deprecations_as_errors: false
+  # log_level: :debug
 
 platforms:
   - name: debian-11
@@ -48,3 +49,12 @@ suites:
         - podman start chef-latest
       post_destroy:
         - podman volume prune -f
+  - name: workstation-git
+    provisioner:
+      named_run_list: 'git'
+    lifecycle:
+      pre_create:
+        - podman create --name chef-latest --replace docker.io/chef/chef:latest sh
+        - podman start chef-latest
+      post_destroy:
+        - podman volume prune -f