Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RPM test paths and enable RpmPluginTests #444

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 25 additions & 26 deletions src/test/groovy/com/netflix/gradle/plugins/rpm/RpmPluginTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import static org.redline_rpm.header.Flags.*
import static org.redline_rpm.header.Header.HeaderTag.*
import static org.redline_rpm.payload.CpioHeader.*

@Ignore
class RpmPluginTest extends ProjectSpec {
def 'files'() {
Project project = ProjectBuilder.builder().build()
Expand All @@ -55,7 +54,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))


packageName = 'bleah'
Expand Down Expand Up @@ -232,7 +231,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'userTest'
version = '2.0'
Expand Down Expand Up @@ -291,7 +290,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))
packageName = 'userTest'
version = '2.0'
release = '2'
Expand Down Expand Up @@ -350,7 +349,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'userTest'
version = '2.0'
Expand Down Expand Up @@ -432,7 +431,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'one-prefix'
version = '1.0'
Expand Down Expand Up @@ -464,7 +463,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'one-prefix'
version = '1.0'
Expand Down Expand Up @@ -498,7 +497,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'one-prefix'
version = '1.0'
Expand Down Expand Up @@ -533,7 +532,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'one-prefix'
version = '1.0'
Expand Down Expand Up @@ -568,7 +567,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'multi-prefix'
version = '1.0'
Expand Down Expand Up @@ -604,7 +603,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'multi-prefix'
version = '1.0'
Expand Down Expand Up @@ -645,7 +644,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down Expand Up @@ -684,7 +683,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down Expand Up @@ -721,7 +720,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down Expand Up @@ -756,7 +755,7 @@ class RpmPluginTest extends ProjectSpec {
def rpmTask = project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'has-epoch'
version = '1.0'
Expand Down Expand Up @@ -786,7 +785,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand All @@ -811,7 +810,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down Expand Up @@ -859,7 +858,7 @@ class RpmPluginTest extends ProjectSpec {
Task task = project.task('buildRpm', type: Rpm) {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down Expand Up @@ -889,7 +888,7 @@ class RpmPluginTest extends ProjectSpec {
Rpm rpmTask = project.task('buildRpm', type: Rpm) {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

version = '1.0'
packageName = 'bleah'
Expand Down Expand Up @@ -920,7 +919,7 @@ class RpmPluginTest extends ProjectSpec {
Rpm rpmTask = project.task('buildRpm', type: Rpm) {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

version = '1.0'
packageName = 'bleah'
Expand Down Expand Up @@ -952,7 +951,7 @@ class RpmPluginTest extends ProjectSpec {
Rpm rpmTask = project.task('buildRpm', type: Rpm) {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

version = '1.0'
packageName = 'bleah'
Expand Down Expand Up @@ -987,7 +986,7 @@ class RpmPluginTest extends ProjectSpec {
Rpm rpmTask = project.task('buildRpm', type: Rpm) {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

version = '1.0'
packageName = 'bleah'
Expand Down Expand Up @@ -1023,7 +1022,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))
packageName = 'semvertest'
})

Expand All @@ -1049,7 +1048,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))
packageName = 'providesTest'
provides 'foo'
provides 'bar'
Expand Down Expand Up @@ -1078,7 +1077,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down Expand Up @@ -1127,7 +1126,7 @@ class RpmPluginTest extends ProjectSpec {
project.task([type: Rpm], 'buildRpm', {
File destination = project.file('build/tmp/RpmPluginTest')
destination.mkdirs()
destinationDirectory.set(project.file('build/tmp/RpmPlugintest'))
destinationDirectory.set(project.file('build/tmp/RpmPluginTest'))

packageName = 'bleah'
version = '1.0'
Expand Down