mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-17 00:23:52 +00:00
IT with aws client mock
This commit is contained in:
@@ -13,7 +13,7 @@ type AwsIdP struct {
|
||||
}
|
||||
|
||||
func NewAwsIdP(awsConfig client.AwsClient, issuerMeta selfhosted.OIDCIssuerMeta) (*AwsIdP, error) {
|
||||
iamClient := awsConfig.IamCient()
|
||||
iamClient := awsConfig.IamClient()
|
||||
return &AwsIdP{iamClient, issuerMeta}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ type S3IdPDiscovery struct {
|
||||
// NewS3IdPDiscovery initializes a new instance of S3IdPCreator with the specified AWS region and bucket name.
|
||||
// This function attempts to create an AWS client configured for the specified region.
|
||||
func NewS3IdPDiscovery(awsConfig client.AwsClient, region, bucketName string) *S3IdPDiscovery {
|
||||
s3Client := awsConfig.S3Cient(region, bucketName)
|
||||
s3Client := awsConfig.S3Client(region, bucketName)
|
||||
return &S3IdPDiscovery{s3Client}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user