Convert cleanup with addClassResourceCleanup in endpoint test

This patch is to use addClassResourceCleanup in test_endpoints.py
in place of resource_cleanup.

Change-Id: I5cd4e471987f4dab3fb636ef307c0d4ba8fd8a4c
1 file changed