| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
| |
Fix linting error, ensure tests are actually run
|
|
|
|
|
|
|
|
| |
Acceptance test have to be run inside of lxd, which is not working right
now on travis.
Let's fall back to regular tests until we have a better jenkins based
infra.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This updates Terraform to the latest version. Travis will build with
go1.9 from now on, since Terraform > 0.10.2 doesn't support go1.8.
Glide was run with `--strip-vendor` which removes a lot of unnecessary
files.
Tests and Docs regarding `ignition` have been updated.
This resolves #194.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
| |
Travis needs to checkout to a vanity path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The tests are failing because travis has an old version of libvirt that
is not happy about the xml we generate.
Unfortunately there's no way to get a more recent version of ubuntu on
travis (it's stuck with trusty!!) and there are not libvirt 2.0
packages for trusty.
This commit fixes the issues in the "inception" way:
* travis provisions a ubuntu trusty VM as usual
* the travis/host script does the following steps:
* installs LXD
* creates a system container based on the latest release of ubuntu
* runs the container as privileged one
* mount the git checkout into the container as read-only mount
point (it easier than having a RW one)
* runs the travis/guest script inside of the container:
* install libvirt + go 1.8
* run the acceptance tests, save coverage to file
* on the travis VM:
* pull the coverage results file from the container
* send it to coverall
So far everything is working and is a miracle given the container,
based on a more recent version of ubuntu, is using the kernel of the
host, the old ubuntu trusty.
This is just a termporary workaround until either travis updates its
VMs to a more recent release of ubuntu or we switch the project to use
Jenkins with an openSUSE worker.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
|
|
|
|
|
| |
The terraform code is taking advantage of features available only
inside of go 1.8
|
|
|
|
|
| |
This is no longer needed now that all the deps are stored inside of the
git repository.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This has required a number of changes, first of all to .travis.yml
to allow the TF acceptance tests to run:
1. To avoid the need to build libvirt, we've added the Ubuntu
"cloud-archive:mitaka" repo which contains more recent versions
of libvirt than those that ship with 14.04. This also cuts
a couple of minutes off the travis run-time.
2. We need to define and start a default storage pool, since one
doesn't exist by default on 14.04.
3. We need to add the travis user to the libvirtd group, and
then run both tests with "sg" to set the libvirtd group without
requiring a log-out/log-in
4. We need to set a couple of global environment variables for
the travis run:
- TF_ACC to true to ensure that TF acceptance tests are run
- LIBVIRT_DEFAULT_URI needs to be set, we set it to qemu://system.
- We've added a new environment variable that can be used to
set the domain type for test purposes. We need to set the
domain type to "qemu" for travis CI. "test" doesn't implement
all of the libvirt functions that are used, and "kvm" isn't
yet available in travis.
5. We have to add "-v" to the test and goveralls command to ensure
that TF acceptance tests are run.
In addition, we had to make the following change to
resource_libvirt_domain_test.go
- The "br0" bridge doesn't exist by default, so instead we use
the default network in resource_libvirt_domain_test.go
With these changes the test coverage goes up to 44% as measured by
goveralls. Because we're using qemu emulation, the tests take about
2 mins to run on travis.
We might not need to run both the tests and goveralls; one might do.
|
| |
|
|
|
|
|
|
|
|
|
| |
When building with Go 1.6, the build fails due to the missing "context"
package. Using Go 1.7 solves this issue.
Beside that, Terraform requires Go 1.7.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tracking all the dependencies makes builds reproducible and more robust.
Some changes have been made to Travis too:
- Overwrite the default testing script used by travis, this still
executes the unit tests of the vendored code.
- Build using vendored code
- Do not run the tests of the vendored code, just focus on ours :)
- Remove the `find` command, I guess it was there for debugging
purposes and it makes travis go crazy when streaming the output.
- Force usage of latest stable release of Go.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|