Skip to content

Commit

Permalink
Move api-paste file to common code location
Browse files Browse the repository at this point in the history
Change-Id: I33c8055245de5821fd8a605d4ea6bf388a01637e
  • Loading branch information
jd committed Jan 17, 2017
1 parent 30f4bfa commit 7b0435a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
5 changes: 4 additions & 1 deletion aodh/api/__init__.py
Expand Up @@ -12,13 +12,16 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os

from oslo_config import cfg

# Register options for the service
OPTS = [
cfg.StrOpt('paste_config',
default="api_paste.ini",
default=os.path.abspath(
os.path.join(
os.path.dirname(__file__), "api-paste.ini")),
help="Configuration file for WSGI definition of API."),
cfg.StrOpt(
'auth_mode',
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions aodh/tests/functional/api/__init__.py
Expand Up @@ -44,9 +44,6 @@ def setUp(self):
self.CONF.set_override('policy_file',
os.path.abspath('etc/aodh/policy.json'),
group='oslo_policy', enforce_type=True)
self.CONF.set_override('paste_config',
os.path.abspath('etc/aodh/api_paste.ini'),
group='api', enforce_type=True)
self.CONF.set_override('auth_mode', None, group='api')
self.app = webtest.TestApp(app.load_app(self.CONF))

Expand Down
5 changes: 0 additions & 5 deletions aodh/tests/functional/gabbi/fixtures.py
Expand Up @@ -81,11 +81,6 @@ def start_fixture(self):
'aodh/tests/open-policy.json'),
group='oslo_policy',
enforce_type=True)
conf.set_override(
'paste_config',
os.path.abspath('etc/aodh/api_paste.ini'),
group='api',
)
conf.set_override('auth_mode', None, group='api')

parsed_url = urlparse.urlparse(db_url)
Expand Down
1 change: 0 additions & 1 deletion devstack/plugin.sh
Expand Up @@ -173,7 +173,6 @@ function configure_aodh {
cp $AODH_DIR/etc/aodh/policy.json $AODH_CONF_DIR
iniset $AODH_CONF oslo_policy policy_file $AODH_CONF_DIR/policy.json

cp $AODH_DIR/etc/aodh/api_paste.ini $AODH_CONF_DIR
cp $AODH_DIR/etc/aodh/aodh-config-generator.conf $AODH_CONF_DIR

# The alarm evaluator needs these options to call gnocchi/ceilometer APIs
Expand Down

0 comments on commit 7b0435a

Please sign in to comment.