def setUp(self):
        super(NRNotificationChannelsTests, self).setUp()
        self.channels = NotificationChannels(api_key='dummy_key')

        self.list_response = {
            "channels": [{
                "id": 111222,
                "type": "user",
                "name": "Some User",
                "links": {
                    "policy_ids": []
                },
                "configuration": {
                    "user": 222333
                }
            }]
        }

        self.single_response = {'channels': self.list_response['channels'][0]}
Ejemplo n.º 2
0
    def setUp(self):
        super(NRNotificationChannelsTests, self).setUp()
        self.channels = NotificationChannels(api_key='dummy_key')

        self.list_response = {
            "notification_channels": [
                {
                    "id": 111222,
                    "type": "user",
                    "downtime_only": False,
                    "mobile_alerts": False,
                    "email_alerts": True,
                    "links": {
                        "user": 222333
                    }
                }
            ]
        }

        self.show_response = {
            'notification_channel': self.list_response['notification_channels'][0]
        }