|
@@ -14,7 +14,9 @@
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
# See the License for the specific language governing permissions and
|
|
# See the License for the specific language governing permissions and
|
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
|
|
|
+
|
|
|
import os.path
|
|
import os.path
|
|
|
|
|
+import sys
|
|
|
|
|
|
|
|
from django.utils.translation import ugettext_lazy as _t, ugettext as _
|
|
from django.utils.translation import ugettext_lazy as _t, ugettext as _
|
|
|
|
|
|
|
@@ -121,8 +123,9 @@ def config_validator(user):
|
|
|
|
|
|
|
|
res = []
|
|
res = []
|
|
|
try:
|
|
try:
|
|
|
- server = dbms.get(user)
|
|
|
|
|
- server.get_databases()
|
|
|
|
|
|
|
+ if not 'test' in sys.argv: # Avoid tests hanging
|
|
|
|
|
+ server = dbms.get(user)
|
|
|
|
|
+ server.get_databases()
|
|
|
except:
|
|
except:
|
|
|
res.append((NICE_NAME, _("The app won't work without a running Beeswax/HiveServer2 server and/or Hive Metastore.")))
|
|
res.append((NICE_NAME, _("The app won't work without a running Beeswax/HiveServer2 server and/or Hive Metastore.")))
|
|
|
|
|
|