diff --git a/README.md b/README.md index afacb3b..7318c95 100644 --- a/README.md +++ b/README.md @@ -45,4 +45,11 @@ node_build_plugin_install '/path/to/install/node-build' | git_revision | String | master | You can choose a branch, tag, or commit to be synchronized with git | | user | String | | Deprecated. Use `owner` instead | -`node_build_root` is the name property. \ No newline at end of file +`node_build_root` is the name property. + +# Test + +Check [Test Kitchen](https://kitchen.ci/docs/getting-started/running-test). + +- docker/dokken: `KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen test` +- vagrant/virtualbox: `kitchen test` diff --git a/kitchen.dokken.yml b/kitchen.dokken.yml index 5acce9f..2331422 100644 --- a/kitchen.dokken.yml +++ b/kitchen.dokken.yml @@ -44,6 +44,12 @@ platforms: pid_one_command: /bin/systemd intermediate_instructions: - RUN /usr/bin/apt-get update -qq + - name: ubuntu-22.04 + driver: + image: dokken/ubuntu-22.04 + pid_one_command: /bin/systemd + intermediate_instructions: + - RUN /usr/bin/apt-get update -qq suites: - name: default diff --git a/metadata.rb b/metadata.rb index 9cb4911..df80d41 100644 --- a/metadata.rb +++ b/metadata.rb @@ -17,4 +17,4 @@ supports 'oracle' supports 'ubuntu' -depends 'git', '~> 10.0.0' +depends 'git', '~> 11.1.2' diff --git a/test/integration/default/plugin_install_spec.rb b/test/integration/default/plugin_install_spec.rb index e27046f..7f26445 100644 --- a/test/integration/default/plugin_install_spec.rb +++ b/test/integration/default/plugin_install_spec.rb @@ -95,7 +95,7 @@ it { should exist } end - describe command("bash -c \"cd #{node_build_home} && git rev-parse HEAD\"") do + describe command("bash -c \"git -C #{node_build_home} rev-parse HEAD\"") do its(:stderr) { should eq '' } its(:stdout) { should eq "d6a05a7d598dc2ef2f0e5fbccac5123f12eed61e\n" } end