-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge of #881. Thanks @MathijsVerbeeck
- Loading branch information
Showing
108 changed files
with
394 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
351 changes: 212 additions & 139 deletions
351
src/sdk/PnP.Core.Test/SharePoint/ContentTypeHubTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...SharePoint/MockData/ContentTypeHubTests/AddContentTypeAsDocumentSet-0-00000.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"6f9747a0-6011-4000-4c6b-adcf880df962","SPClientServiceRequestDuration":"10","X-SharePointHealthScore":"2","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022RegionalSettings\u0022:{\u0022TimeZone\u0022:{\u0022Description\u0022:\u0022(UTC-08:00) Pacific Time (US and Canada)\u0022,\u0022Id\u0022:13,\u0022Information\u0022:{\u0022Bias\u0022:480,\u0022DaylightBias\u0022:-60,\u0022StandardBias\u0022:0}},\u0022AdjustHijriDays\u0022:0,\u0022AlternateCalendarType\u0022:0,\u0022AM\u0022:\u0022AM\u0022,\u0022CalendarType\u0022:1,\u0022Collation\u0022:25,\u0022CollationLCID\u0022:2070,\u0022DateFormat\u0022:0,\u0022DateSeparator\u0022:\u0022/\u0022,\u0022DecimalSeparator\u0022:\u0022.\u0022,\u0022DigitGrouping\u0022:\u00223;0\u0022,\u0022FirstDayOfWeek\u0022:0,\u0022FirstWeekOfYear\u0022:0,\u0022IsEastAsia\u0022:false,\u0022IsRightToLeft\u0022:false,\u0022IsUIRightToLeft\u0022:false,\u0022ListSeparator\u0022:\u0022,\u0022,\u0022LocaleId\u0022:1033,\u0022NegativeSign\u0022:\u0022-\u0022,\u0022NegNumberMode\u0022:1,\u0022PM\u0022:\u0022PM\u0022,\u0022PositiveSign\u0022:\u0022\u0022,\u0022ShowWeeks\u0022:false,\u0022ThousandSeparator\u0022:\u0022,\u0022,\u0022Time24\u0022:false,\u0022TimeMarkerPosition\u0022:0,\u0022TimeSeparator\u0022:\u0022:\u0022,\u0022WorkDayEndHour\u0022:1020,\u0022WorkDays\u0022:62,\u0022WorkDayStartHour\u0022:480},\u0022Id\u0022:\u0022ceb5fd80-a434-4a62-a60b-b272f10ba1df\u0022,\u0022Url\u0022:\u0022https://mathijsdev2.sharepoint.com/sites/pnpcoresdktestgroup\u0022}"} | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"baad47a0-8035-4000-396d-98bec52c5162","SPClientServiceRequestDuration":"8","X-SharePointHealthScore":"0","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022RegionalSettings\u0022:{\u0022TimeZone\u0022:{\u0022Description\u0022:\u0022(UTC-08:00) Pacific Time (US and Canada)\u0022,\u0022Id\u0022:13,\u0022Information\u0022:{\u0022Bias\u0022:480,\u0022DaylightBias\u0022:-60,\u0022StandardBias\u0022:0}},\u0022AdjustHijriDays\u0022:0,\u0022AlternateCalendarType\u0022:0,\u0022AM\u0022:\u0022AM\u0022,\u0022CalendarType\u0022:1,\u0022Collation\u0022:25,\u0022CollationLCID\u0022:2070,\u0022DateFormat\u0022:0,\u0022DateSeparator\u0022:\u0022/\u0022,\u0022DecimalSeparator\u0022:\u0022.\u0022,\u0022DigitGrouping\u0022:\u00223;0\u0022,\u0022FirstDayOfWeek\u0022:0,\u0022FirstWeekOfYear\u0022:0,\u0022IsEastAsia\u0022:false,\u0022IsRightToLeft\u0022:false,\u0022IsUIRightToLeft\u0022:false,\u0022ListSeparator\u0022:\u0022,\u0022,\u0022LocaleId\u0022:1033,\u0022NegativeSign\u0022:\u0022-\u0022,\u0022NegNumberMode\u0022:1,\u0022PM\u0022:\u0022PM\u0022,\u0022PositiveSign\u0022:\u0022\u0022,\u0022ShowWeeks\u0022:false,\u0022ThousandSeparator\u0022:\u0022,\u0022,\u0022Time24\u0022:false,\u0022TimeMarkerPosition\u0022:0,\u0022TimeSeparator\u0022:\u0022:\u0022,\u0022WorkDayEndHour\u0022:1020,\u0022WorkDays\u0022:62,\u0022WorkDayStartHour\u0022:480},\u0022Id\u0022:\u00222c99a486-d6c9-4a4b-8d6f-a9faa364c92c\u0022,\u0022Url\u0022:\u0022https://bertonline.sharepoint.com/sites/prov-2\u0022}"} |
2 changes: 1 addition & 1 deletion
2
...SharePoint/MockData/ContentTypeHubTests/AddContentTypeAsDocumentSet-0-00001.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"6f9747a0-1024-4000-7a67-c3e146205724","SPClientServiceRequestDuration":"11","X-SharePointHealthScore":"3","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022GroupId\u0022:\u00220ad55b5d-6a79-467b-ad21-d4bef7948a79\u0022,\u0022Id\u0022:\u00220f9b8f4f-0e8e-4630-bb0a-501442db9b64\u0022}"} | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"baad47a0-2043-4000-396d-9dec5649b4f0","SPClientServiceRequestDuration":"9","X-SharePointHealthScore":"3","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022GroupId\u0022:\u0022d40d729b-df60-4b57-ac8f-102595090e0a\u0022,\u0022Id\u0022:\u0022f92f9e40-1110-43ef-aa0e-0822e13fb7ba\u0022}"} |
2 changes: 1 addition & 1 deletion
2
...SharePoint/MockData/ContentTypeHubTests/AddContentTypeAsDocumentSet-0-00002.response.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...SharePoint/MockData/ContentTypeHubTests/AddContentTypeAsDocumentSet-0-00003.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"6f9747a0-808a-4000-4c6b-a2308844a81e","SPClientServiceRequestDuration":"399","X-SharePointHealthScore":"2","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"[\r{\r\u0022SchemaVersion\u0022:\u002215.0.0.0\u0022,\u0022LibraryVersion\u0022:\u002216.0.22601.12003\u0022,\u0022ErrorInfo\u0022:null,\u0022TraceCorrelationId\u0022:\u00226f9747a0-808a-4000-4c6b-a2308844a81e\u0022\r},5,{\r\u0022IsNull\u0022:false\r},6,{\r\u0022_ObjectIdentity_\u0022:\u00226f9747a0-808a-4000-4c6b-a2308844a81e|740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:21e4fbca-acce-40e9-be2c-1359cac6c5d9:web:d89551d4-d05a-4247-a401-b3e509878eca:contenttype:0x0120D520002E5AAE78D8DB1947903FC99D0979E4A5\u0022\r}\r]"} | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"bdad47a0-f013-4000-396d-9c8f3621020f","SPClientServiceRequestDuration":"405","X-SharePointHealthScore":"0","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"[\r{\r\u0022SchemaVersion\u0022:\u002215.0.0.0\u0022,\u0022LibraryVersion\u0022:\u002216.0.22601.12003\u0022,\u0022ErrorInfo\u0022:null,\u0022TraceCorrelationId\u0022:\u0022bdad47a0-f013-4000-396d-9c8f3621020f\u0022\r},5,{\r\u0022IsNull\u0022:false\r},6,{\r\u0022_ObjectIdentity_\u0022:\u0022bdad47a0-f013-4000-396d-9c8f3621020f|740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:9a65ea0b-16ce-40b2-a391-14e7ec632299:web:9c30f7cf-9c16-464f-8c99-60a5e0e88e33:contenttype:0x0120D520002E5AAE78D8DB1947903FC99D0979E4A5\u0022\r}\r]"} |
2 changes: 1 addition & 1 deletion
2
...SharePoint/MockData/ContentTypeHubTests/AddContentTypeAsDocumentSet-0-00004.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"Cache-Control":"no-store, no-cache","Transfer-Encoding":"chunked","Vary":"Accept-Encoding","Strict-Transport-Security":"max-age=31536000","request-id":"c657870e-3ca6-41ae-9fe6-f17f4e86bcb7","client-request-id":"c657870e-3ca6-41ae-9fe6-f17f4e86bcb7","x-ms-ags-diagnostic":"{\u0022ServerInfo\u0022:{\u0022DataCenter\u0022:\u0022North Europe\u0022,\u0022Slice\u0022:\u0022E\u0022,\u0022Ring\u0022:\u00224\u0022,\u0022ScaleUnit\u0022:\u0022002\u0022,\u0022RoleInstance\u0022:\u0022DU2PEPF00010811\u0022}}","OData-Version":"4.0","Date":"Wed, 15 Jun 2022 12:15:20 GMT"},"Response":"{\u0022@odata.context\u0022:\u0022https://graph.microsoft.com/v1.0/$metadata#sites(id)/$entity\u0022,\u0022id\u0022:\u0022mathijsdev2.sharepoint.com,21e4fbca-acce-40e9-be2c-1359cac6c5d9,d89551d4-d05a-4247-a401-b3e509878eca\u0022}"} | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"Cache-Control":"no-store, no-cache","Transfer-Encoding":"chunked","Vary":"Accept-Encoding","Strict-Transport-Security":"max-age=31536000","request-id":"1a11304a-193a-4a50-bf12-403c737badb2","client-request-id":"1a11304a-193a-4a50-bf12-403c737badb2","x-ms-ags-diagnostic":"{\u0022ServerInfo\u0022:{\u0022DataCenter\u0022:\u0022North Europe\u0022,\u0022Slice\u0022:\u0022E\u0022,\u0022Ring\u0022:\u00224\u0022,\u0022ScaleUnit\u0022:\u0022002\u0022,\u0022RoleInstance\u0022:\u0022DU2PEPF000105EB\u0022}}","OData-Version":"4.0","Date":"Wed, 15 Jun 2022 18:45:07 GMT"},"Response":"{\u0022@odata.context\u0022:\u0022https://graph.microsoft.com/v1.0/$metadata#sites(id)/$entity\u0022,\u0022id\u0022:\u0022bertonline.sharepoint.com,9a65ea0b-16ce-40b2-a391-14e7ec632299,9c30f7cf-9c16-464f-8c99-60a5e0e88e33\u0022}"} |
2 changes: 1 addition & 1 deletion
2
...SharePoint/MockData/ContentTypeHubTests/AddContentTypeAsDocumentSet-0-00005.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"Cache-Control":"no-store, no-cache","Transfer-Encoding":"chunked","Vary":"Accept-Encoding","Strict-Transport-Security":"max-age=31536000","request-id":"5b23e056-7649-4e17-b094-6a6294e26ce7","client-request-id":"5b23e056-7649-4e17-b094-6a6294e26ce7","x-ms-ags-diagnostic":"{\u0022ServerInfo\u0022:{\u0022DataCenter\u0022:\u0022North Europe\u0022,\u0022Slice\u0022:\u0022E\u0022,\u0022Ring\u0022:\u00224\u0022,\u0022ScaleUnit\u0022:\u0022002\u0022,\u0022RoleInstance\u0022:\u0022DU2PEPF00010811\u0022}}","OData-Version":"4.0","Date":"Wed, 15 Jun 2022 12:15:20 GMT"},"Response":"{\[email protected]\u0022:\u0022https://graph.microsoft.com/v1.0/$metadata#sites(\u0027mathijsdev2.sharepoint.com%2C21e4fbca-acce-40e9-be2c-1359cac6c5d9%2Cd89551d4-d05a-4247-a401-b3e509878eca\u0027)/contentTypes(documentSet,documentSet/sharedColumns(),documentSet/welcomePageColumns())/$entity\u0022,\u0022documentSet\u0022:{\u0022shouldPrefixNameToFile\u0022:true,\u0022welcomePageUrl\u0022:\u0022https://mathijsdev2.sharepoint.com/sites/contentTypeHub/_cts/Document set name/docsethomepage.aspx\u0022,\u0022allowedContentTypes\u0022:[{\u0022id\u0022:\u00220x0101\u0022,\u0022name\u0022:\u0022Document\u0022}],\u0022sharedColumns\u0022:[],\u0022welcomePageColumns\u0022:[]}}"} | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"Cache-Control":"no-store, no-cache","Transfer-Encoding":"chunked","Vary":"Accept-Encoding","Strict-Transport-Security":"max-age=31536000","request-id":"f72e1439-0acd-4c68-ab79-14b77378da7a","client-request-id":"f72e1439-0acd-4c68-ab79-14b77378da7a","x-ms-ags-diagnostic":"{\u0022ServerInfo\u0022:{\u0022DataCenter\u0022:\u0022North Europe\u0022,\u0022Slice\u0022:\u0022E\u0022,\u0022Ring\u0022:\u00224\u0022,\u0022ScaleUnit\u0022:\u0022002\u0022,\u0022RoleInstance\u0022:\u0022DU2PEPF000105EB\u0022}}","OData-Version":"4.0","Date":"Wed, 15 Jun 2022 18:45:07 GMT"},"Response":"{\[email protected]\u0022:\u0022https://graph.microsoft.com/v1.0/$metadata#sites(\u0027bertonline.sharepoint.com%2C9a65ea0b-16ce-40b2-a391-14e7ec632299%2C9c30f7cf-9c16-464f-8c99-60a5e0e88e33\u0027)/contentTypes(documentSet,documentSet/sharedColumns(),documentSet/welcomePageColumns())/$entity\u0022,\u0022documentSet\u0022:{\u0022shouldPrefixNameToFile\u0022:true,\u0022welcomePageUrl\u0022:\u0022https://bertonline.sharepoint.com/sites/contentTypeHub/_cts/Document set name/docsethomepage.aspx\u0022,\u0022allowedContentTypes\u0022:[{\u0022id\u0022:\u00220x0101\u0022,\u0022name\u0022:\u0022Document\u0022}],\u0022sharedColumns\u0022:[],\u0022welcomePageColumns\u0022:[]}}"} |
Oops, something went wrong.