Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2635

GatewayAppFuncTest is flaky

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Tests
    • None

    Description

      Typical failure look like:

      [ERROR]   GatewayAppFuncTest.testMultiApps:338 1 expectation failed.
      Expected status code <200> but was <404>. 

      It happen in test which are running right after testDeploymentCleanup or 

      testDefaultTopology. These tests restart the gateway service during the test run.

      The subsequent test overwrite the topology file which are used by all tests but file access date granularity is 1 second (msec part is always 000, this is likley FS specific) therefore the topology is never redeployed.

       

      Adding 

      FileUtils.cleanDirectory(new File(config.getGatewayTopologyDir())); in between restarts seems to solve the issue.

      Attachments

        Issue Links

          Activity

            People

              amagyar Attila Magyar
              amagyar Attila Magyar
              Votes:
              1 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m