Skip to content

Commit

Permalink
yalla
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jan 13, 2025
1 parent 9d0d3c1 commit c7bb775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions esti/lakectl_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func TestLakectlLocal_RmcommitProtetedBranch(t *testing.T) {
require.NoError(t, fd.Close())
dataDir, err := os.MkdirTemp(tmpDir, "")
require.NoError(t, err)
file := "ro_1k.0"
file := "data/ro/ro_1k.0"

vars := map[string]string{
"REPO": repoName,
Expand All @@ -546,8 +546,6 @@ func TestLakectlLocal_RmcommitProtetedBranch(t *testing.T) {
RunCmdAndVerifyContainsText(t, Lakectl()+" local clone lakefs://"+vars["REPO"]+"/"+vars["BRANCH"]+"/ "+vars["LOCAL_DIR"], false, "Successfully cloned lakefs://${REPO}/${REF}/ to ${LOCAL_DIR}.", vars)
RunCmdAndVerifyContainsText(t, Lakectl()+" local status "+vars["LOCAL_DIR"], false, "No diff found", vars)

RunCmdAndVerifyContainsText(t, Lakectl()+" local status "+vars["LOCAL_DIR"], false, "local ║ added ║ test.txt", vars)

// Try delete file from local dir and then commit
require.NoError(t, os.Remove(filepath.Join(dataDir, vars["FILE_PATH"])))
RunCmdAndVerifyFailureContainsText(t, Lakectl()+" local commit -m test "+vars["LOCAL_DIR"], false, "cannot write to protected branch", vars)
Expand Down
2 changes: 1 addition & 1 deletion esti/lakectl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ func TestLakectlFsUpload_protectedBranch(t *testing.T) {
func TestLakectlFsRm_protectedBranch(t *testing.T) {
repoName := generateUniqueRepositoryName()
storage := generateUniqueStorageNamespace(repoName)
file := "ro_1k.0"
file := "data/ro_1k.0"
vars := map[string]string{
"REPO": repoName,
"STORAGE": storage,
Expand Down

0 comments on commit c7bb775

Please sign in to comment.