Skip to content

Commit

Permalink
SHIBUI-1335
Browse files Browse the repository at this point in the history
Added scripts for creating filters within each metadata provider type.
Note that current scripts do not exercise filters with "script" types
due to a bug. This will be addressed in a future PR.
  • Loading branch information
Bill Smith committed Aug 6, 2019
1 parent 8f259db commit 7b6ea7c
Show file tree
Hide file tree
Showing 5 changed files with 2,481 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ class SeleniumSIDETest extends Specification {
// 'Create and Delete Name ID Format Regex Filter' | '/CreateAndDeleteNameIDFormatRegexFilter.side'
// 'Create and Delete Name ID Format Script Filter' | '/CreateAndDeleteNameIDFormatScriptFilter.side'
// 'Create and Modify Filter Order' | '/ModifyFilterOrder.side'
// 'SHIBUI-1281: Metadata Source Dashboard' | '/SHIBUI-1281.side'
// 'SHIBUI-1311: Metadata Provider Dashboard' | '/SHIBUI-1311.side'
// 'SHIBUI-950: Metadata Source from XML w/ digest' | '/SHIBUI-950.side'
// 'SHIBUI-1352: Create LocalDynamic provider' | '/SHIBUI-1352-1.side'
// 'SHIBUI-1352: Create FileSystem provider' | '/SHIBUI-1352-2.side'
// 'SHIBUI-1333: Verify metadata source configuration' | '/SHIBUI-1333.side'
// 'SHIBUI-1334: Verify metadata source versioning' | '/SHIBUI-1334-1.side'
// 'SHIBUI-1334: Verify metadata provider versioning' | '/SHIBUI-1334-2.side'
'SHIBUI-1281: Metadata Source Dashboard' | '/SHIBUI-1281.side'
'SHIBUI-1311: Metadata Provider Dashboard' | '/SHIBUI-1311.side'
'SHIBUI-950: Metadata Source from XML w/ digest' | '/SHIBUI-950.side'
'SHIBUI-1352: Create LocalDynamic provider' | '/SHIBUI-1352-1.side'
'SHIBUI-1352: Create FileSystem provider' | '/SHIBUI-1352-2.side'
'SHIBUI-1333: Verify metadata source configuration' | '/SHIBUI-1333.side'
'SHIBUI-1334: Verify metadata source versioning' | '/SHIBUI-1334-1.side'
'SHIBUI-1334: Verify metadata provider versioning' | '/SHIBUI-1334-2.side'
'SHIBUI-1335: Verify File Backed HTTP Metadata Provider Filters' | '/SHIBUI-1335-1.side'
'SHIBUI-1335: Verify Filesystem Metadata Provider Filters' | '/SHIBUI-1335-2.side'
'SHIBUI-1335: Local Dynamic Metadata Provider Filters' | '/SHIBUI-1335-3.side'
'SHIBUI-1335: Dynamic HTTP Metadata Provider Filters' | '/SHIBUI-1335-4.side'
}
}

40 changes: 36 additions & 4 deletions backend/src/integration/resources/SHIBUI-1335-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
["xpath=//a[2]", "xpath:position"]
],
"value": ""
}, {
"id": "7a42de04-995f-45aa-ba3f-095900a564ec",
"comment": "",
"command": "waitForElementVisible",
"target": "id=/name",
"targets": [],
"value": "10000"
}, {
"id": "b2725ef6-b394-4f87-a2a5-031be085cedb",
"comment": "",
Expand All @@ -91,12 +98,12 @@
"id": "ca36b018-a4df-43d1-9fbd-973d6653d3e0",
"comment": "",
"command": "select",
"target": "id=/@type",
"target": "id=/type",
"targets": [
["id=/@type", "id"],
["id=/type", "id"],
["name=field2", "name"],
["css=#\\/\\@type", "css:finder"],
["xpath=//select[@id='/@type']", "xpath:attributes"],
["css=#\\/type", "css:finder"],
["xpath=//select[@id='/type']", "xpath:attributes"],
["xpath=//select", "xpath:position"]
],
"value": "label=FileBackedHttpMetadataProvider"
Expand Down Expand Up @@ -551,6 +558,13 @@
["xpath=//option[contains(.,'EntityAttributes')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8a52ad88-b583-41b7-92a6-bdb185b03a06",
"comment": "",
"command": "waitForElementVisible",
"target": "id=/name",
"targets": [],
"value": "10000"
}, {
"id": "b1c779b1-d3ed-47cc-bc88-e5c280161c32",
"comment": "",
Expand Down Expand Up @@ -1067,6 +1081,13 @@
["xpath=//option[contains(.,'NameIDFormat')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4a663db9-9f10-4b12-9cb9-61aa01ecc0c0",
"comment": "",
"command": "waitForElementVisible",
"target": "id=/name",
"targets": [],
"value": "10000"
}, {
"id": "92fdc836-2479-4faa-9e3d-447f5b82cc11",
"comment": "",
Expand Down Expand Up @@ -1328,6 +1349,17 @@
["xpath=//button[contains(.,'Save')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "c28d683a-552d-4752-aa89-465e33d60887",
"comment": "",
"command": "waitForElementVisible",
"target": "css=tr:nth-child(2) > .td-lg:nth-child(4)",
"targets": [
["css=tr:nth-child(2) > .td-lg:nth-child(4)", "css:finder"],
["xpath=//tr[2]/td[4]", "xpath:position"],
["xpath=//td[contains(.,'NameIDFormat')]", "xpath:innerText"]
],
"value": "10000"
}, {
"id": "100902ee-6d6e-4148-a69b-b37746a4ad6e",
"comment": "",
Expand Down
Loading

0 comments on commit 7b6ea7c

Please sign in to comment.