summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/swagger/tests_swagger.py
blob: eba67c0610b1146f2c38130a20276898dab950b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2017-2018 Wind River Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT 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 unittest
from django.test import Client
from rest_framework import status


class SampleViewTest(unittest.TestCase):
    def setUp(self):
        self.client = Client()

    def tearDown(self):
        pass

    def test_sample(self):
        response = self.client.get("/api/multicloud-titaniumcloud/v0/swagger.json")
        self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
#        resp_data = response.json()
#        self.assertEqual({"status": "active"}, resp_data)
pan> hb.show_sql = true hb.idle_connection_test_period = 3600 app_display_name = EP SDK App OS # license file area files_path = /tmp #element map files element_map_file_path = app/fusionapp/files/ element_map_icon_path = app/fusionapp/icons/ #Cron Schedules have 6 required fields and 1 optional field: # Seconds Minutes Hours Day-of-Month Month Day-of-Week Year log_cron = 0 0/1 * * * ?; #sessiontimeout_feed_cron = 0 * * * * ? * # Link shown in Help menu contact_us_link = https://wiki.onap.org/display/DW/Portal # An Unique 128-bit value defined to identify a specific version # of an application deployed on a specific virtual machine. # This value must be generated and updated by the application # which is using the ECOMP SDK at the time of its deployment. # Online Unique UUID generator - https://www.uuidgenerator.net/ instance_uuid=8da691c9-987d-43ed-a358-00ac2f35685d # Application base URL has the host and app context only; a proper prefix of the on-boarded URL. # Only required for applications using FE/BE separation. For example: # app_base_url = https://www.openecomp.org/app_context/ #authenticate user server authenticate_user_server=http://todo_enter_auth_server_hostname:8383/openid-connect-server-webapp/allUsers