This fixes the network test to use systemd-network or NetworkManager
service based on what is active
Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
When --allow-insecure-http is not set and the IsValidURI function
recieves an HTTP URI, a warning will be displayed.
Signed-off-by: John Akre <john.w.akre@intel.com>
The IsValidMirror function was moved to the network package and renamed
to IsValidURI because it can be used for more than swupd mirror validation.
The IsValidURI function is used to check for supported URI protocols.
Signed-off-by: John Akre <john.w.akre@intel.com>
When executing interactively, text-base or graphical, we want
to always copy any local /etc network configuration files to
the target system.
If the user has made customer network settings, usually with
nmcli/nmtui for console, or NetworkManager on the desktop, these
will want to be propagated to the target.
Add command line option to avoid network copy.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Switch from NetworkManager-basic to NetworkManager for the pending
network patch set.
Change to running each systemctl command in sequence instead of as
a single command to improve the recovery rate for network restart.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Graphical UI version of the previous TUI feature
New functionality to download Pre and Post Installer messages
TODO: Display the messages as pop-ups
- Need to use system curl command to handle proxies for now
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Now check for which service is handling wired network interfaces.
Needed by the TUI which still handles static IP configurations for
wired connections.
TODO: Once NetworkManager is the new OS default, we can explore
configuring wireless interfaces via the TUI as well.
TODO: Consider change the other systemctl calls to use new dbus.
Dropping coverage requirement for this build
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
New functionality to download Pre and Post Installer messages
TODO: Display the messages as pop-ups
- Need to use system curl command to handle proxies for now
Refactoring for enabling:
- Moved FetchRemoteConfigFile from conf to network
- Move code for Clear Linux Version parsing until a utility function
which is called early in the flow for reuse
Now that use external curl FILE protocol passes.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
We also need to set either proxies or the
DNS search domain to enable pacdiscovery
if network testing does not pass.
Need to add:
systemctl enable pacdiscovery on target
Ensure we copy the /etc/systemd/network settings
- Fixed bug in showing dns server per interface
- Add new DNS Domain field per interface
- Mask out (skip) Wireless and Bridge interfaces
- Update Network Interface TUI
- Added DNS Domain
- Widen screen for error messages
- Moved Error labels before field
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This patch introduces the local-travis, an small util program locally
emulate the remote travis execution. The program will read the travis
yaml file and execute the tasks.
The program is not intended to be manually executed but wrapped by
"make check-coverage". The program uses the env var TRAVIS_CONF to
know where to find the travis yaml file (the makefile will have it all
set for you).
We also use the http_proxy, https_proxy and no_proxy if they are set.
If we're executing a docker command that supports -e flag then these
variables are also handled.
The check-coverage.sh script will also auto update the coverage database
and commit the changes if it detects a coverage increase. In order to
do that check-coverage will only update the database if there's no
unstaged changes in the tree and if it's being executed with
make check-coverage.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Fix version of Golang for Travis
Setting to 1.10 get parsed as a float and interrupted as 1.1 instead
of 1.10. Adding quotes so it is treated as string.
See: https://github.com/travis-ci/travis-ci/issues/9247
Revamp to use a Clear Linux Docker image for build and test.
- Telemetry not starting due to systemd issues
- Disabled Telemetry testing under this is resolved
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This is code is still alpha. The Text-based User Interface is
undergoing a resign of the layout before beta.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>