Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1600

Unify temporary directory creation in tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.11.0
    • None

    Description

      There are at least two ways to create a temporary directory in tests (method(s) in TestController and a helper in TestUtils.h). Moreover these require a modifiable buffer which makes them cumbersome to use (we introduce a single-use format variable most of the time). We should change all directory creation to use a function taking 'const char*' or 'const char(&)[N]'

      PR: https://github.com/apache/nifi-minifi-cpp/pull/1139 – I kept the simplest version taking no arguments at all, as I don't think we really need to control what the temporary files are called, as long as their names are unique.

      Attachments

        Activity

          People

            fgerlits Ferenc Gerlits
            adebreceni Adam Debreceni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h