Fix spelling issues detected by codespell

Closes #14282
This commit is contained in:
Garrett LeSage 2020-06-30 16:20:51 +02:00 committed by GitHub
parent e321e0575d
commit a2c3bd2aa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
105 changed files with 221 additions and 221 deletions

View file

@ -31,7 +31,7 @@ COCKPIT_SSH_COMMAND = "/usr/libexec/cockpit-ssh"
# we will try to decrypt the key with the given password. If successful # we will try to decrypt the key with the given password. If successful
# we send the decrypted key to cockpit-ws for use with cockpit-ssh. # we send the decrypted key to cockpit-ws for use with cockpit-ssh.
# Once finished we exec cockpit-ssh to actually establish the ssh connection. # Once finished we exec cockpit-ssh to actually establish the ssh connection.
# All comunication with cockpit-ws happens on stdin and stdout using the # All communication with cockpit-ws happens on stdin and stdout using the
# cockpit protocol # cockpit protocol
# (https://github.com/cockpit-project/cockpit/blob/master/doc/protocol.md) # (https://github.com/cockpit-project/cockpit/blob/master/doc/protocol.md)

View file

@ -29,7 +29,7 @@ Authentication commands are called with a single argument which is the host that
is connecting to. They communicate with their parent process using the cockpit protocol on is connecting to. They communicate with their parent process using the cockpit protocol on
stdin and stdout. stdin and stdout.
Credentials can then be retrived by issuing a authorize command with a challenge. The challenge Credentials can then be retrieved by issuing a authorize command with a challenge. The challenge
should correspond to the authorization type in header (ei: Basic or Bearer). For example: should correspond to the authorization type in header (ei: Basic or Bearer). For example:

View file

@ -30,7 +30,7 @@
<para> <para>
In order to manipulate as unprivileged user VMs on system connection through In order to manipulate as unprivileged user VMs on system connection through
<emphasis>cockpit-machines</emphasis> plugin using libvirt D-Bus provider you need to follow <emphasis>cockpit-machines</emphasis> plugin using libvirt D-Bus provider you need to follow
the intructions specified <ulink url="https://libvirt.org/dbus.html#usage">here</ulink>. the instructions specified <ulink url="https://libvirt.org/dbus.html#usage">here</ulink>.
</para> </para>
</section> </section>

View file

@ -68,7 +68,7 @@
<!-- ========================================================= --> <!-- ========================================================= -->
<!-- l10n is slow, we don't ue it, so we'd like to turn it off <!-- l10n is slow, we don't ue it, so we'd like to turn it off
this atleast avoid the re-evaluation --> this at least avoid the re-evaluation -->
<xsl:template name="l10n.language">en</xsl:template> <xsl:template name="l10n.language">en</xsl:template>
<xsl:param name="gtkdoc.l10n.xml" select="document('http://docbook.sourceforge.net/release/xsl/current/common/en.xml')"/> <xsl:param name="gtkdoc.l10n.xml" select="document('http://docbook.sourceforge.net/release/xsl/current/common/en.xml')"/>
@ -657,7 +657,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
</xsl:when> </xsl:when>
<!-- this is not yet very nice, as it requires all glossdic/indexdiv <!-- this is not yet very nice, as it requires all glossdic/indexdiv
elements having a anchor element. maybe we can customize the xsl elements having a anchor element. maybe we can customize the xsl
to automaticaly create local anchors to automatically create local anchors
--> -->
<xsl:when test="count($glssections) > 0"> <xsl:when test="count($glssections) > 0">
<tr> <tr>

View file

@ -90,8 +90,8 @@ $ cockpit-bridge --packages
<para>By default Cockpit serves packages using a strict <para>By default Cockpit serves packages using a strict
<ulink url="https://en.wikipedia.org/wiki/Content_Security_Policy">Content Security Policy</ulink>, <ulink url="https://en.wikipedia.org/wiki/Content_Security_Policy">Content Security Policy</ulink>,
which among other things does not allow inline styles or scripts. This can which among other things does not allow inline styles or scripts. This can
be overriden on a per-package basis, with this setting.</para> be overridden on a per-package basis, with this setting.</para>
<para>If the overriden content security policy does not contain a <code>default-src</code>, <para>If the overridden content security policy does not contain a <code>default-src</code>,
<code>connect-src</code>, <code>base-uri</code>, <code>form-action</code>, <code>object-src</code>, <code>connect-src</code>, <code>base-uri</code>, <code>form-action</code>, <code>object-src</code>,
or <code>block-all-mixed-content</code> then these will be added to the policy from the manifest.</para> or <code>block-all-mixed-content</code> then these will be added to the policy from the manifest.</para>
</listitem> </listitem>

View file

@ -50,7 +50,7 @@
<para> <para>
By default the session module will start a new ssh-agent and run By default the session module will start a new ssh-agent and run
ssh-add, loading any keys that exist in the default path for the ssh-add, loading any keys that exist in the default path for the
newly logged in user. If any keys prompt for a password, and a authenication newly logged in user. If any keys prompt for a password, and a authentication
token was successfully stored, that token will be provided as the password. token was successfully stored, that token will be provided as the password.
</para> </para>

View file

@ -223,7 +223,7 @@ by adding a "auth-method-results" object to the close object. This is mainly
useful to provide helpful error messages and suggestions to users. useful to provide helpful error messages and suggestions to users.
The "auth-method-results" object contains a key for each method that cockpit-ws The "auth-method-results" object contains a key for each method that cockpit-ws
is able to atempt authentication with as well as the result of the atempt. is able to attempt authentication with as well as the result of the attempt.
For example: For example:
{ {

View file

@ -5,7 +5,7 @@ Flow Control
Cockpit's protocol passes messages on reliable, ordered underlying Cockpit's protocol passes messages on reliable, ordered underlying
transports (eg: WebSockets, HTTP responses, stdio) between multiple transports (eg: WebSockets, HTTP responses, stdio) between multiple
peers, aranged in in a non-rooted tree graph. peers, arranged in in a non-rooted tree graph.
Cockpit's flow control is not about replaying messages, but avoiding Cockpit's flow control is not about replaying messages, but avoiding
flooding any peer by sending messages along any link in the graph flooding any peer by sending messages along any link in the graph
@ -19,7 +19,7 @@ down a certain channel which is flooding communication.
Therefore we use a windowing flow control protocol. It is based around Therefore we use a windowing flow control protocol. It is based around
per-channel "ping" control messages. In the Cockpit protocol "ping" per-channel "ping" control messages. In the Cockpit protocol "ping"
messages in a channel are responded to by specific leaves of the graph. messages in a channel are responded to by specific leaves of the graph.
They are replied to with a "pong" contaning otherwise identical content. They are replied to with a "pong" containing otherwise identical content.
Other "ping" messages are used as keep alives, but these are beyond the Other "ping" messages are used as keep alives, but these are beyond the
scope of this description. scope of this description.

View file

@ -60,7 +60,7 @@
/* Wheee */ /* Wheee */
$("table").show(); $("table").show();
message("Done! " + instances.length + " processes, " + data.length + " bytes transfered from CIM "); message("Done! " + instances.length + " processes, " + data.length + " bytes transferred from CIM ");
$(response).find("INSTANCE").each(function() { $(response).find("INSTANCE").each(function() {
tbody.append( tbody.append(

View file

@ -62,8 +62,8 @@ div.spinner {
} }
/* /*
* Used to make a table cell that containts buttons have less padding * Reduce padding on table cells that contain buttons
* HACK: Because CSS has no parant selector. * HACK: Because CSS has no parent selector.
*/ */
.cell-buttons, .cell-buttons,
.table > tbody > tr > .cell-buttons { .table > tbody > tr > .cell-buttons {

View file

@ -368,7 +368,7 @@ docker.console = function console_(container_id, command, options) {
function prepare() { function prepare() {
self.connected = false; self.connected = false;
/* Nothing to prepare? Connect diretly to container? */ /* Nothing to prepare? Connect directly to container. */
if (!exec) { if (!exec) {
if (tty === false) { if (tty === false) {
return attach("GET /v1.15/containers/" + encodeURIComponent(container_id) + return attach("GET /v1.15/containers/" + encodeURIComponent(container_id) +
@ -508,7 +508,7 @@ docker.console = function console_(container_id, command, options) {
} }
}; };
/* Allows the curser to restart the attach request */ /* Allows the cursor to restart the attach request */
self.connect = function connect() { self.connect = function connect() {
self.close("disconnected"); self.close("disconnected");
prepare(); prepare();

View file

@ -114,7 +114,7 @@ export class KdumpClient {
return dfd.promise(); return dfd.promise();
} else if (target.target === "nfs") { } else if (target.target === "nfs") {
if (!target.nfs.value.match("\\S+:/.+")) if (!target.nfs.value.match("\\S+:/.+"))
dfd.reject(_("nfs dump target isn't formated as server:path")); dfd.reject(_("nfs dump target isn't formatted as server:path"));
} else if (target.target === "ssh") { } else if (target.target === "ssh") {
if (!target.ssh.value.trim()) if (!target.ssh.value.trim())
dfd.reject(_("ssh server is empty")); dfd.reject(_("ssh server is empty"));

View file

@ -65,7 +65,7 @@ export var journal = { };
* .done(function(entries) { }): Called when done, @entries is * .done(function(entries) { }): Called when done, @entries is
* an array of all journal entries loaded. If .stream() * an array of all journal entries loaded. If .stream()
* has been invoked then @entries will be empty. * has been invoked then @entries will be empty.
* .fail(funciton(ex) { }): called if the operation fails * .fail(function(ex) { }): called if the operation fails
* .stream(function(entries) { }): called when we receive entries * .stream(function(entries) { }): called when we receive entries
* entries. Called once per batch of journal @entries, * entries. Called once per batch of journal @entries,
* whether following or not. * whether following or not.

View file

@ -149,7 +149,7 @@ function Dialog(selector, address, machines_ins, codes) {
var machine = self.machines_ins.lookup(address); var machine = self.machines_ins.lookup(address);
if (machine && machine.host_key && !machine.on_disk) { if (machine && machine.host_key && !machine.on_disk) {
conn_options['temp-session'] = false; /* Compatiblity option */ conn_options['temp-session'] = false; /* Compatibility option */
conn_options.session = 'shared'; conn_options.session = 'shared';
conn_options['host-key'] = machine.host_key; conn_options['host-key'] = machine.host_key;
} }
@ -901,7 +901,7 @@ function SyncUsers(dialog) {
dialog.run(promise); dialog.run(promise);
/* A successfull sync should close the dialog */ /* A successful sync should close the dialog */
dialog.set_on_success(null); dialog.set_on_success(null);
promise.always(function () { promise.always(function () {
@ -965,7 +965,7 @@ function SyncUsers(dialog) {
} }
function render() { function render() {
function formated_groups() { function formatted_groups() {
if (this.groups) if (this.groups)
return this.groups.join(", "); return this.groups.join(", ");
} }
@ -986,7 +986,7 @@ function SyncUsers(dialog) {
users : user_list, users : user_list,
perm_failed : perm_failed ? cockpit.message(perm_failed) : null, perm_failed : perm_failed ? cockpit.message(perm_failed) : null,
allows_password : allows_password, allows_password : allows_password,
formated_groups: formated_groups, formatted_groups: formatted_groups,
}); });
dialog.get_sel(".modal-content").html(text); dialog.get_sel(".modal-content").html(text);

View file

@ -36,7 +36,7 @@
<td>{{username}}</td> <td>{{username}}</td>
<td>{{name}}</td> <td>{{name}}</td>
<td>&#8226;&#8226;&#8226;&#8226;&#8226;</td> <td>&#8226;&#8226;&#8226;&#8226;&#8226;</td>
<td>{{formated_groups}}</td> <td>{{formatted_groups}}</td>
</tr> </tr>
{{/users}} {{/users}}
</tbody> </tbody>

View file

@ -202,7 +202,7 @@ input[type=number] {
} }
@-moz-document url-prefix() { @-moz-document url-prefix() {
/* Accomodate Firefox styling selects with slightly different padding. */ /* Accommodate Firefox styling selects with slightly different padding. */
.ct-select { .ct-select {
padding-left: 0.25em; padding-left: 0.25em;
} }

View file

@ -237,7 +237,7 @@ window.addEventListener("hashchange", function() {
* *
* The following div.slider-bar if present is resized to fill the remainder * The following div.slider-bar if present is resized to fill the remainder
* of the slider if not given a specific size. You can put more div.slider-bar * of the slider if not given a specific size. You can put more div.slider-bar
* inside it to reflect squashing other prevous allocations. * inside it to reflect squashing other previous allocations.
* *
* If the following div.slider-bar have a width specified, then the * If the following div.slider-bar have a width specified, then the
* slider supports the concept of overflowing. If the slider overflows * slider supports the concept of overflowing. If the slider overflows

View file

@ -41,8 +41,8 @@ import cockpit from "cockpit";
* Either 'undefined' when the value can't be retrieved, or a * Either 'undefined' when the value can't be retrieved, or a
* boolean that tells whether the service is started 'enabled'. * boolean that tells whether the service is started 'enabled'.
* What it means exactly for a service to be enabled depends on * What it means exactly for a service to be enabled depends on
* the service, but a enabled service is usually started on boot, * the service, but an enabled service is usually started on boot,
* no matter wether other services need it or not. A disabled * no matter whether other services need it or not. A disabled
* service is usually only started when it is needed by some other * service is usually only started when it is needed by some other
* service. * service.
* *

View file

@ -40,7 +40,7 @@ export function validateIpv4(address) {
} }
/** /**
* validates correctnes of ipv4 prefix length or mask * validates correctness of ipv4 prefix length or mask
* *
* @param {string} prefixOrNetmask * @param {string} prefixOrNetmask
* @returns {boolean} * @returns {boolean}
@ -167,7 +167,7 @@ export function validateIpv6(address) {
} }
/** /**
* validates correctnes of ipv6 prefix length * validates correctness of ipv6 prefix length
* *
* @param {string} prefixOrNetmask * @param {string} prefixOrNetmask
* @returns {boolean} * @returns {boolean}

View file

@ -71,7 +71,7 @@ const StoragePoolTypeRow = ({ onValueChanged, dialogValues, libvirtVersion }) =>
poolTypes.push({ type: 'iscsi-direct', detail: _("iSCSI direct Target") }); poolTypes.push({ type: 'iscsi-direct', detail: _("iSCSI direct Target") });
/* TODO /* TODO
{ type: 'fs', detail _("Pre-formated Block Device") }, { type: 'fs', detail _("Pre-formatted Block Device") },
{ type: 'gluster', detail _("Gluster Filesystem") }, { type: 'gluster', detail _("Gluster Filesystem") },
{ type: 'mpath', detail _("Multipath Device Enumerator") }, { type: 'mpath', detail _("Multipath Device Enumerator") },
{ type: 'rbd', detail _("RADOS Block Device/Ceph") }, { type: 'rbd', detail _("RADOS Block Device/Ceph") },

View file

@ -233,7 +233,7 @@ class VmOverviewTabLibvirt extends React.Component {
); );
} else { } else {
firmwareLinkWrapper = ( firmwareLinkWrapper = (
<Tooltip id='firmware-edit-disabled-on-transient' content={_("Transient VMs don't support editting firmware configuration")}> <Tooltip id='firmware-edit-disabled-on-transient' content={_("Transient VMs don't support editing firmware configuration")}>
{firmwareLink(true)} {firmwareLink(true)}
</Tooltip> </Tooltip>
); );

View file

@ -161,7 +161,7 @@ class VmNetworkTab extends React.Component {
const ips = (iface && iface[2]) ? iface[2] : undefined; const ips = (iface && iface[2]) ? iface[2] : undefined;
if (!ips) { if (!ips) {
// There is not IP address assosiated with this NIC // There is not IP address associated with this NIC
return _("Unknown"); return _("Unknown");
} else { } else {
return ( return (

View file

@ -512,7 +512,7 @@ export function getBootOrderDevices(vm) {
} }
// if boot order was defined in os->boot (old way), array contains only devices without boot order // if boot order was defined in os->boot (old way), array contains only devices without boot order
// in case of boot order devined in devices->boot (new way), array contains all devices // in case of boot order defined in devices->boot (new way), array contains all devices
for (let i = 0; i < disks.length; i++) { for (let i = 0; i < disks.length; i++) {
const disk = disks[i]; const disk = disks[i];
@ -524,7 +524,7 @@ export function getBootOrderDevices(vm) {
} }
// if boot order was defined in os->boot (old way), array contains only devices without boot order // if boot order was defined in os->boot (old way), array contains only devices without boot order
// in case of boot order devined in devices->boot (new way), array contains all devices // in case of boot order defined in devices->boot (new way), array contains all devices
for (let i = 0; i < ifaces.length; i++) { for (let i = 0; i < ifaces.length; i++) {
const iface = ifaces[i]; const iface = ifaces[i];

View file

@ -1023,7 +1023,7 @@ function doUsagePolling(name, connectionName, objPath) {
} }
/** /**
* Subscribe to D-Bus signals and defines the handlers to be invoked in each occassion. * Subscribe to D-Bus signals and defines the handlers to be invoked in each occasion.
* @param {String} connectionName D-Bus connection type; one of session/system. * @param {String} connectionName D-Bus connection type; one of session/system.
* @param {String} libvirtServiceName * @param {String} libvirtServiceName
*/ */

View file

@ -191,7 +191,7 @@ function NetworkManagerModel() {
* structure. This has the advantage of avoiding wasting * structure. This has the advantage of avoiding wasting
* resources for maintaining the unused proxies, avoids some code * resources for maintaining the unused proxies, avoids some code
* complexity, and allows to do the right thing with the * complexity, and allows to do the right thing with the
* pecularities of the NetworkManager API. * peculiarities of the NetworkManager API.
* *
* However, we do use a fake object manager since that allows us * However, we do use a fake object manager since that allows us
* to avoid a lot of 'GetAll' round trips during initialization * to avoid a lot of 'GetAll' round trips during initialization
@ -2021,7 +2021,7 @@ function choice_title(choices, choice, def) {
* 2) Make the change * 2) Make the change
* 3) Destroy the checkpoint * 3) Destroy the checkpoint
* *
* If step 2 breaks the connection, step 3 wont happen and the * If step 2 breaks the connection, step 3 won't happen and the
* checkpoint will roll back after some time. This is supposed to * checkpoint will roll back after some time. This is supposed to
* restore connectivity, so steps 2 and 3 will complete at that time, * restore connectivity, so steps 2 and 3 will complete at that time,
* and step 3 will fail because the checkpoint doesn't exist anymore. * and step 3 will fail because the checkpoint doesn't exist anymore.
@ -2068,7 +2068,7 @@ function choice_title(choices, choice, def) {
* changes, and it is thus important to show it if at all possible. * changes, and it is thus important to show it if at all possible.
*/ */
/* Considerations for chosing the times below /* Considerations for choosing the times below
* *
* curtain_time too short: Curtain comes up too often for good changes. * curtain_time too short: Curtain comes up too often for good changes.
* *
@ -3548,7 +3548,7 @@ function set_slave(model, master_connection, master_settings, slave_type,
} }
return settings_applier(model, iface.Device, main_connection)(slave_settings).then(function () { return settings_applier(model, iface.Device, main_connection)(slave_settings).then(function () {
// If the master already exists, activate or deactivate the slave immediatly so that // If the master already exists, activate or deactivate the slave immediately so that
// the settings actually apply and the interface becomes a slave. Otherwise we // the settings actually apply and the interface becomes a slave. Otherwise we
// activate it later when the master is created. // activate it later when the master is created.
if (master_connection) { if (master_connection) {
@ -4667,7 +4667,7 @@ function PageNetworkMacSettings() {
* pages and dialogs, and expects page.setup, page.enter, page.show, * pages and dialogs, and expects page.setup, page.enter, page.show,
* and page.leave to be called at the right times. * and page.leave to be called at the right times.
* *
* We cater to this with a little compatability shim consisting of * We cater to this with a little compatibility shim consisting of
* 'dialog_setup', 'page_show', and 'page_hide'. * 'dialog_setup', 'page_show', and 'page_hide'.
*/ */

View file

@ -22,7 +22,7 @@ $(function() {
}); });
/* /*
* These are failures targetted at specific fields. Note that we set * These are failures targeted at specific fields. Note that we set
* selectors on the target property of the exception. Also note how * selectors on the target property of the exception. Also note how
* the .dialog('failure') accepts multiple exceptions as arguments. * the .dialog('failure') accepts multiple exceptions as arguments.
*/ */

View file

@ -17,7 +17,7 @@
<br/> <br/>
<br/> <br/>
<div class="cockpit-internal-reauthorize"> <div class="cockpit-internal-reauthorize">
<button class="pf-c-button pf-m-secondary">Priveleged Action</button> <button class="pf-c-button pf-m-secondary">Privileged Action</button>
<span></span> <span></span>
</div> </div>
<div class="super-channel"> <div class="super-channel">

View file

@ -64,7 +64,7 @@
<p>Note that we do <b>not support</b>:<p> <p>Note that we do <b>not support</b>:<p>
<ul> <ul>
<li>Interpolation of variables.</li> <li>Interpolation of variables.</li>
<li>Tranlatable attributes.</li> <li>Translatable attributes.</li>
<li>Pluralization</li> <li>Pluralization</li>
<li>The <code>&lt;translate&gt;</code> element</li> <li>The <code>&lt;translate&gt;</code> element</li>
</ul> </ul>

View file

@ -157,7 +157,7 @@ function PageStatus({ status, name }) {
); );
} }
function FormatedText({ keyword, term }) { function FormattedText({ keyword, term }) {
function split_text(text, term) { function split_text(text, term) {
const b = text.toLowerCase().indexOf(term); const b = text.toLowerCase().indexOf(term);
const e = b + term.length; const e = b + term.length;
@ -194,9 +194,9 @@ export function CockpitNavItem(props) {
<li className={classes.join(" ")}> <li className={classes.join(" ")}>
<span className={"pf-c-nav__link" + (props.active ? " pf-m-current" : "")} data-for={props.to}> <span className={"pf-c-nav__link" + (props.active ? " pf-m-current" : "")} data-for={props.to}>
<a href={props.to}> <a href={props.to}>
{ props.header && <span className="hint">{header_matches ? <FormatedText keyword={props.header} term={props.term} /> : props.header}</span> } { props.header && <span className="hint">{header_matches ? <FormattedText keyword={props.header} term={props.term} /> : props.header}</span> }
{ name_matches ? <FormatedText keyword={props.name} term={props.term} /> : props.name } { name_matches ? <FormattedText keyword={props.name} term={props.term} /> : props.name }
{ !name_matches && !header_matches && props.keyword && <span className="hint">{_("Contains:")} <FormatedText keyword={props.keyword} term={props.term} /></span> } { !name_matches && !header_matches && props.keyword && <span className="hint">{_("Contains:")} <FormattedText keyword={props.keyword} term={props.term} /></span> }
</a> </a>
{s && s.type && <PageStatus status={s} name={props.name} />} {s && s.type && <PageStatus status={s} name={props.name} />}
{ props.actions && { props.actions &&

View file

@ -436,7 +436,7 @@ function init_model(callback) {
} }
function enable_nfs_features() { function enable_nfs_features() {
// mount.nfs might be in */sbin but that ins't always in // mount.nfs might be in */sbin but that isn't always in
// $PATH, such as when connecting from CentOS to another // $PATH, such as when connecting from CentOS to another
// machine via SSH as non-root. // machine via SSH as non-root.
const std_path = "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; const std_path = "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";

View file

@ -55,7 +55,7 @@
ACTION FUNCTIONS ACTION FUNCTIONS
The action funtion is called like this: The action function is called like this:
action(values, progress_callback) action(values, progress_callback)
@ -323,10 +323,10 @@ export const dialog_open = (def) => {
fields.forEach(f => { values[f.tag] = f.initial_value }); fields.forEach(f => { values[f.tag] = f.initial_value });
// We reconstruct the body everytime the values change so that it // We reconstruct the body every time the values change so that it
// will be re-rendered. This could be done with some state in the // will be re-rendered. This could be done with some state in the
// Body component maybe, but we also want the values up here so // Body component maybe, but we also want the values up here so
// that we can pass them to validate and the action functon. // that we can pass them to validate and the action function.
const update = (errors, trigger) => { const update = (errors, trigger) => {
if (def.update) if (def.update)

View file

@ -46,7 +46,7 @@ const _ = cockpit.gettext;
- is_enabled: A function that should return whether the feature is enabled. This - is_enabled: A function that should return whether the feature is enabled. This
function is called during rendering and thus needs to be fast and synchronous. function is called during rendering and thus needs to be fast and synchronous.
- package: The name of tha package to install. If omitted or false, the feature - package: The name of the package to install. If omitted or false, the feature
can not be enabled at run-time and the panel will be fully invisible can not be enabled at run-time and the panel will be fully invisible
if not already enabled. if not already enabled.

View file

@ -102,9 +102,9 @@ export function fmt_rate(bytes_per_sec) {
} }
export function format_temperature(kelvin) { export function format_temperature(kelvin) {
var celcius = kelvin - 273.15; var celsius = kelvin - 273.15;
var fahrenheit = 9.0 * celcius / 5.0 + 32.0; var fahrenheit = 9.0 * celsius / 5.0 + 32.0;
return celcius.toFixed(1) + "° C / " + fahrenheit.toFixed(1) + "° F"; return celsius.toFixed(1) + "° C / " + fahrenheit.toFixed(1) + "° F";
} }
export function format_fsys_usage(used, total) { export function format_fsys_usage(used, total) {

View file

@ -69,7 +69,7 @@ the domain name. If it does not, then rename the computer Cockpit is running on:
$ sudo hostnamectl set-hostname my-server.domain.com $ sudo hostnamectl set-hostname my-server.domain.com
**BUG:** If your domain is an IPA domain, then you need to explictly add a service **BUG:** If your domain is an IPA domain, then you need to explicitly add a service
before Cockpit can be used with Single Sign on. The following must be done on before Cockpit can be used with Single Sign on. The following must be done on
the computer running Cockpit. the computer running Cockpit.
[realmd bug](https://bugzilla.redhat.com/show_bug.cgi?id=1144292) [realmd bug](https://bugzilla.redhat.com/show_bug.cgi?id=1144292)

View file

@ -47,7 +47,7 @@ export class PageStatusNotifications extends React.Component {
} }
render() { render() {
// Explicit whitelist for now, until we can get a dynamic list // Explicit allowlist for now, until we can get a dynamic list
return ["system/services", "updates"].map(page => { return ["system/services", "updates"].map(page => {
const status = page_status.get(page); const status = page_status.get(page);
if (status && (status.type || status.details) && status.title) { if (status && (status.type || status.details) && status.title) {

View file

@ -272,7 +272,7 @@ class ServiceActions extends React.Component {
<> <>
{ this.state.dialogMaskedOpened && { this.state.dialogMaskedOpened &&
<ServiceConfirmDialog id="mask-service" title={ _("Mask Service") } <ServiceConfirmDialog id="mask-service" title={ _("Mask Service") }
message={ _("Masking service prevents all dependant units from running. This can have bigger impact than anticipated. Please confirm that you want to mask this unit.")} message={ _("Masking service prevents all dependent units from running. This can have bigger impact than anticipated. Please confirm that you want to mask this unit.")}
close={() => this.setState({ dialogMaskedOpened: false }) } close={() => this.setState({ dialogMaskedOpened: false }) }
confirmText={ _("Mask Service") } confirmText={ _("Mask Service") }
confirmAction={() => { confirmAction={() => {
@ -301,7 +301,7 @@ ServiceActions.propTypes = {
/* /*
* React template for a service details * React template for a service details
* Shows current status and informations about the service. * Shows current status and information about the service.
* Enables user to control this unit like starting, enabling, etc. the service. * Enables user to control this unit like starting, enabling, etc. the service.
* Required props: * Required props:
* - unit * - unit

View file

@ -40,7 +40,7 @@ export class Service extends React.Component {
this.state = { this.state = {
error: undefined, error: undefined,
/* The initial load of the Services page will not call GetAll for units Properties /* The initial load of the Services page will not call GetAll for units Properties
* since ListUnits API call allready has provided us with a subset of the Properties. * since ListUnits API call already has provided us with a subset of the Properties.
* As a result, properties like the 'Requires' are not present in the state at this point. * As a result, properties like the 'Requires' are not present in the state at this point.
* If it's the first time to open this service's details page we need to fetch * If it's the first time to open this service's details page we need to fetch
* the unit properties by calling getUnitByPath. * the unit properties by calling getUnitByPath.

View file

@ -210,7 +210,7 @@ class ServicesPage extends React.Component {
}); });
/* Start listening to signals for updates - when in the middle of reload mute all signals /* Start listening to signals for updates - when in the middle of reload mute all signals
* - We don't need to listen to 'UnitFilesChanged' signal since everytime we * - We don't need to listen to 'UnitFilesChanged' signal since every time we
* perform some file operation we do call Reload which issues 'Reload' signal * perform some file operation we do call Reload which issues 'Reload' signal
* - JobNew is also useless, JobRemoved is enough since it comes in pair with JobNew * - JobNew is also useless, JobRemoved is enough since it comes in pair with JobNew
* but we are interested to update the state when the operation finished * but we are interested to update the state when the operation finished

View file

@ -26,7 +26,7 @@ function AuthorizedKeys (user_name, home_dir) {
self.state = "ready"; self.state = "ready";
} else { } else {
self.state = "failed"; self.state = "failed";
console.warn("Error proccessing authentication keys: " + ex); console.warn("Error processing authentication keys: " + ex);
} }
self.dispatchEvent("changed"); self.dispatchEvent("changed");
} }

View file

@ -4265,7 +4265,7 @@ msgstr ""
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7784,7 +7784,7 @@ msgid "Tower"
msgstr "Torre" msgstr "Torre"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9080,7 +9080,7 @@ msgid "nfs"
msgstr "" msgstr ""
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "" msgstr ""
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4490,7 +4490,7 @@ msgstr "Maskováno"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -8207,7 +8207,7 @@ msgid "Tower"
msgstr "Věž" msgstr "Věž"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "U přechodných virt. strojů nelze upravovat nastavení firmware" msgstr "U přechodných virt. strojů nelze upravovat nastavení firmware"
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9564,7 +9564,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "cíl výpisu nfs nemá podobu server:umisteni" msgstr "cíl výpisu nfs nemá podobu server:umisteni"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4339,7 +4339,7 @@ msgstr ""
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7953,7 +7953,7 @@ msgid "Tower"
msgstr "Turm" msgstr "Turm"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9256,7 +9256,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "Das NFS-Speicherauszugsziel ist nicht als Serverpfad formatiert" msgstr "Das NFS-Speicherauszugsziel ist nicht als Serverpfad formatiert"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4347,7 +4347,7 @@ msgstr "Enmascarado"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7991,7 +7991,7 @@ msgid "Tower"
msgstr "Torre" msgstr "Torre"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
"Las MVs que son temporales no tienen soporte para editar la configuración " "Las MVs que son temporales no tienen soporte para editar la configuración "
"del firmware" "del firmware"
@ -9306,7 +9306,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs dump target no está declarado como servidor:ruta" msgstr "nfs dump target no está declarado como servidor:ruta"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4296,7 +4296,7 @@ msgstr "Masqué"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7893,7 +7893,7 @@ msgid "Tower"
msgstr "Tower" msgstr "Tower"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
"Les machines virtuelles temporaires ne permettent pas de modifier la " "Les machines virtuelles temporaires ne permettent pas de modifier la "
"configuration du micrologiciel" "configuration du micrologiciel"
@ -9183,7 +9183,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "la cible nfs dump n’a pas été formatée sous la forme server : path" msgstr "la cible nfs dump n’a pas été formatée sous la forme server : path"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4271,7 +4271,7 @@ msgstr "ממוסך"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7779,7 +7779,7 @@ msgid "Tower"
msgstr "מארז גבוה" msgstr "מארז גבוה"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "מכונות וירטואליות זמניות לא תומכות בעריכת הגדרות קושחה" msgstr "מכונות וירטואליות זמניות לא תומכות בעריכת הגדרות קושחה"
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9056,7 +9056,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "יעד היטל ה־nfs אינו כתוב בצורה server:path" msgstr "יעד היטל ה־nfs אינו כתוב בצורה server:path"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4386,7 +4386,7 @@ msgstr ""
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7997,7 +7997,7 @@ msgid "Tower"
msgstr "Tower" msgstr "Tower"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9319,7 +9319,7 @@ msgid "nfs"
msgstr "" msgstr ""
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs dump target non è formattato come server:path" msgstr "nfs dump target non è formattato come server:path"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4258,7 +4258,7 @@ msgstr "マスク"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7828,7 +7828,7 @@ msgid "Tower"
msgstr "タワー" msgstr "タワー"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "transient VMはファームウェア設定の編集をサポートしていません" msgstr "transient VMはファームウェア設定の編集をサポートしていません"
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9116,7 +9116,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs ダンプターゲットは server:path の形式になっていません" msgstr "nfs ダンプターゲットは server:path の形式になっていません"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4324,7 +4324,7 @@ msgstr "마스크 설정됨"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7928,7 +7928,7 @@ msgid "Tower"
msgstr "타워" msgstr "타워"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9236,7 +9236,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs 덤프 대상이 server:path 형식으로 되어 있지 않습니다" msgstr "nfs 덤프 대상이 server:path 형식으로 되어 있지 않습니다"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4274,7 +4274,7 @@ msgstr "Gemaskeerd"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7864,7 +7864,7 @@ msgid "Tower"
msgstr "Toren" msgstr "Toren"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
"Tijdelijke VM's bieden geen ondersteuning voor het bewerken van " "Tijdelijke VM's bieden geen ondersteuning voor het bewerken van "
"firmwareconfiguratie" "firmwareconfiguratie"
@ -9157,7 +9157,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs dump target is niet geformatteerd als server:pad" msgstr "nfs dump target is niet geformatteerd als server:pad"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4295,7 +4295,7 @@ msgstr "Zamaskowana"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7883,7 +7883,7 @@ msgid "Tower"
msgstr "Tower" msgstr "Tower"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
"Tymczasowe maszyny wirtualne nie obsługują modyfikowania konfiguracji " "Tymczasowe maszyny wirtualne nie obsługują modyfikowania konfiguracji "
"oprogramowania sprzętowego" "oprogramowania sprzętowego"
@ -9169,7 +9169,7 @@ msgid "nfs"
msgstr "NFS" msgstr "NFS"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "cel zrzutu NFS nie jest sformatowany jako serwer:ścieżka" msgstr "cel zrzutu NFS nie jest sformatowany jako serwer:ścieżka"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4331,7 +4331,7 @@ msgstr ""
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7896,7 +7896,7 @@ msgid "Tower"
msgstr "Torre" msgstr "Torre"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9197,7 +9197,7 @@ msgid "nfs"
msgstr "" msgstr ""
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "destino de despejo nfs não é formatado como servidor: caminho" msgstr "destino de despejo nfs não é formatado como servidor: caminho"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4358,7 +4358,7 @@ msgstr "Скрыто"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -8003,7 +8003,7 @@ msgid "Tower"
msgstr "Компьютер в корпусе «башня»" msgstr "Компьютер в корпусе «башня»"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "Временные ВМ не поддерживают редактирование конфигурации микропрограмм" msgstr "Временные ВМ не поддерживают редактирование конфигурации микропрограмм"
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9322,7 +9322,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "Формат цели дампа NFS отличается от вида сервер:путь" msgstr "Формат цели дампа NFS отличается от вида сервер:путь"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4259,7 +4259,7 @@ msgstr "Gömd"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7811,7 +7811,7 @@ msgid "Tower"
msgstr "Torn" msgstr "Torn"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9110,7 +9110,7 @@ msgid "nfs"
msgstr "" msgstr ""
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs-dumpmålet är inte formaterat som server:sökväg" msgstr "nfs-dumpmålet är inte formaterat som server:sökväg"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4303,7 +4303,7 @@ msgstr "Замасковано"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7897,7 +7897,7 @@ msgid "Tower"
msgstr "Башточка" msgstr "Башточка"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
"Для тимчасових віртуальних машин не передбачено підтримки редагування " "Для тимчасових віртуальних машин не передбачено підтримки редагування "
"налаштувань мікропрограми" "налаштувань мікропрограми"
@ -9188,7 +9188,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "" msgstr ""
"форматування місця для дампів у nfs не збігається із потрібним: сервер:шлях" "форматування місця для дампів у nfs не збігається із потрібним: сервер:шлях"

View file

@ -4265,7 +4265,7 @@ msgstr "掩盖的"
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7781,7 +7781,7 @@ msgid "Tower"
msgstr "Tower" msgstr "Tower"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9076,7 +9076,7 @@ msgid "nfs"
msgstr "nfs" msgstr "nfs"
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs dump 目标的格式不是 server:path" msgstr "nfs dump 目标的格式不是 server:path"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -4274,7 +4274,7 @@ msgstr ""
#: pkg/systemd/services/service-details.jsx:275 #: pkg/systemd/services/service-details.jsx:275
msgid "" msgid ""
"Masking service prevents all dependant units from running. This can have " "Masking service prevents all dependent units from running. This can have "
"bigger impact than anticipated. Please confirm that you want to mask this " "bigger impact than anticipated. Please confirm that you want to mask this "
"unit." "unit."
msgstr "" msgstr ""
@ -7807,7 +7807,7 @@ msgid "Tower"
msgstr "塔" msgstr "塔"
#: pkg/machines/components/vmOverviewTabLibvirt.jsx:236 #: pkg/machines/components/vmOverviewTabLibvirt.jsx:236
msgid "Transient VMs don't support editting firmware configuration" msgid "Transient VMs don't support editing firmware configuration"
msgstr "" msgstr ""
#: pkg/systemd/services/service-details.jsx:515 #: pkg/systemd/services/service-details.jsx:515
@ -9114,7 +9114,7 @@ msgid "nfs"
msgstr "" msgstr ""
#: pkg/kdump/kdump-client.js:117 #: pkg/kdump/kdump-client.js:117
msgid "nfs dump target isn't formated as server:path" msgid "nfs dump target isn't formatted as server:path"
msgstr "nfs dump target未格式化為server:path" msgstr "nfs dump target未格式化為server:path"
#: pkg/machines/components/networks/networkOverviewTab.jsx:84 #: pkg/machines/components/networks/networkOverviewTab.jsx:84

View file

@ -38,7 +38,7 @@ event_mixin(cockpit, { });
* by various parts of the code to show/hide debug * by various parts of the code to show/hide debug
* messages in the javascript console. * messages in the javascript console.
* *
* We supprot using storage to get/set that property * We support using storage to get/set that property
* so that it carries across the various frames or * so that it carries across the various frames or
* alternatively persists across refreshes. * alternatively persists across refreshes.
*/ */
@ -1512,7 +1512,7 @@ function factory() {
}; };
cockpit.format_number = function format_number(number) { cockpit.format_number = function format_number(number) {
/* We show 3 digits of precison but avoid scientific notation. /* We show 3 digits of precision but avoid scientific notation.
* We also show integers without digits after the comma. * We also show integers without digits after the comma.
* *
* We want to localise the decimal place, but we never want to * We want to localise the decimal place, but we never want to
@ -2132,7 +2132,7 @@ function factory() {
path = gdata.links[k][0]; path = gdata.links[k][0];
row = gdata.links[k][1]; row = gdata.links[k][1];
/* Calulate the data field to fill in */ /* Calculate the data field to fill in */
data = items[f + i]; data = items[f + i];
map = mapping; map = mapping;
jlen = path.length; jlen = path.length;
@ -3594,7 +3594,7 @@ function factory() {
}; };
} }
/* Well known busses */ /* Well known buses */
var shared_dbus = { var shared_dbus = {
internal: null, internal: null,
session: null, session: null,

View file

@ -1,4 +1,4 @@
/* Set fake font and icon path variables - we are going to indentify these through /* Set fake font and icon path variables - we are going to identify these through
* patternfly.sed and remove the relevant font-face declarations * patternfly.sed and remove the relevant font-face declarations
*/ */
$pf-global--font-path: 'patternfly-fonts-fake-path'; $pf-global--font-path: 'patternfly-fonts-fake-path';

View file

@ -163,7 +163,7 @@ select.form-control {
height: 100%; height: 100%;
} }
// Shave off the border and padding, as these misalign the elemnt // Shave off the border and padding, as these misalign the element
// (as this widget uses inline styles (ugh!), we _have to_ use !important) // (as this widget uses inline styles (ugh!), we _have to_ use !important)
> input { > input {
border-width: 0 1px !important; border-width: 0 1px !important;

View file

@ -32,7 +32,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
assert.deepEqual(reply, ["Word! You said `Browser-side JS'. I'm Skeleton, btw!"], "reply"); assert.deepEqual(reply, ["Word! You said `Browser-side JS'. I'm Skeleton, btw!"], "reply");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -124,7 +124,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
], "round trip"); ], "round trip");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -197,7 +197,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
], "round trip"); ], "round trip");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -221,7 +221,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
], "round trip"); ], "round trip");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -303,7 +303,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
}], "reply"); }], "reply");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -383,7 +383,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
dbus.call("/otree/frobber", "com.redhat.Cockpit.DBusTests.Frobber", "RequestSignalEmission", [0]) dbus.call("/otree/frobber", "com.redhat.Cockpit.DBusTests.Frobber", "RequestSignalEmission", [0])
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "emmision requested"); assert.equal(this.state(), "resolved", "emission requested");
assert.equal(received, true, "signal received"); assert.equal(received, true, "signal received");
done(); done();
}); });
@ -407,7 +407,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
dbus.call("/otree/frobber", "com.redhat.Cockpit.DBusTests.Frobber", "RequestSignalEmission", [0]) dbus.call("/otree/frobber", "com.redhat.Cockpit.DBusTests.Frobber", "RequestSignalEmission", [0])
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "emmision requested"); assert.equal(this.state(), "resolved", "emission requested");
assert.equal(received, true, "signal received"); assert.equal(received, true, "signal received");
}) })
.then(function() { .then(function() {
@ -416,7 +416,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
dbus.call("/otree/frobber", "com.redhat.Cockpit.DBusTests.Frobber", "RequestSignalEmission", [0]) dbus.call("/otree/frobber", "com.redhat.Cockpit.DBusTests.Frobber", "RequestSignalEmission", [0])
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "second emmision requested"); assert.equal(this.state(), "resolved", "second emission requested");
assert.equal(received, false, "signal not received"); assert.equal(received, false, "signal not received");
done(); done();
}); });
@ -436,7 +436,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
assert.equal(options.type, "a{ss}uit", "got back type"); assert.equal(options.type, "a{ss}uit", "got back type");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -489,7 +489,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
assert.equal(options.type, "ay", "got back type"); assert.equal(options.type, "ay", "got back type");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -650,7 +650,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
assert.ok(options.flags.indexOf(">") !== -1 || options.flags.indexOf("<") !== -1, "has byte order"); assert.ok(options.flags.indexOf(">") !== -1 || options.flags.indexOf("<") !== -1, "has byte order");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -665,7 +665,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
assert.deepEqual(reply, [], "round trip"); assert.deepEqual(reply, [], "round trip");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });
@ -791,7 +791,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
}, "correct data"); }, "correct data");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
$(dbus).off(); $(dbus).off();
done(); done();
}); });
@ -1023,7 +1023,7 @@ function common_dbus_tests(channel_options, bus_name) { // eslint-disable-line n
proxy.call("RequestSignalEmission", [0]) proxy.call("RequestSignalEmission", [0])
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "emmision requested"); assert.equal(this.state(), "resolved", "emission requested");
assert.equal(received, true, "signal received"); assert.equal(received, true, "signal received");
$(dbus).off(); $(dbus).off();
$(proxy).off(); $(proxy).off();

View file

@ -68,7 +68,7 @@ function child_frame() {
dbus.close(); dbus.close();
}) })
.always(function() { .always(function() {
test.equal(this.state(), "resolved", "finished successfuly"); test.equal(this.state(), "resolved", "finished successfully");
}); });
dbus.addEventListener("close", function(ev, options) { dbus.addEventListener("close", function(ev, options) {
test.assert(!options.problem, "close cleanly"); test.assert(!options.problem, "close cleanly");

View file

@ -82,8 +82,8 @@ QUnit.test("owned messages", function (assert) {
var org_owner = null; var org_owner = null;
function on_owner (event, owner) { function on_owner (event, owner) {
if (times_changed === 0) { if (times_changed === 0) {
assert.strictEqual(typeof owner, "string", "intial owner string"); assert.strictEqual(typeof owner, "string", "initial owner string");
assert.ok(owner.length > 1, "intial owner not empty"); assert.ok(owner.length > 1, "initial owner not empty");
org_owner = owner; org_owner = owner;
} else if (times_changed === 1) { } else if (times_changed === 1) {
assert.strictEqual(owner, null, "no owner"); assert.strictEqual(owner, null, "no owner");

View file

@ -48,13 +48,13 @@ QUnit.test("calculated order", function (assert) {
}); });
/* Callbacks must be called in the right order for this to work */ /* Callbacks must be called in the right order for this to work */
var dependant = grid.add(function(row, x, n) { var dependent = grid.add(function(row, x, n) {
for (var i = 0; i < n; i++) for (var i = 0; i < n; i++)
row[i + x] = calculated[i + x] + 10; row[i + x] = calculated[i + x] + 10;
}); });
grid.notify(1, 4); grid.notify(1, 4);
assert.deepEqual(dependant, [undefined, 10, 11, 12, 13], "dependant array contents"); assert.deepEqual(dependent, [undefined, 10, 11, 12, 13], "dependent array contents");
}); });
QUnit.test("calculated early", function (assert) { QUnit.test("calculated early", function (assert) {
@ -63,7 +63,7 @@ QUnit.test("calculated early", function (assert) {
var calculated; var calculated;
/* Callbacks must be called in the right order for this to work */ /* Callbacks must be called in the right order for this to work */
var dependant = grid.add(function(row, x, n) { var dependent = grid.add(function(row, x, n) {
for (var i = 0; i < n; i++) for (var i = 0; i < n; i++)
row[i + x] = calculated[i + x] + 10; row[i + x] = calculated[i + x] + 10;
}); });
@ -75,7 +75,7 @@ QUnit.test("calculated early", function (assert) {
}, true); }, true);
grid.notify(1, 4); grid.notify(1, 4);
assert.deepEqual(dependant, [undefined, 10, 11, 12, 13], "dependant array contents"); assert.deepEqual(dependent, [undefined, 10, 11, 12, 13], "dependent array contents");
}); });
QUnit.test("notify limit", function (assert) { QUnit.test("notify limit", function (assert) {

View file

@ -20,7 +20,7 @@ QUnit.test("load user info", function (assert) {
assert.equal(user.Groups.t, "as", "type Groups"); assert.equal(user.Groups.t, "as", "type Groups");
}) })
.always(function() { .always(function() {
assert.equal(this.state(), "resolved", "finished successfuly"); assert.equal(this.state(), "resolved", "finished successfully");
done(); done();
}); });
}); });

View file

@ -460,7 +460,7 @@ run_bridge (const gchar *interactive,
CockpitTransport *transport; CockpitTransport *transport;
CockpitRouter *router; CockpitRouter *router;
gboolean terminated = FALSE; gboolean terminated = FALSE;
gboolean interupted = FALSE; gboolean interrupted = FALSE;
gboolean closed = FALSE; gboolean closed = FALSE;
const gchar *directory; const gchar *directory;
struct passwd *pwd; struct passwd *pwd;
@ -532,7 +532,7 @@ run_bridge (const gchar *interactive,
} }
sig_term = g_unix_signal_add (SIGTERM, on_signal_done, &terminated); sig_term = g_unix_signal_add (SIGTERM, on_signal_done, &terminated);
sig_int = g_unix_signal_add (SIGINT, on_signal_done, &interupted); sig_int = g_unix_signal_add (SIGINT, on_signal_done, &interrupted);
cockpit_dbus_internal_startup (interactive != NULL); cockpit_dbus_internal_startup (interactive != NULL);
@ -579,7 +579,7 @@ run_bridge (const gchar *interactive,
g_signal_connect (transport, "closed", G_CALLBACK (on_closed_set_flag), &closed); g_signal_connect (transport, "closed", G_CALLBACK (on_closed_set_flag), &closed);
send_init_command (transport, interactive ? TRUE : FALSE); send_init_command (transport, interactive ? TRUE : FALSE);
while (!terminated && !closed && !interupted) while (!terminated && !closed && !interrupted)
g_main_context_iteration (NULL, TRUE); g_main_context_iteration (NULL, TRUE);
#ifdef WITH_POLKIT #ifdef WITH_POLKIT

View file

@ -600,7 +600,7 @@ setup_commit_passwd1 (GVariant *parameters,
GString *string; GString *string;
gboolean user_exists; gboolean user_exists;
/* We are getting crypted passwords so we need to use /* We are getting crypt()-ed passwords so we need to use
* --crypt-method=NONE with newusers and chpasswd so that the string * --crypt-method=NONE with newusers and chpasswd so that the string
* is installed unchanged. Unfortunately, newusers might or might * is installed unchanged. Unfortunately, newusers might or might
* not support the --crypt-method option, depending on whether it * not support the --crypt-method option, depending on whether it

View file

@ -314,7 +314,7 @@ cockpit_fslist_class_init (CockpitFslistClass *klass)
* @transport: the transport to send/receive messages on * @transport: the transport to send/receive messages on
* @channel_id: the channel id * @channel_id: the channel id
* @path: the path name of the file to read * @path: the path name of the file to read
* @watch: boolean, watch the directoy as well? * @watch: boolean, watch the directory as well?
* *
* This function is mainly used by tests. The usual way * This function is mainly used by tests. The usual way
* to get a #CockpitFslist is via cockpit_channel_open() * to get a #CockpitFslist is via cockpit_channel_open()

View file

@ -486,17 +486,17 @@ is_empty (const gchar *s)
static void static void
cockpit_router_normalize_host_params (JsonObject *options) cockpit_router_normalize_host_params (JsonObject *options)
{ {
const gchar *sharable = NULL; const gchar *shareable = NULL;
const gchar *user = NULL; const gchar *user = NULL;
gboolean needs_private = FALSE; gboolean needs_private = FALSE;
if (!cockpit_json_get_string (options, "session", NULL, &sharable)) if (!cockpit_json_get_string (options, "session", NULL, &shareable))
sharable = NULL; shareable = NULL;
if (!cockpit_json_get_string (options, "user", NULL, &user)) if (!cockpit_json_get_string (options, "user", NULL, &user))
user = NULL; user = NULL;
if (!sharable) if (!shareable)
{ {
/* Fallback to older ways of indicating this */ /* Fallback to older ways of indicating this */
if (user || json_object_has_member (options, "host-key")) if (user || json_object_has_member (options, "host-key"))

View file

@ -284,7 +284,7 @@ main (int argc,
{ {
CockpitTransport *transport; CockpitTransport *transport;
gboolean terminated = FALSE; gboolean terminated = FALSE;
gboolean interupted = FALSE; gboolean interrupted = FALSE;
gboolean closed = FALSE; gboolean closed = FALSE;
GOptionContext *context; GOptionContext *context;
GError *error = NULL; GError *error = NULL;
@ -328,7 +328,7 @@ main (int argc,
} }
sig_term = g_unix_signal_add (SIGTERM, on_signal_done, &terminated); sig_term = g_unix_signal_add (SIGTERM, on_signal_done, &terminated);
sig_int = g_unix_signal_add (SIGINT, on_signal_done, &interupted); sig_int = g_unix_signal_add (SIGINT, on_signal_done, &interrupted);
transport = cockpit_pipe_transport_new_fds ("stdio", 0, outfd); transport = cockpit_pipe_transport_new_fds ("stdio", 0, outfd);
@ -339,7 +339,7 @@ main (int argc,
/* Owns the channels */ /* Owns the channels */
channels = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref); channels = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
while (!terminated && !closed && !interupted) while (!terminated && !closed && !interrupted)
g_main_context_iteration (NULL, TRUE); g_main_context_iteration (NULL, TRUE);
g_object_unref (transport); g_object_unref (transport);

View file

@ -744,7 +744,7 @@ test_watch_simple (TestCase *tc,
/* /*
* HACK: https://bugzilla.redhat.com/show_bug.cgi?id=1259594 * HACK: https://bugzilla.redhat.com/show_bug.cgi?id=1259594
* Some versions of glib2 erroneously emit spurios "delete" events. * Some versions of glib2 erroneously emit spurious "delete" events.
*/ */
if (g_str_equal (json_object_get_string_member (event, "event"), "deleted")) if (g_str_equal (json_object_get_string_member (event, "event"), "deleted"))
{ {

View file

@ -36,7 +36,7 @@
/* /*
* To recalculate the checksums found in this file, do something like: * To recalculate the checksums found in this file, do something like:
* $ XDG_DATA_DIRS=$PWD/src/bridge/mock-resource/glob/ XDG_DATA_HOME=/nonexistant ./cockpit-bridge --packages * $ XDG_DATA_DIRS=$PWD/src/bridge/mock-resource/glob/ XDG_DATA_HOME=/nonexistent ./cockpit-bridge --packages
*/ */
#define CHECKSUM_GLOB "f5d1bfe84c378dee517cea3e0f0380ad2c9201f6be021fbae877a89d4cb51859" #define CHECKSUM_GLOB "f5d1bfe84c378dee517cea3e0f0380ad2c9201f6be021fbae877a89d4cb51859"
#define CHECKSUM_BADPACKAGE "86ae6170eb6245c5c80dbcbcc0ba12beddee2e1d807cfdb705440e944b177fbc" #define CHECKSUM_BADPACKAGE "86ae6170eb6245c5c80dbcbcc0ba12beddee2e1d807cfdb705440e944b177fbc"

View file

@ -242,11 +242,11 @@ mock_peer_fail_new (MockTransport *transport,
if (problem) if (problem)
{ {
bridge = g_strdup_printf ("{ \"match\": { \"payload\": \"%s\" }, \"spawn\": [ \"/non-existant\" ], \"problem\": \"%s\" }", payload, problem); bridge = g_strdup_printf ("{ \"match\": { \"payload\": \"%s\" }, \"spawn\": [ \"/non-existent\" ], \"problem\": \"%s\" }", payload, problem);
} }
else else
{ {
bridge = g_strdup_printf ("{ \"match\": { \"payload\": \"%s\" }, \"spawn\": [ \"/non-existant\" ] }", payload); bridge = g_strdup_printf ("{ \"match\": { \"payload\": \"%s\" }, \"spawn\": [ \"/non-existent\" ] }", payload);
} }
peer = peer_new (transport, bridge); peer = peer_new (transport, bridge);
@ -422,7 +422,7 @@ test_fallback (TestCase *tc,
{ {
GBytes *sent; GBytes *sent;
/* The "upper" channel has a local implementaiton to fallback to */ /* The "upper" channel has a local implementation to fallback to */
tc->peer = mock_peer_fail_new (tc->transport, "upper", NULL); tc->peer = mock_peer_fail_new (tc->transport, "upper", NULL);
emit_string (tc, NULL, "{\"command\": \"open\", \"channel\": \"a\", \"payload\": \"upper\"}"); emit_string (tc, NULL, "{\"command\": \"open\", \"channel\": \"a\", \"payload\": \"upper\"}");

View file

@ -536,7 +536,7 @@ test_sharable_processing (TestCase *tc,
cockpit_assert_json_eq (control, "{\"command\": \"open\", \"channel\": \"a\", \"payload\": \"host\", \"user\": \"user\"}"); cockpit_assert_json_eq (control, "{\"command\": \"open\", \"channel\": \"a\", \"payload\": \"host\", \"user\": \"user\"}");
control = NULL; control = NULL;
/* Test user with sharable is not touched */ /* Test user with shareable is not touched */
emit_string (tc, NULL, "{\"command\": \"open\", \"channel\": \"a\", \"payload\": \"host\", \"host\":\"localhost\", \"user\": \"user\", \"session\": \"other\"}"); emit_string (tc, NULL, "{\"command\": \"open\", \"channel\": \"a\", \"payload\": \"host\", \"host\":\"localhost\", \"user\": \"user\", \"session\": \"other\"}");
while ((control = mock_transport_pop_control (tc->transport)) == NULL) while ((control = mock_transport_pop_control (tc->transport)) == NULL)
g_main_context_iteration (NULL, TRUE); g_main_context_iteration (NULL, TRUE);

View file

@ -160,7 +160,7 @@ test_prepare_fail (TestCase *tc,
GVariant *retval; GVariant *retval;
GError *error = NULL; GError *error = NULL;
cockpit_bridge_path_passwd = SRCDIR "/src/bridge/mock-setup/non-existant"; cockpit_bridge_path_passwd = SRCDIR "/src/bridge/mock-setup/non-existent";
cockpit_expect_message ("unable to open*"); cockpit_expect_message ("unable to open*");
@ -275,7 +275,7 @@ test_transfer_fail (TestCase *tc,
const gchar *empty[] = { NULL }; const gchar *empty[] = { NULL };
cockpit_bridge_path_passwd = SRCDIR "/src/bridge/mock-setup/non-existant"; cockpit_bridge_path_passwd = SRCDIR "/src/bridge/mock-setup/non-existent";
cockpit_expect_message ("unable to open*"); cockpit_expect_message ("unable to open*");
@ -561,7 +561,7 @@ test_commit_fail_passwd (TestCase *tc,
const gchar *empty[] = { NULL }; const gchar *empty[] = { NULL };
cockpit_bridge_path_passwd = SRCDIR "/src/bridge/mock-setup/non-existant"; cockpit_bridge_path_passwd = SRCDIR "/src/bridge/mock-setup/non-existent";
cockpit_expect_message ("unable to open*"); cockpit_expect_message ("unable to open*");

View file

@ -756,7 +756,7 @@ cockpit_channel_class_init (CockpitChannelClass *klass)
/** /**
* CockpitChannel:capabilities: * CockpitChannel:capabilities:
* *
* The capabilties that this channel supports. * The capabilities that this channel supports.
*/ */
g_object_class_install_property (gobject_class, PROP_CAPABILITIES, g_object_class_install_property (gobject_class, PROP_CAPABILITIES,
g_param_spec_boxed ("capabilities", g_param_spec_boxed ("capabilities",
@ -783,7 +783,7 @@ cockpit_channel_class_init (CockpitChannelClass *klass)
* @self: a channel * @self: a channel
* @problem: the problem or NULL * @problem: the problem or NULL
* *
* Close the channel. This can be called mulitple times. * Close the channel. This can be called multiple times.
* *
* It may be that the channel doesn't close immediately. * It may be that the channel doesn't close immediately.
* The channel will emit the CockpitChannel::closed signal when the * The channel will emit the CockpitChannel::closed signal when the
@ -829,7 +829,7 @@ cockpit_channel_close (CockpitChannel *self,
* @problem: the problem * @problem: the problem
* *
* Close the channel with a @problem. In addition a "message" field * Close the channel with a @problem. In addition a "message" field
* will be set on the channel, using the @format argument to bulid * will be set on the channel, using the @format argument to build
* the message. The message will also be logged. * the message. The message will also be logged.
* *
* See cockpit_channel_close() for further info. * See cockpit_channel_close() for further info.

View file

@ -58,7 +58,7 @@ cockpit_journal_log_handler (const gchar *log_domain,
const gchar *prefix; const gchar *prefix;
/* /*
* Note: we should not call GLib fucntions here. * Note: we should not call GLib functions here.
* *
* Mapping glib log levels to syslog priorities * Mapping glib log levels to syslog priorities
* is not at all obvious. * is not at all obvious.

View file

@ -415,7 +415,7 @@ cockpit_transport_maybe_frame (GBytes *message,
* @options: location to return the options * @options: location to return the options
* *
* Parse a command and return various values from the * Parse a command and return various values from the
* command. The @options value is transfered with ownership, * command. The @options value is transferred with ownership,
* so you should free it after done. @command and @channel are owned by * so you should free it after done. @command and @channel are owned by
* @options. @channel will be NULL for a missing channel. * @options. @channel will be NULL for a missing channel.
* *
@ -437,7 +437,7 @@ cockpit_transport_parse_command (GBytes *payload,
object = cockpit_json_parse_bytes (payload, &error); object = cockpit_json_parse_bytes (payload, &error);
if (!object) if (!object)
{ {
g_warning ("Received unparseable control message: %s", error->message); g_warning ("Received unparsable control message: %s", error->message);
g_error_free (error); g_error_free (error);
goto out; goto out;
} }

View file

@ -35,7 +35,7 @@ struct _CockpitTransportClass
/* signals */ /* signals */
/* /*
* Fired when the transport recieves a new message. * Fired when the transport receives a new message.
*/ */
gboolean (* recv) (CockpitTransport *transport, gboolean (* recv) (CockpitTransport *transport,
const gchar *channel, const gchar *channel,

View file

@ -908,7 +908,7 @@ finish_headers (CockpitWebResponse *self,
/** /**
* cockpit_web_response_set_cache_type: * cockpit_web_response_set_cache_type:
* @self: the response * @self: the response
* @cache_type: Ensures the apropriate cache headers are returned for * @cache_type: Ensures the appropriate cache headers are returned for
the given cache type. the given cache type.
*/ */
void void

View file

@ -132,7 +132,7 @@ test_set_language (const gconstpointer data)
g_assert_cmpstr (dgettext ("test", "Unavailable"), ==, fixture->string); g_assert_cmpstr (dgettext ("test", "Unavailable"), ==, fixture->string);
} }
/* A second time, excercise cache code */ /* A second time, exercise cache code */
cockpit_locale_set_language (fixture->language); cockpit_locale_set_language (fixture->language);
/* Was supposed to fail */ /* Was supposed to fail */

View file

@ -838,7 +838,7 @@ test_spawn_and_fail (void)
gchar *problem = NULL; gchar *problem = NULL;
CockpitPipe *pipe; CockpitPipe *pipe;
const gchar *argv[] = { "/non-existant", NULL }; const gchar *argv[] = { "/non-existent", NULL };
pipe = cockpit_pipe_spawn (argv, NULL, NULL, COCKPIT_PIPE_FLAGS_NONE); pipe = cockpit_pipe_spawn (argv, NULL, NULL, COCKPIT_PIPE_FLAGS_NONE);
g_assert (pipe != NULL); g_assert (pipe != NULL);

View file

@ -239,7 +239,7 @@ test_return_error_resource (TestCase *tc,
{ {
const gchar *roots[] = { srcdir, NULL }; const gchar *roots[] = { srcdir, NULL };
cockpit_web_failure_resource = "/org/cockpit-project/Cockpit/fail.html"; cockpit_web_failure_resource = "/org/cockpit-project/Cockpit/fail.html";
cockpit_web_response_file (tc->response, "/non-existant", roots); cockpit_web_response_file (tc->response, "/non-existent", roots);
cockpit_assert_strmatch (output_as_string (tc), "HTTP/1.1 404 Not Found*<img*Not Found*"); cockpit_assert_strmatch (output_as_string (tc), "HTTP/1.1 404 Not Found*<img*Not Found*");
cockpit_web_failure_resource = NULL; cockpit_web_failure_resource = NULL;
} }
@ -249,7 +249,7 @@ test_file_not_found (TestCase *tc,
gconstpointer user_data) gconstpointer user_data)
{ {
const gchar *roots[] = { srcdir, NULL }; const gchar *roots[] = { srcdir, NULL };
cockpit_web_response_file (tc->response, "/non-existant", roots); cockpit_web_response_file (tc->response, "/non-existent", roots);
cockpit_assert_strmatch (output_as_string (tc), "HTTP/1.1 404 Not Found*"); cockpit_assert_strmatch (output_as_string (tc), "HTTP/1.1 404 Not Found*");
} }
@ -332,7 +332,7 @@ test_file_breakout_non_existant (TestCase *tc,
{ {
gchar *root = realpath ( SRCDIR "/src", NULL); gchar *root = realpath ( SRCDIR "/src", NULL);
const gchar *roots[] = { root, NULL }; const gchar *roots[] = { root, NULL };
const gchar *breakout = "/../non-existant"; const gchar *breakout = "/../non-existent";
gchar *check = g_build_filename (roots[0], breakout, NULL); gchar *check = g_build_filename (roots[0], breakout, NULL);
g_assert (root); g_assert (root);
g_assert (!g_file_test (check, G_FILE_TEST_EXISTS)); g_assert (!g_file_test (check, G_FILE_TEST_EXISTS));
@ -1415,7 +1415,7 @@ test_negotiation_notfound (void)
GError *error = NULL; GError *error = NULL;
GBytes *bytes; GBytes *bytes;
bytes = cockpit_web_response_negotiation (SRCDIR "/src/common/mock-content/non-existant", bytes = cockpit_web_response_negotiation (SRCDIR "/src/common/mock-content/non-existent",
NULL, NULL, &chosen, &error); NULL, NULL, &chosen, &error);
g_assert_no_error (error); g_assert_no_error (error);

View file

@ -369,10 +369,10 @@ log_problem (char *line,
static const char * static const char *
get_optional_env (const char *name, get_optional_env (const char *name,
const char *overide) const char *override)
{ {
if (overide) if (override)
return overide; return override;
return getenv (name); return getenv (name);
} }
@ -543,7 +543,7 @@ get_environ_vars_from_agent (char *line,
void *arg) void *arg)
{ {
/* /*
* ssh-agent outputs commands for exporting it's envirnment * ssh-agent outputs commands for exporting it's environment
* variables. We want to return these variables so parse * variables. We want to return these variables so parse
* them out and store them. * them out and store them.
*/ */
@ -922,7 +922,7 @@ start_agent (pam_handle_t *pamh,
&auth_socket, &auth_socket,
&auth_pid); &auth_pid);
/* Store pid and socket enviroment vars */ /* Store pid and socket environment vars */
if (!success || !auth_socket || !auth_pid) if (!success || !auth_socket || !auth_pid)
{ {
res = PAM_SERVICE_ERR; res = PAM_SERVICE_ERR;

View file

@ -36,7 +36,7 @@
static int unexpected_message; static int unexpected_message;
/* Enviroment variables we set */ /* Environment variables we set */
static const char *env_names[] = { static const char *env_names[] = {
"XDG_RUNTIME_DIR", "XDG_RUNTIME_DIR",
"HOME", "HOME",

View file

@ -1439,7 +1439,7 @@ cockpit_ssh_connect (CockpitSshData *data,
g_warn_if_fail (ssh_options_set (data->session, SSH_OPTIONS_USER, data->username) == 0); g_warn_if_fail (ssh_options_set (data->session, SSH_OPTIONS_USER, data->username) == 0);
} }
/* If the user specifies a port explicitely, overwrite the config */ /* If the user specifies a port explicitly, overwrite the config */
if (port != 0) if (port != 0)
g_warn_if_fail (ssh_options_set (data->session, SSH_OPTIONS_PORT, &port) == 0); g_warn_if_fail (ssh_options_set (data->session, SSH_OPTIONS_PORT, &port) == 0);
@ -2115,7 +2115,7 @@ cockpit_ssh_source_dispatch (GSource *source,
g_return_val_if_fail ((cond & G_IO_NVAL) == 0, FALSE); g_return_val_if_fail ((cond & G_IO_NVAL) == 0, FALSE);
/* /*
* HACK: Yes this is anohter poll() call. The async support in * HACK: Yes this is another poll() call. The async support in
* libssh is quite hacky right now. * libssh is quite hacky right now.
* *
* https://red.libssh.org/issues/155 * https://red.libssh.org/issues/155

View file

@ -486,7 +486,7 @@ do_auth_response (CockpitTransport *transport,
static void static void
do_basic_auth (CockpitTransport *transport, do_basic_auth (CockpitTransport *transport,
const gchar *challange, const gchar *challenge,
const gchar *user, const gchar *user,
const gchar *password) const gchar *password)
{ {
@ -498,7 +498,7 @@ do_basic_auth (CockpitTransport *transport,
encoded = g_base64_encode ((guchar *)userpass, strlen (userpass)); encoded = g_base64_encode ((guchar *)userpass, strlen (userpass));
response = g_strdup_printf ("Basic %s", encoded); response = g_strdup_printf ("Basic %s", encoded);
do_auth_response (transport, challange, response); do_auth_response (transport, challenge, response);
g_free (userpass); g_free (userpass);
g_free (response); g_free (response);
@ -1050,7 +1050,7 @@ test_hostkey_conversation_invalid (TestCase *tc,
/* The output from this will go to stderr */ /* The output from this will go to stderr */
static const TestFixture fixture_bad_command = { static const TestFixture fixture_bad_command = {
.ssh_command = "/nonexistant", .ssh_command = "/nonexistent",
.problem = "no-cockpit" .problem = "no-cockpit"
}; };

View file

@ -93,7 +93,7 @@ main (void)
* back to NULL. that's how we know when to stop waiting. * back to NULL. that's how we know when to stop waiting.
* *
* In effect, the duration of job_path being set to non-NULL is more * In effect, the duration of job_path being set to non-NULL is more
* or less equal to the duration of the existance of a job object at * or less equal to the duration of the existence of a job object at
* that path. * that path.
*/ */
r = sd_bus_match_signal_async (bus, NULL, r = sd_bus_match_signal_async (bus, NULL,

View file

@ -341,7 +341,7 @@ test_parse_headers_not_enough (void)
const gchar *input = const gchar *input =
"Header1: value3\r\n" "Header1: value3\r\n"
"Header2: field\r\n" "Header2: field\r\n"
"Head3: Anothe"; "Head3: Another";
gssize ret; gssize ret;

View file

@ -733,11 +733,11 @@ process_contents_rfc6455 (WebSocketConnection *self,
{ {
if (pv->message_data) if (pv->message_data)
{ {
g_message ("received out of order inital message fragment"); g_message ("received out of order initial message fragment");
protocol_error_and_close (self); protocol_error_and_close (self);
return; return;
} }
g_debug ("received inital fragment frame %d with %d payload", (int)opcode, (int)payload_len); g_debug ("received initial fragment frame %d with %d payload", (int)opcode, (int)payload_len);
} }
/* Middle fragment of a message */ /* Middle fragment of a message */
@ -1451,7 +1451,7 @@ web_socket_connection_class_init (WebSocketConnectionClass *klass)
* *
* The underlying IO stream the WebSocket is communicating over. For servers * The underlying IO stream the WebSocket is communicating over. For servers
* this must be specified as a construct property. For clients, this may be * this must be specified as a construct property. For clients, this may be
* specified, if you have a stream that you've alrady connected to. * specified, if you have a stream that you've already connected to.
* *
* The input and output streams must be pollable streams. * The input and output streams must be pollable streams.
*/ */
@ -1497,7 +1497,7 @@ web_socket_connection_class_init (WebSocketConnectionClass *klass)
/** /**
* WebSocketConnection::error: * WebSocketConnection::error:
* @self: the WebSocket * @self: the WebSocket
* @error: the error that occured * @error: the error that occurred
* *
* Emitted when an error occurred on the WebSocket. This may be fired * Emitted when an error occurred on the WebSocket. This may be fired
* multiple times. Fatal errors will be followed by the #WebSocketConnection::close * multiple times. Fatal errors will be followed by the #WebSocketConnection::close

View file

@ -116,7 +116,7 @@ get_ws_https_instance (void)
* (which will be added). If @contents is %NULL then no attempt will be * (which will be added). If @contents is %NULL then no attempt will be
* made to read the file contents, but the other checks are performed. * made to read the file contents, but the other checks are performed.
* *
* On sucess, the size of the certificate file (excluding nul * On success, the size of the certificate file (excluding nul
* terminator) is returned. This value is never 0. On error, -1 is * terminator) is returned. This value is never 0. On error, -1 is
* returned with errno not guaranteed to be set (but a message will be * returned with errno not guaranteed to be set (but a message will be
* logged). * logged).

View file

@ -791,7 +791,7 @@
* session ends login-data should be too. * session ends login-data should be too.
*/ */
localStorage.setItem(application + 'login-data', str); localStorage.setItem(application + 'login-data', str);
/* Backwards compatbility for packages that aren't application prefixed */ /* Backwards compatibility for packages that aren't application prefixed */
localStorage.setItem('login-data', str); localStorage.setItem('login-data', str);
} }

View file

@ -329,7 +329,7 @@ map_gssapi_to_local (gss_name_t name,
} }
else else
{ {
debug ("ignoring non-existant gssapi local user '%s'", str); debug ("ignoring non-existent gssapi local user '%s'", str);
/* If the local user doesn't exist, pretend gss_localname() failed */ /* If the local user doesn't exist, pretend gss_localname() failed */
free (str); free (str);
@ -360,7 +360,7 @@ map_gssapi_to_local (gss_name_t name,
} }
else else
{ {
warnx ("non-existant local user '%s'", str); warnx ("non-existent local user '%s'", str);
free (str); free (str);
str = NULL; str = NULL;
} }
@ -470,7 +470,7 @@ perform_gssapi (const char *authorization)
free (challenge); free (challenge);
/* /*
* The GSSAPI mechanism can require multiple chanllenge response * The GSSAPI mechanism can require multiple challenge response
* iterations ... so do that here. * iterations ... so do that here.
*/ */
free (input.value); free (input.value);

View file

@ -46,7 +46,7 @@
/* /*
* To recalculate the checksums found in this file, do something like: * To recalculate the checksums found in this file, do something like:
* $ XDG_DATA_DIRS=$PWD/src/bridge/mock-resource/system/ XDG_DATA_HOME=/nonexistant ./cockpit-bridge --packages * $ XDG_DATA_DIRS=$PWD/src/bridge/mock-resource/system/ XDG_DATA_HOME=/nonexistent ./cockpit-bridge --packages
*/ */
#define CHECKSUM "$6d675909f0b33b83a48e67e29cea9797012ded09394546634b9cd967bbe3fbf5" #define CHECKSUM "$6d675909f0b33b83a48e67e29cea9797012ded09394546634b9cd967bbe3fbf5"
@ -556,7 +556,7 @@ test_resource_failure (TestResourceCase *tc,
} }
static const TestResourceFixture checksum_fixture = { static const TestResourceFixture checksum_fixture = {
.xdg_data_home = "/nonexistant" .xdg_data_home = "/nonexistent"
}; };

View file

@ -40,7 +40,7 @@
/* /*
* To recalculate the checksums found in this file, do something like: * To recalculate the checksums found in this file, do something like:
* $ XDG_DATA_DIRS=$PWD/src/bridge/mock-resource/system/ XDG_DATA_HOME=/nonexistant ./cockpit-bridge --packages * $ XDG_DATA_DIRS=$PWD/src/bridge/mock-resource/system/ XDG_DATA_HOME=/nonexistent ./cockpit-bridge --packages
*/ */
#define CHECKSUM "$6d675909f0b33b83a48e67e29cea9797012ded09394546634b9cd967bbe3fbf5" #define CHECKSUM "$6d675909f0b33b83a48e67e29cea9797012ded09394546634b9cd967bbe3fbf5"
@ -381,7 +381,7 @@ setup_default (Test *test,
if (fixture->with_home) if (fixture->with_home)
g_setenv ("XDG_DATA_HOME", SRCDIR "/src/bridge/mock-resource/home", TRUE); g_setenv ("XDG_DATA_HOME", SRCDIR "/src/bridge/mock-resource/home", TRUE);
else else
g_setenv ("XDG_DATA_HOME", "/nonexistant", TRUE); g_setenv ("XDG_DATA_HOME", "/nonexistent", TRUE);
base_setup (test); base_setup (test);
test->response = cockpit_web_response_new (test->io, test->response = cockpit_web_response_new (test->io,

View file

@ -16,7 +16,7 @@ function ph_only(els, sel)
if (els.length === 0) if (els.length === 0)
throw sel + " not found"; throw sel + " not found";
if (els.length > 1) if (els.length > 1)
throw sel + " is ambigous"; throw sel + " is ambiguous";
return els[0]; return els[0];
} }

View file

@ -186,7 +186,7 @@ class AvocadoTestSuite:
def _run_one_avocado_test(self, test): def _run_one_avocado_test(self, test):
status = True status = True
start_time = datetime.datetime.now() start_time = datetime.datetime.now()
# wrap command to timeout to see also partial run result, to see whats happen # wrap command to timeout to see also partial run result, to see what happens
# instead of empty output and just timeout # instead of empty output and just timeout
self.avocado_command = ["timeout {}".format(self.timeout - round(self.timeout/100)), self.avocado_command = ["timeout {}".format(self.timeout - round(self.timeout/100)),
self.base_cmd, "run", self.base_cmd, "run",
@ -359,7 +359,7 @@ class SeleniumOwnHub(SeleniumTestSuite):
self.env["HUB"] = hub_address self.env["HUB"] = hub_address
self.env["GUEST"] = guest_adress self.env["GUEST"] = guest_adress
self.env["PORT"] = cockpit_port self.env["PORT"] = cockpit_port
# avocado and cockpit machine is in same network so use internal adress # avocado and cockpit machine is in same network so use internal address
self.env["SSH_PORT"] = "22" self.env["SSH_PORT"] = "22"
self.env["SSH_GUEST"] = self.ipaddr_cockpit self.env["SSH_GUEST"] = self.ipaddr_cockpit
self.env["BROWSER"] = browser self.env["BROWSER"] = browser
@ -383,7 +383,7 @@ def main():
dest="hub", dest="hub",
action="store", action="store",
help="Use own Selenium hub (it is important to ensure that hub can see cockpit machine)" help="Use own Selenium hub (it is important to ensure that hub can see cockpit machine)"
" You can use adress formats:" " You can use address formats:"
" yourHubIP" " yourHubIP"
" or yourHubIP:CockpitIP" " or yourHubIP:CockpitIP"
" or yourHubIP:CockpitIP:CockpitPort" " or yourHubIP:CockpitIP:CockpitPort"

View file

@ -179,7 +179,7 @@ class SeleniumTest(Test):
self.log.info(msg) self.log.info(msg)
def tearDown(self): def tearDown(self):
# take screenshot everytime to ensure that if test fails there will be debugging info # take screenshot every time to ensure that if test fails there will be debugging info
# in case it assert in some condition, not directly inside elements # in case it assert in some condition, not directly inside elements
# and logic of when transfer images is up to scheduler # and logic of when transfer images is up to scheduler
self.take_screenshot(phase="{}-tearDown".format(self.id()), fatal=False) self.take_screenshot(phase="{}-tearDown".format(self.id()), fatal=False)
@ -312,7 +312,7 @@ parameters:
overridetry - change value of repeats overridetry - change value of repeats
fatal - boolean if search is fatal or notice fatal - boolean if search is fatal or notice
cond - use selenium conditions (aliases are defined above class) cond - use selenium conditions (aliases are defined above class)
wait_data_loaded - use javascipt to wait for element has attribute-data loaded; ONLY applies to cockpit page <iframe>s wait_data_loaded - use javascript to wait for element has attribute-data loaded; ONLY applies to cockpit page <iframe>s
text_ - text to be present in element text_ - text to be present in element
""" """
if not baseelement: if not baseelement:

View file

@ -221,7 +221,7 @@ class TestApps(PackageCase):
# First lay down some good XML so that we can later detect the reaction to broken XML. # First lay down some good XML so that we can later detect the reaction to broken XML.
reset() reset()
# Unparseable # Unparsable
m.write("/usr/share/app-info/xmls/test.xml", """ m.write("/usr/share/app-info/xmls/test.xml", """
This <is <not XML. This <is <not XML.
""") """)

View file

@ -119,7 +119,7 @@ account required pam_succeed_if.so user ingroup %s""" % m.get_admin_group
b.wait_text("#account-user-name", "admin") b.wait_text("#account-user-name", "admin")
try: try:
m.execute("journalctl -p 7 SYSLOG_IDENTIFIER=cockpit-ws | grep 'cockpit-session: opening pam session'") m.execute("journalctl -p 7 SYSLOG_IDENTIFIER=cockpit-ws | grep 'cockpit-session: opening pam session'")
assert False, "cockpit-session debug messsages found" assert False, "cockpit-session debug messages found"
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
pass pass

View file

@ -1532,7 +1532,7 @@ class TestMachines(MachineCase, StorageHelpers, NetworkHelpers):
storage_pool="No Storage", storage_pool="No Storage",
start_vm=True, delete=False)) start_vm=True, delete=False))
# We don't want to use start_vm == False because if we get a seperate install phase # We don't want to use start_vm == False because if we get a separate install phase
# virt-install will overwrite our changes. # virt-install will overwrite our changes.
self.machine.execute("virsh destroy pxe-guest") self.machine.execute("virsh destroy pxe-guest")
@ -2132,7 +2132,7 @@ class TestMachines(MachineCase, StorageHelpers, NetworkHelpers):
b.click("button.alert-link.more-button") b.click("button.alert-link.more-button")
waitForError(errors, error_location) waitForError(errors, error_location)
# Close the notificaton # Close the notification
b.click(".toast-notifications-list-pf div.pf-c-alert button.pf-c-button") b.click(".toast-notifications-list-pf div.pf-c-alert button.pf-c-button")
b.wait_not_present(".toast-notifications-list-pf div.pf-c-alert") b.wait_not_present(".toast-notifications-list-pf div.pf-c-alert")
@ -2245,7 +2245,7 @@ class TestMachines(MachineCase, StorageHelpers, NetworkHelpers):
b.wait_in_text(selector, before) b.wait_in_text(selector, before)
# Make sure that the initial state goes away and then try to check what the new state is # Make sure that the initial state goes away and then try to check what the new state is
# because we might end up checking the text for the new state the momment it dissapears # because we might end up checking the text for the new state the momment it disappears
def waitStateWentAway(selector, state): def waitStateWentAway(selector, state):
try: try:
b.wait_text_not(selector, state) b.wait_text_not(selector, state)
@ -2974,7 +2974,7 @@ class TestMachines(MachineCase, StorageHelpers, NetworkHelpers):
b.wait_in_text("body", "Virtual Machines") b.wait_in_text("body", "Virtual Machines")
self.waitVmRow("subVmTest1") self.waitVmRow("subVmTest1")
# Wait for the login promt before we try detaching disks - we need the OS to be fully responsive # Wait for the login prompt before we try detaching disks - we need the OS to be fully responsive
wait(lambda: "login as 'cirros' user" in self.machine.execute("cat {0}".format(args["logfile"])), delay=3) wait(lambda: "login as 'cirros' user" in self.machine.execute("cat {0}".format(args["logfile"])), delay=3)
# Test detaching non permanent disk of a running domain # Test detaching non permanent disk of a running domain
@ -3954,7 +3954,7 @@ class TestMachines(MachineCase, StorageHelpers, NetworkHelpers):
xfail_error = "Invalid", xfail_error = "Invalid",
).execute() ).execute()
# Check "Address not withing subnet" # Check "Address not within subnet"
NetworkCreateDialog( NetworkCreateDialog(
self, self,
name="test_network", name="test_network",
@ -4405,7 +4405,7 @@ class TestMachines(MachineCase, StorageHelpers, NetworkHelpers):
pool_name="disk-pool", pool_name="disk-pool",
pool_type="disk", pool_type="disk",
vol_name="sda1", # Partition names must follow pattern of sda1, sda2... vol_name="sda1", # Partition names must follow pattern of sda1, sda2...
size="10", # Only 50MiB availabl on disk-pool size="10", # Only 50MiB available on disk-pool
unit="MiB", unit="MiB",
format="none", format="none",
remove=True, remove=True,

Some files were not shown because too many files have changed in this diff Show more