Commit Graph

25 Commits

Author SHA1 Message Date
Tim Hockin 27b43e624b e2e: move flags and better errors 2019-11-19 07:44:02 -08:00
Tim Hockin 2b11e078b0 Remove default-value flags in e2e 2019-11-19 07:44:02 -08:00
Tim Hockin 5a73199cf7 all e2e should use file://repo 2019-11-19 07:44:02 -08:00
Tim Hockin 405bfefdc2 e2e: don't pass one-time and wait 2019-11-19 07:44:02 -08:00
Tim Hockin 5e82e574ac e2e more random (I actually hit this) 2019-11-19 07:44:02 -08:00
Tim Hockin c94c8087de e2e --one-time tests can be sync 2019-11-19 07:44:02 -08:00
Tim Hockin bc0980b906 make e2e easier to read 2019-11-19 07:44:02 -08:00
Tim Hockin bde21410c6 Clean up e2e formatting 2019-11-19 07:44:02 -08:00
Michal Lula d1b97bae6c support of depth flag 2019-10-22 16:43:51 +02:00
Michal Lula 41c8572ad6 add tests 2019-10-11 17:58:47 +02:00
Tim Hockin 5c09cac67c Fix e2e to avoid undef var 2019-03-25 08:54:44 -07:00
Thomas Jackson 5676842f8c Address comments from PR 2019-01-23 12:30:19 -08:00
Thomas Jackson b2677cc434 Add e2e test for http handler
Tests for #135
2019-01-23 11:05:47 -08:00
Thomas Jackson 6d98f420e7 Add e2e test for webhook
Test for #131
2019-01-23 11:05:47 -08:00
Thomas Jackson 07f0e6dde2 Cleanup container from sync-loop-timeout
Otherwise any test running afterwards fails because it left the
container running.
2019-01-22 17:15:03 -08:00
Thomas Jackson b0c1234787 Add e2e tests for depth flag 2019-01-22 16:59:53 -08:00
George Angel a86ad5d950 add timeout tests
- custom `git` command option
- tests on slow running git commands
2019-01-04 22:32:53 +00:00
Tim Hockin 648d31b7f2 fix e2e script to work with os/arch tags 2019-01-04 11:36:19 -08:00
Tim Hockin ada75e9c6c Build a manifest list
Retool some of the build/test to produce a manifest-list rather than a
single image.
2018-11-09 14:20:23 -08:00
Tim Hockin 40e188fb26 Switch to rev-parse
This handles non-annotated tags, which were not handled well before.  It
does mean that we use the hash of the (annotated) tag object instead of
the commit, but that seems OK.

Added a test case.
2018-11-09 10:16:36 -08:00
Tim Hockin 296093b9df Clean up failed clones
If an initial clone crashes, it can leave the git-root in a bad state
such that git can't retry the clone.  This change forces it to clean up
the mess and retry.
2018-08-21 08:04:45 -07:00
jorianvo 517179fa2f Improve e2e tests
Change the use of pkill with 'docker rm' as this will work more reliably (at least on MacOS). Trap the EXIT signal so we can perform a clean-up even if a test fails, so we don't pollute the system with a bunch of stopped containers. Increase the timeout from two to three seconds in order for the tests to work reliably on MacOS (the two second waiting period was consistenly to short for all tests to work). Update the Makefile so when we run the container in order to compile the package we make sure the (stopped) container is removed.
2017-09-21 22:02:13 +02:00
Tim Hockin ac0817b212 Fix one-shot sync of a rev 2017-09-15 10:04:50 -07:00
Tim Hockin d2d9f68d8d bump e2e timeouts 2017-01-26 22:21:54 -08:00
Tim Hockin 70feeb5ae1 Use the go-build-template
Faster builds and versions from tags.  Also use alpine as a base image.  We
need alpine for other architectures...

Also change the --wait flag to take a float for sub-second waits.
2016-10-30 17:09:06 -07:00