Skip to content

Commit

Permalink
testing list
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jan 12, 2025
1 parent 72d105e commit 230aff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esti/lakectl_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ func TestLakectlLocal_commitProtetedBranch(t *testing.T) {

runCmd(t, Lakectl()+" branch create lakefs://"+repoName+"/"+vars["BRANCH"]+" --source lakefs://"+repoName+"/"+mainBranch, false, false, vars)
localCreateTestData(t, vars, append(objects, deleted))
runCmd(t, Lakectl()+" branch-protect add lakefs://"+repoName+"/ "+vars["BRANCH"], false, false, vars)
runCmd(t, Lakectl()+" branch-protect add lakefs://"+repoName+"/ *", false, false, vars)

RunCmdAndVerifyContainsText(t, Lakectl()+" local clone lakefs://"+repoName+"/"+vars["BRANCH"]+"/ "+dataDir, false, "Successfully cloned lakefs://${REPO}/${REF}/ to ${LOCAL_DIR}.", vars)

Expand All @@ -547,12 +547,12 @@ func TestLakectlLocal_commitProtetedBranch(t *testing.T) {
require.NoError(t, fd.Close())
RunCmdAndVerifyContainsText(t, Lakectl()+" local status "+dataDir, false, "local ║ added ║ test.txt", vars)
}
runCmdAndVerifyContainsText(t, Lakectl()+" branch-protect list lakefs://"+repoName+"/ ", false, false, vars["BRANCH"], vars)
//runCmdAndVerifyContainsText(t, Lakectl()+" branch-protect list lakefs://"+repoName+"/ ", false, false, vars["BRANCH"], vars)
str := runCmd(t, Lakectl()+" branch-protect list lakefs://"+repoName+"/ ", false, false, vars)
fmt.Println("itamar testing", str)
// Commit changes to branch
RunCmdAndVerifyFailureContainsText(t, Lakectl()+" local commit -m test "+dataDir, false, "cannot write to protected branch", vars)
runCmd(t, Lakectl()+" branch-protect delete lakefs://"+repoName+"/ "+vars["BRANCH"], false, false, vars)
runCmd(t, Lakectl()+" branch-protect delete lakefs://"+repoName+"/ *", false, false, vars)

})
}
Expand Down

0 comments on commit 230aff5

Please sign in to comment.