Project

Profile

Help

Issue #672

closed

./run-tests.py drops all data in production database named in server.conf (yikes)

Added by bmbouter about 9 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.6 Beta
Platform Release:
2.6.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Running ./run-tests.py will drop your database!

To reproduce:
1. Checkout any branch that contains the commit 70274cf9be047708da930b25f93c9d3f4feb7f78. At the time of this writing that includes 2.6-dev, 2.6-testing, and master.

2. Have your server.conf be unmodified (ie: it should use pulp_database)

3. Run ./run-tests.py

4. Observe that afterwards all of your collections will have their documents missing.

Expected behavior: That all pulp tests would use pulp_unittest as the database and not even interact with the database named in server.conf

+ This bug was cloned from Bugzilla Bug #1184187 +


Files

2c59e9b5aa8af366813e2026eb5ea7e6 (1009 Bytes) 2c59e9b5aa8af366813e2026eb5ea7e6 bmbouter, 03/01/2015 12:20 AM

Also available in: Atom PDF