Class InterfolioMockServiceHandler

java.lang.Object
edu.internet2.middleware.grouper.j2ee.MockServiceHandler
edu.internet2.middleware.grouper.app.interfolio.InterfolioMockServiceHandler

public class InterfolioMockServiceHandler extends MockServiceHandler
Simulates the Interfolio API for tests. Both the IAM host and the byc host point at this one mock (URL /grouper/mockServices/interfolio/...); requests are dispatched by HTTP method + path. Implemented (the operations that work with our credentials): POST /iam/{tid}/users -> createUser PUT /iam/{tid}/users/{pid} -> updateUser GET /byc/core/tenure/{tid}/institutions/{tid}/users/search -> searchUsers GET /byc/core/tenure/{tid}/users/csv_report -> csvReport POST /byc-tenure|byc-search/{tid}/users/{pid}/subscribe -> subscribe PUT /byc-tenure|byc-search/{tid}/users/{pid}/unsubscribe -> unsubscribe