Skip to content

Commit

Permalink
use dnf config-manager + additional line with gpgcheck disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Dec 26, 2019
1 parent ea33b5a commit 16111ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/test/java/com/yegor256/rpm/RpmITCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void savesAndLoads() throws Exception {
"--rm",
"--volume",
String.format("%s:/repo", repo),
"centos:8",
"yegor256/yum-utils",
"/bin/bash",
"-c",
String.join(
Expand All @@ -105,11 +105,8 @@ public void savesAndLoads() throws Exception {
"cat /repo/repodata/primary.xml",
"cat /repo/repodata/filelists.xml",
"cat /repo/repodata/other.xml",
"echo '[repo]' >> /etc/yum.repos.d/repo.repo",
"echo 'name=test-repo' >> /etc/yum.repos.d/repo.repo",
"dnf config-manager --add-repo=file:///repo",
"echo 'gpgcheck=0' >> /etc/yum.repos.d/repo.repo",
"echo 'enabled=1' >> /etc/yum.repos.d/repo.repo",
"echo 'baseurl=file:///repo' >> /etc/yum.repos.d/repo.repo",
// @checkstyle LineLength (2 lines)
"dnf repolist --verbose --disablerepo='*' --enablerepo='repo'",
"ls -la /etc/yum.repos.d/",
Expand Down

0 comments on commit 16111ea

Please sign in to comment.