Commit graph

127 commits

Author SHA1 Message Date
Ev Kontsevoy e89d4e48b9 PR comments:
Removed -race flag for integration tests
Removed uplicate "ping" in reverse tunnel agent
2016-04-11 18:07:24 -07:00
Ev Kontsevoy 3d42e3d636 Prepared previous commits for merging into master
- Fixed all tests
- Removed "magic constants" in random places
- Improved 'retry connecting to auth server' logic (it used to always
  fail on 1st attempt)
2016-04-11 16:32:38 -07:00
Ev Kontsevoy 2d8a7b941f Fixed tests
Found a place in Teleport where `check.v1` was imported into production
(not test) code.

This has a few problems:

1. `check.v1` has `init()` package function which alters the program
   execution: it registers globals, like 'flags' package (this affects
   how scp.go works, which uses flags)

2. This also brings accidental symbols into production code (and you may
   have developers using functions indended to be used by tests by
   mistake).

The proper fix (IMO) would be to eliminate any test code stored in files
without _test suffix.

In this case, to save time, I've added 'test' build flag, turned on
condnitional compilation and instructed "go test" to always use this
flag.
2016-04-05 18:50:41 -07:00
Ev Kontsevoy 9bde8462f2 Removed unused debug symbols (14MB!) from binary releases 2016-03-26 01:51:10 -07:00
Ev Kontsevoy 520dc9c482 Removed symlink from the asset build 2016-03-24 12:54:50 -07:00
klizhentas a341dc991d update default paths 2016-03-24 12:32:59 -07:00
Ev Kontsevoy 51475bee25 Tiny assets build tweak 2016-03-24 12:07:46 -07:00
klizhentas d42e122ef1 small fixes, refs #290
* do not populate auth servers advertising local ips
* fix annoying resize on session create
* decrease TTLs for active sessions and parties
2016-03-23 11:12:24 -07:00
klizhentas cc341b921d source release should not include OS 2016-03-22 20:50:37 -07:00
klizhentas f97dd53bdb make binary-release target source compatible 2016-03-22 19:05:33 -07:00
klizhentas ab302215cf update releases according to comments 2016-03-22 18:22:48 -07:00
klizhentas 6b1adc5b8c add license 2016-03-22 17:09:57 -07:00
klizhentas 0d88af39ef introduce source release and binary release targets 2016-03-22 17:03:58 -07:00
klizhentas bca6ea618e fix build flags, recover versioning 2016-03-22 12:15:17 -07:00
Ev Kontsevoy b36b3cde61 Merge remote-tracking branch 'origin/master' into taylor/docs
Conflicts:
	Makefile
	tool/tctl/main.go
2016-03-22 10:11:12 -07:00
klizhentas b329109e94 fix linkflags, fixes #277 2016-03-19 13:43:23 -07:00
Ev Kontsevoy 26a3049916 Our own docs theme 2016-03-19 10:32:08 -07:00
Ev Kontsevoy 6c9e14fceb Merge remote-tracking branch 'origin/master' into ev/docs
Conflicts:
	Makefile
	build.assets/Dockerfile
	build.assets/Makefile
2016-03-19 09:59:22 -07:00
Ev Kontsevoy a3f7a6dcd5 Integrated mkdocs into Teleport builds 2016-03-18 17:32:41 -07:00
Ev Kontsevoy 3b3dc9f8e8 Updated Makefile and README 2016-03-18 14:54:20 -07:00
Ev Kontsevoy 1136e98ef3 Two changes:
1. Removed `assets` directory
2. Removed Gravity package building from the Makefile
3. Updated "Admin Guide" with the information regarding web assets.
2016-03-18 14:23:01 -07:00
klizhentas 091ccb9894 add TLS client authentication for ETCD 2016-03-16 18:30:00 -07:00
Ev Kontsevoy 042afa1edd Small change to test PR building 2016-03-15 20:50:00 -07:00
Ev Kontsevoy 3de1d72921 Cleaned up Makefiles 2016-03-15 20:41:12 -07:00
Ev Kontsevoy 9a4b114901 Merge pull request #249 from gravitational/alexander/test-output
add support for TELEPORT_DEBUG_TESTS environment variable
2016-03-14 14:20:58 -07:00
klizhentas 7a2a9e334f add support for TELEPORT_DEBUG_TESTS environment variable turning on verbose testing 2016-03-14 14:07:45 -07:00
klizhentas 19788c25ce introduce teleport version, fixes #241
Here's how it works:

