Skip to content

Commit

Permalink
with extre checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jan 12, 2025
1 parent edd352d commit c6c2c9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esti/lakectl_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,11 @@ func TestLakectlLocal_commitProtetedBranch(t *testing.T) {
str := runCmd(t, Lakectl()+" branch-protect list lakefs://"+repoName+"/ ", false, false, vars)
fmt.Println("itamar testing", str)
// Commit changes to branch
runCmd(t, Lakectl()+" commit lakefs://"+vars["REPO"]+"/"+vars["BRANCH"]+" --allow-empty-message -m \" \"", false, false, vars)

RunCmdAndVerifyFailureContainsText(t, Lakectl()+" fs upload -s files/ro_1k lakefs://"+vars["REPO"]+"/"+vars["BRANCH"]+"/"+"fail_file.txt", false, "cannot write to protected branch", vars)
RunCmdAndVerifyContainsText(t, Lakectl()+" local list", false, repoName+"/"+vars["BRANCH"], vars)

RunCmdAndVerifyFailureContainsText(t, Lakectl()+" local commit -m test "+dataDir, false, "cannot write to protected branch", vars)
//runCmd(t, Lakectl()+" branch-protect delete lakefs://"+repoName+"/ \"*\"", false, false, vars)

Expand Down

0 comments on commit c6c2c9a

Please sign in to comment.