Commit 19585f3
authored
fix(DataStore): Fallback when missing auth rule providers to API requirements (#1465)
* fix(DataStore): Fallback when missing auth rule providers to API requirements
* address PR comments and add unit tests
* integ test updates
* fix MockAPIPlugin
* fix conflict API unit test with Amplify.reset1 parent e7f9c8f commit 19585f3
File tree
16 files changed
+438
-28
lines changed- Amplify.xcodeproj
- AmplifyPlugins
- API
- APICategoryPlugin.xcodeproj
- AWSAPICategoryPluginTests
- Configuration
- AWSAPICategoryPlugin
- Core
- AWSPluginsCoreTests/Auth
- AWSPluginsCore
- API
- Auth
- DataStore
- AWSDataStoreCategoryPluginAuthIntegrationTests
- DefaultAuth
- MultiAuth
- AWSDataStoreCategoryPluginTests/Sync
- AWSDataStoreCategoryPlugin/Storage
- AmplifyTestCommon/Mocks
16 files changed
+438
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
848 | 850 | | |
849 | 851 | | |
850 | 852 | | |
| 853 | + | |
| 854 | + | |
851 | 855 | | |
852 | 856 | | |
853 | 857 | | |
| |||
2224 | 2228 | | |
2225 | 2229 | | |
2226 | 2230 | | |
| 2231 | + | |
2227 | 2232 | | |
2228 | 2233 | | |
2229 | 2234 | | |
| |||
2523 | 2528 | | |
2524 | 2529 | | |
2525 | 2530 | | |
2526 | | - | |
2527 | 2531 | | |
| 2532 | + | |
| 2533 | + | |
2528 | 2534 | | |
2529 | 2535 | | |
2530 | 2536 | | |
| |||
4781 | 4787 | | |
4782 | 4788 | | |
4783 | 4789 | | |
| 4790 | + | |
4784 | 4791 | | |
4785 | 4792 | | |
4786 | 4793 | | |
| |||
4842 | 4849 | | |
4843 | 4850 | | |
4844 | 4851 | | |
| 4852 | + | |
4845 | 4853 | | |
4846 | 4854 | | |
4847 | 4855 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
| 349 | + | |
| 350 | + | |
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| |||
945 | 949 | | |
946 | 950 | | |
947 | 951 | | |
| 952 | + | |
948 | 953 | | |
949 | 954 | | |
950 | 955 | | |
| |||
1191 | 1196 | | |
1192 | 1197 | | |
1193 | 1198 | | |
| 1199 | + | |
1194 | 1200 | | |
1195 | 1201 | | |
1196 | 1202 | | |
| |||
2545 | 2551 | | |
2546 | 2552 | | |
2547 | 2553 | | |
| 2554 | + | |
2548 | 2555 | | |
2549 | 2556 | | |
2550 | 2557 | | |
| |||
2610 | 2617 | | |
2611 | 2618 | | |
2612 | 2619 | | |
| 2620 | + | |
2613 | 2621 | | |
2614 | 2622 | | |
2615 | 2623 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments