Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-57795

[CBM] TestAssertDatasetExistsUnknownError always fails on MacOS

    XMLWordPrintable

Details

    • 0

    Description

      What is the problem?
      The test TestAssertDatasetExistsUnknownError in utils/import_test.go always fails on my Mac and, I suspect, MacOS generally:

      --- FAIL: TestAssertDatasetExistsUnknownError (0.00s)
          import_test.go:24:
                      Error Trace:    /Users/mathall/Documents/code/cb_enterprise_src/backup/utils/import_test.go:24
                      Error:          Not equal:
                                      expected: "failed to check if dataset /root/to/file exists: stat /root/to/file: permission denied"
                                      actual  : "dataset /root/to/file does not exist"
       
                                      Diff:
                                      --- Expected
                                      +++ Actual
                                      @@ -1 +1 @@
                                      -failed to check if dataset /root/to/file exists: stat /root/to/file: permission denied
                                      +dataset /root/to/file does not exist
                      Test:           TestAssertDatasetExistsUnknownError
      

      I believe this is because /root does not have restricted permissions on MacOS as it does not exist. 

      Attachments

        For Gerrit Dashboard: MB-57795
        # Subject Branch Project Status CR V

        Activity

          People

            Matt.Hall Matt Hall
            Matt.Hall Matt Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty