clienttest

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package clienttest provides utilities for mocking the App Store Connect client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is a mock type that implements client.Client.

func (*Client) AssignBetaGroups

func (c *Client) AssignBetaGroups(ctx *context.Context, appID string, buildID string, groups []config.BetaGroup) error

AssignBetaGroups mocks assigning beta groups to a beta build.

func (*Client) AssignBetaTesters

func (c *Client) AssignBetaTesters(ctx *context.Context, appID string, buildID string, testers []config.BetaTester) error

AssignBetaTesters mocks assigning beta testers to a beta build.

func (*Client) CreateVersionIfNeeded

func (c *Client) CreateVersionIfNeeded(ctx *context.Context, appID string, buildID string, config config.Version) (*asc.AppStoreVersion, error)

CreateVersionIfNeeded mocks creating a version, if one does not exist for the tag, and returning its model.

func (*Client) EnablePhasedRelease

func (c *Client) EnablePhasedRelease(ctx *context.Context, versionID string) error

EnablePhasedRelease mocks enabling phased release for a version.

func (*Client) GetAppForBundleID

func (c *Client) GetAppForBundleID(ctx *context.Context, bundleID string) (*asc.App, error)

GetAppForBundleID mocks returning an app for a given bundle ID.

func (*Client) GetAppInfo

func (c *Client) GetAppInfo(ctx *context.Context, appID string) (*asc.AppInfo, error)

GetAppInfo mocks returning an app info corresponding to an app.

func (*Client) GetBuild

func (c *Client) GetBuild(ctx *context.Context, app *asc.App) (*asc.Build, error)

GetBuild mocks returning the latest valid build corresponding to an app.

func (*Client) Project

func (c *Client) Project() (*config.Project, error)

Project mocks returning a project built from API values.

func (*Client) ReleaseForAppIsInitial

func (c *Client) ReleaseForAppIsInitial(ctx *context.Context, appID string) (bool, error)

ReleaseForAppIsInitial mocks returning whether or not an app has released on the App Store before.

func (*Client) SubmitApp

func (c *Client) SubmitApp(ctx *context.Context, versionID string) error

SubmitApp mocks submitting a version to the App Store.

func (*Client) SubmitBetaApp

func (c *Client) SubmitBetaApp(ctx *context.Context, buildID string) error

SubmitBetaApp mocks submitting an app to Testflight.

func (*Client) UpdateApp

func (c *Client) UpdateApp(ctx *context.Context, appID string, appInfoID string, versionID string, config config.App) error

UpdateApp mocks updating properties for an app.

func (*Client) UpdateAppLocalizations

func (c *Client) UpdateAppLocalizations(ctx *context.Context, appID string, config config.AppLocalizations) error

UpdateAppLocalizations mocks updating localized properties for an app info.

func (*Client) UpdateBetaAppLocalizations

func (c *Client) UpdateBetaAppLocalizations(ctx *context.Context, appID string, config config.TestflightLocalizations) error

UpdateBetaAppLocalizations mocks updating localized properties for a beta app.

func (*Client) UpdateBetaBuildDetails

func (c *Client) UpdateBetaBuildDetails(ctx *context.Context, buildID string, config config.Testflight) error

UpdateBetaBuildDetails mocks updating beta build details for a beta build.

func (*Client) UpdateBetaBuildLocalizations

func (c *Client) UpdateBetaBuildLocalizations(ctx *context.Context, buildID string, config config.TestflightLocalizations) error

UpdateBetaBuildLocalizations mocks updating localized properties for a beta build.

func (*Client) UpdateBetaLicenseAgreement

func (c *Client) UpdateBetaLicenseAgreement(ctx *context.Context, appID string, config config.Testflight) error

UpdateBetaLicenseAgreement mocks updating the beta license agreement for an app.

func (*Client) UpdateBetaReviewDetails

func (c *Client) UpdateBetaReviewDetails(ctx *context.Context, appID string, config config.ReviewDetails) error

UpdateBetaReviewDetails mocks updating review details for a beta app.

func (*Client) UpdateIDFADeclaration

func (c *Client) UpdateIDFADeclaration(ctx *context.Context, versionID string, config config.IDFADeclaration) error

UpdateIDFADeclaration mocks updating the IDFA declaration for a version.

func (*Client) UpdateReviewDetails

func (c *Client) UpdateReviewDetails(ctx *context.Context, versionID string, config config.ReviewDetails) error

UpdateReviewDetails mocks updating review details for a version.

func (*Client) UpdateVersionLocalizations

func (c *Client) UpdateVersionLocalizations(ctx *context.Context, versionID string, config config.VersionLocalizations) error

UpdateVersionLocalizations mocks updating localized properties for a version.

func (*Client) UploadRoutingCoverage

func (c *Client) UploadRoutingCoverage(ctx *context.Context, versionID string, config config.File) error

UploadRoutingCoverage mocks uploading a routing coverage file for a version.

type Credentials

type Credentials struct {
	// contains filtered or unexported fields
}

Credentials mocks the credentials store used by the client.

func (*Credentials) Client

func (c *Credentials) Client() *http.Client

Client returns an http.Client for the mock Credentials instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL