Commit Graph

241 Commits

Author SHA1 Message Date
Matt Jesuele
09cfa141d6 dolt/bats/advanced-sql.bats: Fix bats test 2019-07-15 17:29:47 -07:00
Daylon Wilkins
dab3cea0de Fixed some bats tests 2019-07-15 17:29:47 -07:00
Matt Jesuele
92fec8abc4 dolt/bats/1pk5col-ints.bats: Add skipped section of test checking output of dolt commit, which is currently wrong 2019-07-12 15:22:12 -07:00
Matt Jesuele
c83472fba6 dolt/{bats,go}: git dolt install finds the .git directory even if it's in a parent directory (#1715)
Closes #1701.

* dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Add util for finding git directory in parent directory structure

* dolt/bats/git-dolt.bats: Add test for git dolt install working in subdirectories of git repos

* dolt/go/cmd/git-dolt/commands/install.go: Find the .git directory even if it's in a parent of the working directory

* dolt/bats/git-dolt.bats: Fix indentation

* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Omit extraneous type annotation like a good Gopher

* dolt/go/cmd/git-dolt: Use filesystem root instead of home directory as terminal path for .git search

* dolt/bats/git-dolt.bats: Unskip no-longer-hanging test

* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Add method docs

* dolt/go/cmd/git-dolt/utils/find_git_config_dir_test.go: Create all test files in a temp directory

* dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Return an error instead of hanging when currentPath is not a descendent of terminalPath

* dolt/go/cmd/git-dolt: Gofmt

* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Actually, if these are always absolute paths, we can simplify things a bit
2019-07-09 17:44:28 -07:00
Matt Jesuele
c7664b0eb9 dolt/{bats,go}: Improve output and README for git-dolt (#1682)
* dolt/{bats,go}: Improve output for git dolt update command

* dolt/go/cmd/git-dolt/README.md: Add install and update commands

* dolt/go/cmd/git-dolt/README.md: Add example of usage
2019-07-05 12:48:21 -07:00
Matt Jesuele
bd212a8260 dolt/go/cmd/git-dolt{,-smudge}: Add git smudge filter for git-dolt (#1651)
* dolt/go/cmd/git-dolt/config/config.go: Add package comment

* dolt/go/cmd/git-dolt: Factor CloneToRevision function out of Fetch command

* dolt/go/cmd/git-dolt: Factor AppendToFile out of Link command

* dolt/go/cmd/git-dolt: Add install command

* dolt/go/cmd/git-dolt-smudge: Create git-dolt-smudge command to use as a git smudge filter

* dolt/go/cmd/git-dolt/git-dolt.go: Cleanup

* dolt/bats/git-dolt.bats: Add bats test for git dolt install

* Jenkinsfile: Add git-dolt-smudge to dolt/bats stage

* dolt/bats/git-dolt.bats: Add test for git-dolt smudge filter

* dolt/bats/git-dolt.bats: Configure fake name and email in test git repos so that committing works on Jenkins

* dolt/{bats,go}: Improve git-dolt cloning behavior (especially streaming output from dolt clone); refactor

* dolt/{bats,go}: Small tweaks to git-dolt output
2019-07-01 11:46:02 -07:00
Matt Jesuele
78d6177669 dolt/bats/git-dolt.bats: Loosen assertion on version line of config file 2019-06-26 14:47:10 -07:00
Matt Jesuele
ba173837aa dolt/{bats,go}: Factor git-dolt into several packages 2019-06-25 14:18:01 -07:00
Matt Jesuele
14580c32a3 dolt/{bats,go}: Super basic implementation of git dolt update (#1621)
* dolt/{bats,go}: Super basic implementation of git dolt update

* dolt/go/cmd/git-dolt: Refactoring/cleanup

* dolt/bats/git-dolt.bats: Improve some output assertions
2019-06-25 11:56:43 -07:00
Matt Jesuele
0ba9cb3abb dolt/{bats,go}: Implement git dolt fetch, improve error messaging and tests, add README (#1503) 2019-06-20 10:02:42 -04:00
Timothy Sehn
a953a0a5a6 Merge pull request #1560 from liquidata-inc/tim/drop-table-tests
added drop table bats test
2019-06-19 17:17:20 -07:00
Timothy Sehn
1db21d7bb8 added drop table bats test 2019-06-19 17:10:34 -07:00
Zach Musgrave
a236b0cc5f Merge pull request #1502 from liquidata-inc/zachmu/sql-export
SQL export
2019-06-19 15:38:24 -07:00
Zach Musgrave
8d9c841588 Fixed bats test 2019-06-19 15:28:38 -07:00
Zach Musgrave
d50f626888 Added bats test for sql export 2019-06-19 15:26:54 -07:00
Timothy Sehn
0f449c6058 happy path alter table, describe, and show tabletests 2019-06-18 13:56:03 -07:00
Timothy Sehn
987548ab4d first pass at happy path sql schema test cases 2019-06-18 13:03:01 -07:00
Zach Musgrave
46582907f0 Merge pull request #1505 from liquidata-inc/zachmu/sql-fixes
Unskip SQL tests that now work.
2019-06-18 09:52:24 -07:00
Zach Musgrave
b1ad4cecac Unskip SQL tests that now work. 2019-06-14 14:00:39 -07:00
Zach Musgrave
9916c8a725 Added warning text for attempting SQL import, fixed bats tests 2019-06-14 12:23:02 -07:00
Brian Hendriks
026e6e6a99 dolt reset --hard 2019-06-14 09:42:22 -07:00
Brian Hendriks
1b2e49004b bats tests 2019-06-13 15:08:06 -07:00
Brian Hendriks
4cfd2b2c88 test fixes 2019-06-12 12:52:32 -07:00
Brian Hendriks
919beec6e6 change file based remotes storage dir 2019-06-12 10:23:01 -07:00
Brian Hendriks
731ad98bd2 bats test for file:// remote 2019-06-12 10:23:01 -07:00
Brian Hendriks
f5264ba8dd bats fixes
insecure parameter no longer supported.  Changed bats test to use http:// instead
changed lastSegment to be more flexible and work with different remote formats
2019-06-11 14:47:56 -07:00
Brian Hendriks
d49955d7bd dbfactory 2019-06-11 14:47:56 -07:00
Matt Jesuele
decf29f807 dolt/{bats,go}: git dolt errors on unknown commands 2019-06-11 09:59:24 -07:00
Matt Jesuele
9b80f3c787 dolt/bats/git-dolt.bats: Rework test for when dolt is not installed 2019-06-11 09:59:24 -07:00
Matt Jesuele
eb5d30cf2d dolt/{bats,go}: Better error handling per PR feedback 2019-06-11 09:59:24 -07:00
Matt Jesuele
888ebe309d dolt/{bats,go}: Git-Dolt v0! 2019-06-11 09:59:24 -07:00
Zach Musgrave
0ebaf6bc0b Unskipped tests of deleting a column now that it no longer panics 2019-06-10 15:41:29 -07:00
Zach Musgrave
00f9bc03f7 Merge pull request #1408 from liquidata-inc/zachmu/sql-schema-backticking
Quote the column names in SQL schema strings with backticks, so that our create table strings can actually be used to create tables even when the column names are reserved words or don't otherwise parse.
2019-06-10 14:17:18 -07:00
Zach Musgrave
93fbb9aaf4 Fixed more failing bats test from backticking identifier names in create table strings 2019-06-10 14:13:21 -07:00
Zach Musgrave
1c33cd6615 Fixed bats schema tests with new schema output format (backtick quoted identifiers) 2019-06-10 13:41:20 -07:00
Matt Jesuele
2d53bb9509 dolt/bats/remotes.bats: Add skipped bats test for cloning an empty remote 2019-06-06 17:02:42 -07:00
Brian Hendriks
bbe701fe3c when cloning, prefer to set the active branch to master 2019-06-04 13:12:26 -07:00
Zach Musgrave
81f7661f7a Unskipped newly working bats test 2019-05-29 09:34:18 -07:00
Zach Musgrave
8db515e626 Fixed another unsupported query in bats test 2019-05-28 09:46:32 -07:00
Zach Musgrave
f0bf052ef2 Fixed SQL tests that used column aliases in joins and where clauses, which is not supported anymore. 2019-05-28 09:36:25 -07:00
Zach Musgrave
dd27ea2856 Unskipped reserved word test 2019-05-24 17:00:07 -07:00
Zach Musgrave
90677b4ec5 Fixed error message change failure in bats test 2019-05-23 14:43:29 -07:00
Zach Musgrave
d4fe8f07dc Made it an error to update a primary key column 2019-05-22 13:59:15 -07:00
Zach Musgrave
a2cc88d9b5 Fixed error message for select without a table. 2019-05-22 13:50:33 -07:00
Zach Musgrave
32756c8729 Fixed a bug in missing primary key detection, fixed error string tests in bats (and added a few more tests) 2019-05-20 15:42:57 -07:00
Brian Hendriks
e0c8a7cbd6 test fixes 2019-05-20 14:42:04 -07:00
Zach Musgrave
4b9855a619 Unskipped limit -1 test, added one for offset 2019-05-16 15:16:59 -07:00
Timothy Sehn
c7864877a5 Added update primary key test 2019-05-14 17:57:36 -07:00
Zach Musgrave
9b0bf2badf Remove unnecessary checks in bats tests 2019-05-14 16:21:58 -07:00
Zach Musgrave
8848a2bd6b Remove unnecessary checks in bats tests 2019-05-14 16:20:21 -07:00