@@ -0,0 +1,1958 @@
+# Licensed to the StackStorm, Inc ('StackStorm') under one or more%0A# contributor license agreements.  See the NOTICE file distributed with%0A# this work for additional information regarding copyright ownership.%0A# The ASF licenses this file to You under the Apache License, Version 2.0%0A# (the %22License%22); you may not use this file except in compliance with%0A# the License.  You may obtain a copy of the License at%0A#%0A#     http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0Afrom tests import FunctionalTest%0A%0A__all__ = %5B%0A    'PackConfigsControllerTestCase'%0A%5D%0A%0A%0Aclass PackConfigsControllerTestCase(FunctionalTest):%0A    register_packs = True%0A    register_pack_configs = True%0A%0A    def test_get_all(self):%0A        resp = self.app.get('/v1/configs')%0A        self.assertEqual(resp.status_int, 200)%0A        self.assertEqual(len(resp.json), 2, '/v1/configs did not return all configs.')%0A%0A    def test_get_one_success(self):%0A        resp = self.app.get('/v1/configs/dummy_pack_1')%0A        self.assertEqual(resp.status_int, 200)%0A        self.assertEqual(resp.json%5B'pack'%5D, 'dummy_pack_1')%0A        self.assertEqual(resp.json%5B'values'%5D%5B'api_key'%5D, '%7B%7Buser.api_key%7D%7D')%0A        self.assertEqual(resp.json%5B'values'%5D%5B'region'%5D, 'us-west-1')%0A%0A    def test_get_one_pack_config_doesnt_exist(self):%0A        # Pack exists, config doesnt%0A        resp = self.app.get('/v1/configs/dummy_pack_2',%0A                            expect_errors=True)%0A        self.assertEqual(resp.status_int, 404)%0A%0A        # Pack doesn't exist%0A        resp = self.app.get('/v1/configs/pack_doesnt_exist',%0A                            expect_errors=True)%0A        self.assertEqual(resp.status_int, 404)%0A

Add some initial tests for pack configs API endpoints.