| Eventtype fun.
-Clears the fields tab. -Eventtype field is checked. -Save a search as an eventtype. -Search using eventtype::. -Rename that eventtype. -Search again using eventtype::. -Delete that eventtype. -Re-Clears the fields tab. | ||
| setTimeout | 120000 | |
| comment | Reset the field picker preference | |
| open | /v3/prefs/set?selectedKeys=host%20sourcetype%20source | |
| comment | Open the main interface | |
| openAndWait | / | |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 60000 | |
| type | entry | source="*access.combined.log" webdev nagios-plugins |
| select | timelineValues | value=ALL_TIME |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 60000 | |
| comment | Now save this eventtype | |
| click | menuBug | |
| waitForElementPresent | splunksMenu | 500 |
| click | saveEventType | |
| waitForElementPresent | adminPopupLayer | 5000 |
| waitForElementPresent | sbaFormElements | 5000 |
| type | //div[@id='sbaFormElements']//input[@name='name'] | nagios events test |
| click | //div[@id='adminPopupLayer']//input[@type='submit' and @value='Save'] | |
| comment | turn on eventtypes field | |
| click | allFiltersTab | |
| waitForDispatchCompleted | 120000 | |
| verifyElementPresent | //div[@id='allFiltersFilterLayer']//label[@term='eventtype'] | 120000 |
| click | //div[@id='allFiltersFilterLayer']//label[@term='eventtype'] | click the eventtype checkbox to add that to the tab row. |
| pause | 500 | |
| click | fieldApply | Click the close button to re-run the search. |
| pause | 500 | |
| waitForDispatchCompleted | 60000 | |
| pause | 500 | |
| comment | Verify that eventtype values are there inline with events and in filter tab row. | |
| assertElementPresent | //div[@id='r0']//label[.='nagios_events_test'] | |
| assertElementPresent | //div[@id='filterTabs']//div[@searchkey='eventtype'] | |
| type | entry | eventtype="nagios_events_test" |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 60000 | |
| verifyText | eventCount | 1,824 results |
| comment | attempt to rename this eventtype | |
| click | //div[@id='r0']//label[@term='nagios_events_test']/following-sibling::a[@class='popperUpper contextMenuOpener'] | . |
| waitForElementPresent | //li/label[@term='| top eventtype'] | 60000 |
| click | //li/label[.='Rename eventtype'] | |
| waitForElementPresent | adminPopupLayer | 5000 |
| pause | 1000 | pause a sec for rest to load up... |
| waitForElementPresent | sbaFormElements | 5000 |
| type | newName | nagios events test renamed |
| click | //div[@id='adminPopupLayer']//input[@type='submit' and @value='Save'] | |
| comment | 3 second pause to bask in teh glory of SPL-7554 | |
| pause | 3000 | |
| type | entry | eventtype="nagios_events_test_renamed" |
| comment | Pause for 6 seconds, to workaround SPL-12260, which should be fixed, but were not fixing for 3.2 | |
| pause | 6000 | |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 60000 | |
| comment | Verify that the OLD eventtype name is NOT there. If it is, this is probably SPL-12260 | |
| verifyElementNotPresent | //div[@id='r0']//label[@term='nagios_events_test'] | |
| comment | Verify that the NEW eventtype value is there inline with events and in filter tab row. | |
| verifyElementPresent | //div[@id='r0']//label[@term='nagios_events_test_renamed'] | |
| assertElementPresent | //div[@id='filterLayers']//tr[@term='nagios_events_test_renamed']/td | |
| comment | Switch to the raw search | |
| type | entry | source="*access.combined.log" webdev nagios-plugins |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 60000 | |
| comment | attempt to delete this eventtype | |
| click | //div[@id='r0']//label[@term='nagios_events_test_renamed']/following-sibling::a[@class='popperUpper contextMenuOpener'] | . |
| waitForVisible | //li/label[.='Delete eventtype'] | |
| click | //li/label[.='Delete eventtype'] | |
| waitForElementPresent | adminPopupLayer | 5000 |
| pause | 1000 | pause a sec for rest to load up... |
| waitForElementPresent | sbaFormElements | 5000 |
| click | //div[@id='adminPopupLayer']//input[@type='submit' and @value='Delete'] | |
| comment | TODO-- fix SPL-7554, and verify that some 'deleted' message came back | |
| pause | 3000 | |
| verifyElementNotPresent | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | |
| comment | TODO - Reset the field picker preference again without borking selenium with a weird error | |
| open | /v3/prefs/set?selectedKeys=host%20sourcetype%20source | |
| openAndWait | / | |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 60000 | |
| comment | TODO test to make sure illegal characters are not accepted. | |
| comment | TODO test to create eventtype templates with percent char names. | |
| comment | Verify that all event types are gone now. | |
| type | entry | source="*access.combined.log" webdev nagios-plugins |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 60000 | |
| verifyElementNotPresent | //div[@id='r0']//label[@term='nagios_events_test'] | |
| verifyElementNotPresent | //div[@id='r0']//label[@term='nagios_events_test_renamed'] | |