mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-29 03:06:35 -05:00
/integration-tests/bats: add skipped bats test for overwritten table bug
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
id,county,facility_name,facility_address,facility_city,facility_state,facility_zip,is_private,in_urban_area,holds_greater_than_72_hours,holds_less_than_1_yr,felonies_greater_than_1_yr,hold_less_than_72_hours,facility_gender,num_inmates_rated_for
|
||||
8d6f8933,Cochise County,ASPC-Douglas,6911 N. BDI Blvd,Douglas,AZ,85607,0,0,1,-1,1,-1,1,1805
|
||||
|
@@ -0,0 +1,2 @@
|
||||
state,population
|
||||
Delaware,59096
|
||||
|
@@ -795,3 +795,25 @@ DELIM
|
||||
[[ "$output" =~ "Import completed successfully." ]] || false
|
||||
|
||||
}
|
||||
|
||||
@test "import-create-tables: created table with force option can be added and committed as modified" {
|
||||
skip "overwritten table cannot be added and committed as modified"
|
||||
run dolt table import -c --pk=id test `batshelper jails.csv`
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "Import completed successfully." ]] || false
|
||||
run dolt add test
|
||||
[ "$status" -eq 0 ]
|
||||
run dolt commit -m 'added table test'
|
||||
[ "$status" -eq 0 ]
|
||||
run dolt table import -c -f --pk=state test `batshelper states.csv`
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "Import completed successfully." ]] || false
|
||||
run dolt add test
|
||||
[ "$status" -eq 0 ]
|
||||
run dolt commit -m 'modified table test'
|
||||
[ "$status" -eq 0 ]
|
||||
run dolt status
|
||||
[ "$status" -eq 0 ]
|
||||
[ "${lines[0]}" = "On branch main" ]
|
||||
[ "${lines[1]}" = "nothing to commit, working tree clean" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user