/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | config_file_parser.hpp | 83 * Returns the specified property of the specified JSON element. 87 * @param element JSON element 94 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() argument 97 auto it = element.find(property); in getRequiredProperty() 98 if (it == element.end()) in getRequiredProperty() 107 * Parses a JSON element containing an action. 113 * @param element JSON element 116 std::unique_ptr<Action> parseAction(const nlohmann::json& element); 119 * Parses a JSON element containing an array of actions. 125 * @param element JSON element [all …]
|
H A D | config_file_parser.cpp | 55 std::unique_ptr<Action> parseAction(const json& element) in parseAction() argument 57 verifyIsObject(element); in parseAction() 61 if (element.contains("comments")) in parseAction() 68 if (element.contains("and")) in parseAction() 70 action = parseAnd(element["and"]); in parseAction() 73 else if (element.contains("compare_presence")) in parseAction() 75 action = parseComparePresence(element["compare_presence"]); in parseAction() 78 else if (element.contains("compare_vpd")) in parseAction() 80 action = parseCompareVPD(element["compare_vpd"]); in parseAction() 83 else if (element.contains("i2c_capture_bytes")) in parseAction() [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/src/ |
H A D | config_file_parser.hpp | 81 * Returns the specified property of the specified JSON element. 85 * @param element JSON element 92 inline const nlohmann::json& getRequiredProperty(const nlohmann::json& element, in getRequiredProperty() argument 95 auto it = element.find(property); in getRequiredProperty() 96 if (it == element.end()) in getRequiredProperty() 105 * Parses a JSON element containing a boolean. 111 * @param element JSON element 114 inline bool parseBoolean(const nlohmann::json& element) in parseBoolean() argument 116 // Verify element contains a boolean in parseBoolean() 117 if (!element.is_boolean()) in parseBoolean() [all …]
|
H A D | config_file_parser.cpp | 91 GPIO parseGPIO(const json& element) in parseGPIO() argument 93 verifyIsObject(element); in parseGPIO() 97 const json& lineElement = getRequiredProperty(element, "line"); in parseGPIO() 103 auto activeLowIt = element.find("active_low"); in parseGPIO() 104 if (activeLowIt != element.end()) in parseGPIO() 111 verifyPropertyCount(element, propertyCount); in parseGPIO() 116 std::unique_ptr<Rail> parseRail(const json& element) in parseRail() argument 118 verifyIsObject(element); in parseRail() 122 const json& nameElement = getRequiredProperty(element, "name"); in parseRail() 128 auto presenceIt = element.find("presence"); in parseRail() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | config_file_parser_tests.cpp | 216 const json element = R"( { "format": "linear" } )"_json; in TEST() local 217 const json& propertyElement = getRequiredProperty(element, "format"); in TEST() 224 const json element = R"( { "volts": 1.03 } )"_json; in TEST() local 225 getRequiredProperty(element, "format"); in TEST() 238 const json element = R"( in TEST() local 246 std::unique_ptr<Action> action = parseAction(element); in TEST() 252 const json element = R"( in TEST() local 259 std::unique_ptr<Action> action = parseAction(element); in TEST() 265 const json element = R"( in TEST() local 273 std::unique_ptr<Action> action = parseAction(element); in TEST() [all …]
|
/openbmc/openbmc-test-automation/gui/test/gui_header/ |
H A D | test_obmc_gui_server_health.robot | 32 Wait Until Page Contains Element event-log 42 Page Should Contain Element ${xpath_event_severity_all} limit=1 43 Page Should Contain Element ${xpath_event_severity_high} limit=1 44 Page Should Contain Element ${xpath_event_severity_medium} limit=1 45 Page Should Contain Element ${xpath_event_severity_low} limit=1 55 # It helps to click the drop down element. 56 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 57 Click Element //*[@class='dropdown__button'] 61 Verify Content Search Element Appears 62 [Documentation] Check that the "event search element is available with [all …]
|
H A D | test_obmc_gui_ip_refresh_check.robot | 25 Wait Until Element Is Visible ${xpath_select_server_power} 26 Click Element ${xpath_select_server_power} 33 Wait Until Element Is Visible ${xpath_select_server_health} 34 Click Element ${xpath_select_server_health} 53 Wait Until Element Is Visible ${xpath_select_refresh_button} 54 Click Element ${xpath_select_refresh_button} 56 Wait Until Element Is Visible ${xpath_select_refresh_button} 57 Click Element ${xpath_select_refresh_button} 64 Wait Until Element Is Visible ${xpath_select_date_text} 75 Click Element ${xpath_select_refresh_button} [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/hardware_status_menu/ |
H A D | test_sensors_sub_menu.robot | 29 Page Should Contain Element ${xpath_sensor_heading} 43 Page Should Contain Element ${xpath_sensors_filter} 44 Click Element ${xpath_sensors_filter} 47 Page Should Contain Element ${xpath_sensors_search} 53 [Teardown] Click Element ${xpath_clear_search_input} 55 Wait Until Page Contains Element ${xpath_sensors_search} 64 Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s 65 Click Element ${xpath_sensors_filter} 67 Page Should Contain Element ${xpath_filter_ok} 68 Page Should Contain Element ${xpath_filter_warning} [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bs4/builder/ |
H A D | _html5lib.py | 17 from bs4.element import ( 26 from bs4.element import ( 61 # original file is the source of an element. 156 return Element(self.soup, self.soup, None) 177 return Element(tag, self.soup, namespace) 188 return Element(self.soup, self.soup, None) 192 self.soup.append(node.element) 198 return treebuilder_base.TreeBuilder.getFragment(self).element 200 def testSerializer(self, element): argument 205 def serializeElement(element, indent=0): argument [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | config_file_parser_tests.cpp | 329 const json element = R"( { "name": "VDD_CPU0" } )"_json; in TEST() local 330 const json& propertyElement = getRequiredProperty(element, "name"); in TEST() 337 const json element = R"( { "foo": 23 } )"_json; in TEST() local 338 getRequiredProperty(element, "name"); in TEST() 351 const json element = R"( true )"_json; in TEST() local 352 bool value = parseBoolean(element); in TEST() 358 const json element = R"( false )"_json; in TEST() local 359 bool value = parseBoolean(element); in TEST() 363 // Test where fails: Element is not a boolean in TEST() 366 const json element = R"( 1 )"_json; in TEST() local [all …]
|
/openbmc/openbmc-test-automation/gui/lib/ |
H A D | gui_resource.robot | 99 Wait Until Element Is Enabled ${xpath_login_username_input} 102 Wait Until Element Is Enabled ${xpath_login_button} 103 Click Element ${xpath_login_button} 105 Wait Until Element Is Not Visible 125 Click Element ${xpath_root_button_menu} 126 Click Element ${xpath_logout_button} 127 Wait Until Page Contains Element ${xpath_login_button} 143 Wait Until Page Contains Element ${xpath_root_button_menu} 144 Click Element ${xpath_root_button_menu} 145 Click Element ${xpath_profile_settings} [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/operations_menu/ |
H A D | test_server_power_operations_sub_menu.robot | 36 Page Should Contain Element ${xpath_server_power_heading} 56 Page Should Contain Element ${xpath_enable_onetime_boot_checkbox} 57 Page Should Contain Element ${xpath_boot_option_select} 67 Click Element ${xpath_save_button} 79 Click Element At Coordinates ${xpath_shutdown_immediate_radio} 0 0 80 Click Element ${xpath_shutdown_button} 81 Wait Until Page Contains Element ${xpath_confirm_button} timeout=10 82 Click Element ${xpath_confirm_button} 83 …Wait Until Keyword Succeeds 3 min 15 sec Element Should Contain ${xpath_current_power_state} … 92 Click Element At Coordinates ${xpath_shutdown_orderly_radio} 0 0 [all …]
|
H A D | test_reboot_bmc_sub_menu.robot | 27 Page Should Contain Element ${xpath_reboot_bmc_heading} 34 Page Should Contain Element ${xpath_reboot_bmc_button} 48 Click Element ${xpath_reboot_bmc_button} 53 Click Element At Coordinates ${xpath_reboot_cancel_button} 0 0 54 Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15 61 Click Element ${xpath_reboot_bmc_button} 65 Click Element At Coordinates ${xpath_confirm_button} 0 0 72 Click Element ${xpath_refresh_button} 73 Wait Until Element Is Visible ${xpath_reboot_bmc_button} timeout=10 86 Click Element ${xpath_reboot_bmc_button} [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | patchxml.py | 6 The patch file is itself an XML file. It can have any root element name, 9 where the fix should be applied. A <targetFile> element is required in the 11 applied to, though the targetFile element is handled outside of this script. 15 top level element. 19 1) Add an element: 20 Put in the element to add, along with the type='add' attribute 21 and an xpath attribute specifying where the new element should go. 27 This will add a new enumerationType element child to the root element. 29 2) Replace an element: 30 Put in the new element, with the type='replace' attribute [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/settings_menu/ |
H A D | test_date_and_time_sub_menu.robot | 33 Page Should Contain Element ${xpath_date_time_heading} 59 Page Should Contain Element ${xpath_select_manual} 60 Page Should Contain Element ${xpath_select_ntp} 61 Page Should Contain Element ${xpath_select_save_settings} 68 Click Element At Coordinates ${xpath_select_manual} 0 0 69 Page Should Contain Element ${xpath_manual_date} 70 Page Should Contain Element ${xpath_manual_time} 72 Click Element At Coordinates ${xpath_select_ntp} 0 0 73 Page Should Contain Element ${xpath_ntp_server1} 74 Page Should Contain Element ${xpath_ntp_server2} [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/security_and_access_menu/ |
H A D | test_user_management_sub_menu.robot | 49 Page Should Contain Element ${xpath_user_management_heading} 72 Page Should Contain Element ${xpath_edit_user} 73 Page Should Contain Element ${xpath_delete_user} 79 [Teardown] Click Element ${xpath_cancel_button} 81 Click Element ${xpath_add_user} 82 Wait Until Page Contains Element ${xpath_add_user_heading} 83 Page Should Contain Element ${xpath_account_status_enabled_button} 84 Page Should Contain Element ${xpath_account_status_disabled_button} 85 Page Should Contain Element ${xpath_username_input_button} 86 Page Should Contain Element ${xpath_privilege_list_button} [all …]
|
/openbmc/bmcweb/include/ |
H A D | event_service_store.hpp | 50 for (const auto& element : j) in fromJson() local 52 if (element.first == "Id") in fromJson() 55 element.second.get_ptr<const std::string*>(); in fromJson() 62 else if (element.first == "Destination") in fromJson() 65 element.second.get_ptr<const std::string*>(); in fromJson() 78 else if (element.first == "Protocol") in fromJson() 81 element.second.get_ptr<const std::string*>(); in fromJson() 88 else if (element.first == "VerifyCertificate") in fromJson() 90 const bool* value = element.second.get_ptr<const bool*>(); in fromJson() 97 else if (element.first == "DeliveryRetryPolicy") in fromJson() [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/overview_menu/ |
H A D | test_overview_menu.robot | 73 Element Should Contain ${xpath_machine_model} ${redfish_machine_model} 77 Element Should Contain ${xpath_serial_number} ${redfish_serial_number} 81 Element Should Contain ${xpath_asset_tag} ${redfish_asset_tag} 85 Element Should Contain ${xpath_operating_mode} ${redfish_operating_mode['pvm_system_operating_mode']} 100 Click Element ${xpath_network_information_view_more_button} 101 Wait Until Page Contains Element ${xpath_network_heading} 110 Click Element ${xpath_refresh_button} 112 Click Element ${xpath_refresh_button} 113 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 124 Click Element [all...] |
/openbmc/openbmc-test-automation/gui/test/server_config/ |
H A D | test_obmc_gui_network_settings.robot | 43 Click Element ${xpath_network_save_settings} 44 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 45 Click Element ${xpath_continue} 46 Click Element ${xpath_select_refresh_button} 47 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 56 Page Should Contain Element ${xpath_default_gateway_input} 65 Page Should Contain Element ${xpath_mac_address_input} 73 Page Should Contain Element ${xpath_network_static_button} 74 Click Element ${xpath_network_static_button} 84 Page Should Contain Element ${xpath_network_DHCP_button} [all …]
|
H A D | test_obmc_gui_date_and_time_settings.robot | 39 Page Should Contain Element ${xpath_set_time_from_ntp} 40 Page Should Contain Element ${xpath_add_new_ntp_server} 41 Page Should Contain Element ${xpath_set_time_manually} 42 Page Should Contain Element ${xpath_set_date} 43 Page Should Contain Element ${xpath_set_time} 44 Page Should Contain Element ${xpath_set_time_owner} 45 Page Should Contain Element ${xpath_cancel_button} 46 Page Should Contain Element ${xpath_save_setting_button} 54 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 55 Click Element ${xpath_select_server_configuration} [all …]
|
/openbmc/boost-dbus/include/dbus/ |
H A D | element.hpp | 54 struct element { struct 59 struct element<bool> { struct 64 struct element<byte> { struct 69 struct element<int16> { struct 74 struct element<uint16> { struct 79 struct element<int32> { struct 84 struct element<uint32> { struct 89 struct element<int64> { struct 94 struct element<uint64> { struct 99 struct element<double> { struct [all …]
|
/openbmc/webui-vue/src/components/Mixins/ |
H A D | JumpLinkMixin.js | 3 setFocus(element) { argument 4 element.setAttribute('tabindex', '-1'); 5 element.focus(); 7 element.removeAttribute('tabindex'); 10 // Select element to scroll to 12 const element = this.$refs[ref].$el; 14 // Set focus and tabindex on selected element 15 this.setFocus(element); 18 const offset = element.offsetTop - 50;
|
/openbmc/openbmc-test-automation/gui/test/server_control/ |
H A D | test_obmc_gui_server_power_operations.robot | 28 Element Should Contain ${xpath_power_indicator_bar} Off 36 Element Should Contain ${xpath_power_indicator_bar} ${OPENBMC_HOST} 44 Element Should Not Be Visible ${xpath_shutdown_button} 52 Element Should Not Be Visible ${xpath_reboot_button} 60 Element Should Be Visible ${xpath_power_on_button} 68 Element Should Contain ${xpath_power_indicator_bar} Running 76 Element Should Be Visible ${xpath_shutdown_button} 84 Element Should Be Visible ${xpath_reboot_button} 103 Page Should Contain Element ${xpath_tpm_toggle_switch} 104 Page Should Contain Element ${xpath_save_button} [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/gui_header/ |
H A D | test_profile_settings_sub_menu.robot | 46 Page Should Contain Element ${xpath_new_password} 47 Page Should Contain Element ${xpath_confirm_password} 50 Page Should Contain Element ${xpath_save_settings_button} 57 Wait Until Page Contains Element ${xpath_logged_usename} 66 Click Element At Coordinates ${xpath_default_UTC} 0 0 67 Click Element ${xpath_profile_settings_save_button} 72 Click Element ${xpath_overview_menu} 93 Click Element At Coordinates ${xpath_default_UTC} 0 0 94 Click Element ${xpath_profile_settings_save_button} 99 Click Element At Coordinates ${xpath_browser_offset} 0 0 [all …]
|
/openbmc/openbmc-test-automation/gui/test/access_control/ |
H A D | test_obmc_gui_ldap.robot | 38 Page Should Contain Element ${xpath_openl_ldap_radio_button} 39 Page Should Contain Element ${xpath_active_directory_radio_button} 40 Page Should Contain Element ${xpath_save_button} 41 Page Should Contain Element ${xpath_reset_button} 44 Page Should Contain Element ${xpath_add_role_group_button} 45 Page Should Contain Element ${xpath_remove_role_groups_button} 53 Page Should Contain Element ${xpath_enable_ldap_checkbox} 54 Page Should Contain Element ${xpath_secure_ldap_checkbox} 62 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 63 Click Element ${xpath_select_access_control} [all …]
|