Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-8628

testDefaultGcpTempLocationDoesNotExist is environment-dependent

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • Not applicable
    • testing
    • None

    Description

      It appears the test is making some invalid assumption about the environment's gcloud setup. This can be avoided by properly mocking out the environment.
       
      java.lang.AssertionError:
      Expected: (an instance of java.lang.IllegalArgumentException and exception with message a string containing "Error constructing default value for gcpTempLocation: tempLocation is not a valid GCS path" and exception with cause exception with message a string containing "Output path does not exist or is not writeable")
           but: exception with cause exception with message a string containing "Output path does not exist or is not writeable" cause message was "Unable to verify that GCS bucket gs://does exists."
      Stacktrace was: java.lang.IllegalArgumentException: Error constructing default value for gcpTempLocation: tempLocation is not a valid GCS path, gs://does/not/exist. 
       
       

      https://lists.apache.org/thread.html/8954a378c2e0451b8ddb3ba9ef7ce368af3086a2f217434e81168efb@%3Cdev.beam.apache.org%3E

      Attachments

        Issue Links

          Activity

            People

              ibzib Kyle Weaver
              ibzib Kyle Weaver
              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 - 20m
                  20m