-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from EGI-Foundation/v0.1.0-rc
V0.1.0 rc
- Loading branch information
Showing
18 changed files
with
283 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
__pycache__/ | ||
.molecule/ | ||
*.pyc | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,12 @@ metapackage: | |
name: emi-wn | ||
'7': | ||
name: wn | ||
|
||
prerequisites: | ||
redhat: | ||
'6': | ||
- ntpdate | ||
- ntp | ||
'7': | ||
- ntpdate | ||
- ntp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
a1_grid_env | ||
c-ares | ||
cleanup-grid-accounts | ||
dcache-srmclient | ||
dcap | ||
dcap-devel | ||
dcap-libs | ||
dcap-tunnel-gsi | ||
dcap-tunnel-krb | ||
dcap-tunnel-ssl | ||
dcap-tunnel-telnet | ||
dpm | ||
dpm-devel | ||
dpm-libs | ||
dpm-perl | ||
dpm-python | ||
emi-version | ||
emi.amga.amga-cli | ||
emi.saga-adapter.context-cpp | ||
emi.saga-adapter.isn-cpp | ||
emi.saga-adapter.sd-cpp | ||
fetch-crl | ||
gfal | ||
gfal-python | ||
gfal2-all | ||
gfal2-devel | ||
gfal2-doc | ||
gfal2-python | ||
gfal2-util | ||
gfalFS | ||
ginfo | ||
glite-jobid-api-c | ||
glite-lb-client | ||
glite-lb-client-progs | ||
glite-lb-common | ||
glite-lbjp-common-gss | ||
glite-lbjp-common-trio | ||
glite-service-discovery-api-c | ||
glite-wms-brokerinfo-access | ||
glite-wn-info | ||
glite-yaim-clients | ||
glite-yaim-core | ||
globus-gass-copy-progs | ||
globus-proxy-utils | ||
gridsite-libs | ||
jclassads | ||
lcg-info | ||
lcg-infosites | ||
lcg-ManageVOTag | ||
lcg-tags | ||
lcg-util | ||
lcg-util-libs | ||
lcg-util-python | ||
lcgdm-devel | ||
lcgdm-devel(x86-32) | ||
lcgdm-libs | ||
lfc | ||
lfc-devel | ||
lfc-libs | ||
lfc-perl | ||
lfc-python | ||
openldap-clients | ||
python-ldap | ||
uberftp | ||
voms-clients3 | ||
voms-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
c-ares | ||
cleanup-grid-accounts | ||
cvmfs | ||
dcache-srmclient | ||
dcap | ||
dcap-devel | ||
dcap-libs | ||
dcap-tunnel-gsi | ||
dcap-tunnel-krb | ||
dcap-tunnel-ssl | ||
dcap-tunnel-telnet | ||
dpm | ||
dpm-devel | ||
dpm-perl | ||
dpm-python | ||
fetch-crl | ||
gfal2-all | ||
gfal2-python | ||
gfal2-util | ||
gfalFS | ||
gfal2-all | ||
gfal2-doc | ||
gfal2-devel | ||
ginfo | ||
lcg-info | ||
lcg-ManageVOTag | ||
lcg-tags | ||
lcgdm-devel | ||
globus-gass-copy-progs | ||
globus-proxy-utils | ||
glite-yaim-core | ||
gridsite-libs | ||
lcg-infosites | ||
lfc | ||
lfc-devel | ||
lfc-perl | ||
openldap-clients | ||
python-ldap | ||
uberftp | ||
voms-clients-java | ||
voms-devel | ||
xrootd-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
a1_grid_env | ||
libdpm | ||
emi-version | ||
emi.amga.amga-cli | ||
emi.saga-adapter.context-cpp | ||
emi.saga-adapter.isn-cpp | ||
emi.saga-adapter.sd-cpp | ||
gfal | ||
gfal-python | ||
glite-jobid-api-c | ||
glite-lb-client | ||
glite-lb-common | ||
glite-lb-client-progs | ||
glite-lbjp-common-gss | ||
glite-lbjp-common-trio | ||
glite-service-discovery-api-c | ||
glite-wms-brokerinfo-access | ||
glite-wn-info | ||
glite-yaim-clients | ||
jclassads | ||
lcgdm-devel | ||
lcgdm-libs | ||
lcg-util | ||
liblfc | ||
lcg-util-libs | ||
lcg-util-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
c-ares | ||
cleanup-grid-accounts | ||
cvmfs | ||
dcache-srmclient | ||
dcap | ||
dcap-devel | ||
dcap-libs | ||
dcap-tunnel-gsi | ||
dcap-tunnel-krb | ||
dcap-tunnel-ssl | ||
dcap-tunnel-telnet | ||
dpm | ||
dpm-libs | ||
dpm-devel | ||
dpm-perl | ||
dpm-python | ||
fetch-crl | ||
gfal2-all | ||
gfal2-python | ||
gfal2-util | ||
gfalFS | ||
gfal2-all | ||
gfal2-doc | ||
gfal2-devel | ||
ginfo | ||
lcg-info | ||
lcg-ManageVOTag | ||
lcg-tags | ||
lcgdm-devel | ||
globus-gass-copy-progs | ||
globus-proxy-utils | ||
glite-yaim-core | ||
gridsite-libs | ||
lcg-infosites | ||
lfc | ||
lfc-devel | ||
lfc-perl | ||
lfc-libs | ||
openldap-clients | ||
python-ldap | ||
uberftp | ||
voms-clients-java | ||
voms-devel | ||
xrootd-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
- brucellino.umd | ||
- EGI-Foundation.umd | ||
- EGI-Foundation.voms-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import os | ||
import testinfra.utils.ansible_runner | ||
import pytest | ||
# See http://egi-qc.github.io/#INSTALLATION | ||
# Packages must install without issues in a machine configured without any | ||
# external repositories (valid repositories are the standard OS repo, UMD repo | ||
# and EPEL repo for RH based distros) | ||
# Packages must follow the OS policies (name of packages, use of filesystem | ||
# hierarchy, init scripts, ...). For any detected issue, open a ticket. | ||
# Packages must be signed (or the repository where they are fetched from is | ||
# signed for Debian-based distros) | ||
|
||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( | ||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') | ||
|
||
|
||
def packages(distro, release): | ||
listfile_name = "list-" + distro + '-' + release + ".txt" | ||
listfile = open(listfile_name, "r") | ||
packages = listfile.read().splitlines() | ||
return packages | ||
|
||
|
||
@pytest.mark.parametrize("pkg", packages("redhat", "6")) | ||
def test_packages6(host, pkg): | ||
if (host.system_info.distribution == 'redhat' and | ||
host.system_info.distribution.release.startswith(6)): | ||
assert host.package(pkg).is_installed | ||
|
||
|
||
@pytest.mark.parametrize("pkg", packages("redhat", "7")) | ||
def test_packages7(host, pkg): | ||
if (host.system_info.distribution == "redhat" and | ||
host.system_info.distribution.release.startswith(7)): | ||
assert host.package(pkg).is_installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
import testinfra.utils.ansible_runner | ||
import pytest | ||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( | ||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') | ||
# The vulnerability scanner on Quay gives us intelligence on which | ||
# vulnerabilities are exposed by packages included in these images. | ||
# We therefore keep track of those and test to see whether the installed | ||
# version is greater than the one reported as fixing the vulnerability | ||
|
||
|
||
@pytest.mark.parametrize('name,version', [ | ||
("gnupg2", "2.0.22-5.el7_5"), | ||
("python", "2.7.5-69.el7_5"), | ||
("python-libs", "2.7.5-69.el7_5")]) | ||
def test_vulnerable_packages(host, name, version): | ||
p = host.package(name) | ||
assert p.release >= version |
Oops, something went wrong.