* It takes the closest tag that is present in the build
* Automatically applies this tag
* Adds git commit as well
* Is 100% go gettable
* No external deps, all vendored
2016-03-14 11:22:49 -07:00
klizhentas f038b0a8b7 fix out 2016-03-13 19:19:22 -07:00
klizhentas 4c7aef36d1 one more attempt 2016-03-13 19:15:22 -07:00
klizhentas 2078c2b7e1 fix build again 2016-03-13 18:48:35 -07:00
Ev Kontsevoy 04db6cc769 Webassets aren't in "Data Dir" anymore
When teleport starts, it looks for web assets in the following
directories:

- Dir where executable is
- /usr/local/share/teleport
- /usr/share/teleport
- /opt/teleport
2016-03-12 23:24:57 -08:00
Ev Kontsevoy 150160799f Testing auto-building on Jenkins 2016-03-12 00:16:28 -08:00
klizhentas c313f1e252 test for races by default 2016-03-10 18:09:17 -08:00
klizhentas 70388b5581 start fixing dockerfile 2016-03-10 17:27:54 -08:00
klizhentas 09725aab60 recover etcd backend support 2016-03-10 17:03:01 -08:00
Ev Kontsevoy 55b61c53b1 Minor refactoring, commenting and code quality improvements 2016-03-09 17:15:14 -08:00
klizhentas 519f07611b fix data races and remove sleep from tests
* fix data race with advertise ip
* remove global variable
* simplify pings logic and fix ping bug
* fix potential bug in dynamic labels
2016-03-08 18:41:05 -08:00
Ev Kontsevoy 39382dc41a tsh ls works
similarly to tctl nodes ls
closes #181
2016-03-08 16:30:32 -08:00
klizhentas 35852bdca9 remove hangouts, report errors from subsystems, refs #179 2016-03-08 12:02:45 -08:00
klizhentas 4cd90d7ee0 fix hostport problem when connecting to proxy 2016-03-07 10:06:42 -08:00
Ev Kontsevoy 75fcb39f04 Intermediate commit 2016-03-02 17:37:11 -08:00
Ev Kontsevoy bb060fbbde Protection against nodes registering with unreachable IPs
auth:UpsertServer() now uses IP address on the wire if it detects looback or
unspecified IPs.

Refs #183
2016-03-01 17:18:06 -08:00
Ev Kontsevoy e02378baf8 Minor code refactoring and commenting...
...in preparation for server side chagnes
2016-02-29 19:00:45 -08:00
Ev Kontsevoy 82a0299053 Intermediate commit 2016-02-29 19:00:45 -08:00
Ev Kontsevoy 70fd2b9bfa TSH test coverate + ssh commands (instead of shell) 2016-02-28 14:22:52 -08:00
Ev Kontsevoy 06ff8f81aa Bugfixes in the new tsh code 2016-02-28 14:22:52 -08:00
Ev Kontsevoy 54169b91f1 Super early implementation of SSH 2016-02-28 14:22:52 -08:00
Ev Kontsevoy 02c6786521 Intermediate commit 2016-02-28 14:22:52 -08:00
Ev Kontsevoy e834cb25ac Minor fixes 2016-02-26 16:49:05 -08:00
Ev Kontsevoy a6d9bf3e01 Fixed unit test. Fixed #170 2016-02-26 15:29:49 -08:00