IT with aws client mock

This commit is contained in:
kkb0318
2024-04-09 21:40:09 +09:00
parent 0f3323b2fc
commit d99f64f148
7 changed files with 60 additions and 240 deletions
+1 -1
View File
@@ -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}
}