/integration-tests/bats: add skipped bats test for overwritten table bug

This commit is contained in:
coffeegoddd
2023-04-13 10:24:28 -07:00
parent 926c97a01b
commit ec9b4d7538
3 changed files with 26 additions and 0 deletions
+2
View File
@@ -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
1 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
2 8d6f8933 Cochise County ASPC-Douglas 6911 N. BDI Blvd Douglas AZ 85607 0 0 1 -1 1 -1 1 1805
+2
View File
@@ -0,0 +1,2 @@
state,population
Delaware,59096
1 state population
2 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" ]
}