Skip to content

Commit fe22389

Browse files
committed
chore: fix GraphQLWithIAMIntegrationTests
1 parent 3994439 commit fe22389

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

AmplifyPlugins/API/Tests/APIHostApp/AWSAPIPluginGraphQLIAMTests/GraphQLWithIAMIntegrationTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class GraphQLWithIAMIntegrationTests: XCTestCase {
1818

1919
let username = "integTest\(UUID().uuidString)"
2020
let password = "P123@\(UUID().uuidString)"
21+
let email = UUID().uuidString + "@" + UUID().uuidString + ".com"
2122

2223
override func setUp() async throws {
2324
do {
@@ -205,7 +206,9 @@ class GraphQLWithIAMIntegrationTests: XCTestCase {
205206
}
206207

207208
func signUp() async throws {
208-
let signUpResult = try await Amplify.Auth.signUp(username: username, password: password)
209+
let userAttributes = [AuthUserAttribute(.email, value: email)]
210+
let options = AuthSignUpRequest.Options(userAttributes: userAttributes)
211+
let signUpResult = try await Amplify.Auth.signUp(username: username, password: password, options: options)
209212
guard signUpResult.isSignUpComplete else {
210213
XCTFail("Sign up successful but not complete: \(signUpResult)")
211214
return

0 commit comments

Comments
 (0)