-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Kitchen.ci test environment #31
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ __ipmininet_temp_key.pub | |
tags | ||
.eggs | ||
*.ropeproject | ||
.kitchen/ | ||
.kitchen.local.yml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
synced_folders: | ||
- [".", "/opt/ipmininet"] | ||
customize: | ||
memory: 4096 | ||
|
||
provisioner: | ||
name: shell | ||
command: /opt/ipmininet/util/build_vm.sh | ||
|
||
platforms: | ||
- name: ubuntu-16.04 | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
attributes: |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,19 @@ | ||||||
--- | ||||||
driver: | ||||||
name: vagrant | ||||||
synced_folders: | ||||||
- [".", "/opt/ipmininet"] | ||||||
|
||||||
provisioner: | ||||||
name: shell | ||||||
command: sudo python /opt/ipmininet/util/install.py -a | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This solves the problems for all platforms There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 for For |
||||||
|
||||||
platforms: | ||||||
- name: ubuntu-16.04 | ||||||
- name: debian-9 | ||||||
- name: fedora-28 | ||||||
|
||||||
suites: | ||||||
- name: default | ||||||
run_list: | ||||||
attributes: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env python | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not needed, I think |
||
|
||
import argparse | ||
import os | ||
import sys | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kitchen supplies a config section (verifiers) for running tests https://kitchen.ci/docs/getting-started/writing-test/. Separating the provisioning and the tests. I suggest adding the tests there.