def test_get_inquiry_mask(self):
        """Ensure Inquiry responses are masked when retrieved via ActionExecution GET

        The reason this test is included here is so that we can verify that the ActionExecution
        GET function properly masks fields within an Inquiry response.
        TODO(mierdin): This test, and the constants it uses, should not be necessary here
        once Inquiries get their own data model.
        """

        post_resp = self._do_post(LIVE_ACTION_INQUIRY)
        actionexecution_id = self._get_actionexecution_id(post_resp)
        get_resp = self._do_get_one(actionexecution_id)
        self.assertEqual(get_resp.status_int, 200)

        resp = json.loads(get_resp.body)
        self.assertEqual(
            resp["result"]["response"]["secondfactor"], MASKED_ATTRIBUTE_VALUE
        )

        post_resp = self._do_post(LIVE_ACTION_INQUIRY)
        actionexecution_id = self._get_actionexecution_id(post_resp)
        get_resp = self._do_get_one(actionexecution_id, params={"show_secrets": True})
        self.assertEqual(get_resp.status_int, 200)

        resp = json.loads(get_resp.body)
        self.assertEqual(resp["result"]["response"]["secondfactor"], "supersecretvalue")
Ensure Inquiry responses are masked when retrieved via ActionExecution GET

        The reason this test is included here is so that we can verify that the ActionExecution
        GET function properly masks fields within an Inquiry response.
        TODO(mierdin): This test, and the constants it uses, should not be necessary here
        once Inquiries get their own data model.
        
st2api/tests/unit/controllers/v1/test_executions.py