Skip to content

Commit

Permalink
Set RMT system UUID in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergeykot committed Aug 30, 2018
1 parent 287914c commit e626d30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ARG MYSQL_PASSWORD
ARG MYSQL_DATABASE
ARG SCC_USERNAME
ARG SCC_PASSWORD
ARG SYSTEM_UUID

RUN SUSEConnect -r $REGCODE
RUN zypper --non-interactive ar http://download.opensuse.org/repositories/openSUSE:/Tools/SLE_15/openSUSE:Tools.repo
Expand Down Expand Up @@ -56,6 +57,8 @@ scc:\n\
username: $SCC_USERNAME\n\
password: $SCC_PASSWORD\n\
" >> /etc/rmt.conf
RUN mkdir -p /var/lib/rmt/
RUN printf "$SYSTEM_UUID" >> /var/lib/rmt/system_uuid

RUN bundle

Expand Down
2 changes: 1 addition & 1 deletion integration/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pipeline {
post {
always {
sh 'docker-compose -f docker-compose-test.yml run rmt_test SUSEConnect -d'
sh 'docker-compose down'
sh 'docker-compose -f docker-compose-test.yml down'
sh 'docker system prune -f'
}
}
Expand Down

0 comments on commit e626d30

Please sign in to comment.