2025-02-26 16:47:05 +00:00
|
|
|
package mock
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/fleetdm/fleet/v4/server/mdm/android"
|
|
|
|
|
"google.golang.org/api/androidmanagement/v1"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (p *Proxy) InitCommonMocks() {
|
2025-02-28 21:06:52 +00:00
|
|
|
p.EnterpriseDeleteFunc = func(ctx context.Context, enterpriseID string) error {
|
2025-02-26 16:47:05 +00:00
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
p.SignupURLsCreateFunc = func(callbackURL string) (*android.SignupDetails, error) {
|
|
|
|
|
return &android.SignupDetails{}, nil
|
|
|
|
|
}
|
|
|
|
|
p.EnterprisesCreateFunc = func(ctx context.Context, req android.ProxyEnterprisesCreateRequest) (string, string, error) {
|
|
|
|
|
return "enterpriseName", "projects/project/topics/topic", nil
|
|
|
|
|
}
|
|
|
|
|
p.EnterprisesPoliciesPatchFunc = func(enterpriseID string, policyName string, policy *androidmanagement.Policy) error {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|