Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
[#83] One extra test for real-life path
Browse files Browse the repository at this point in the history
  • Loading branch information
nurkiewicz committed Dec 1, 2014
1 parent 3d9c450 commit 8db4a57
Showing 1 changed file with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,30 @@ class AppCoordinatesTest extends Specification {
coords.getConfigFiles(new File('/home')) == paths.collect { new File(new File('/home'), it) }

where:
env | country | name || paths
'prod' | 'pl' | 'foo' || ['/prod/foo.properties', '/prod/foo.yaml', '/prod/pl/foo-pl.properties', '/prod/pl/foo-pl.yaml']
'prod' | 'pl' | '/a/b/c' || ['/prod/a/b/c.properties', '/prod/a/b/c.yaml', '/prod/a/b/pl/c-pl.properties', '/prod/a/b/pl/c-pl.yaml']
'dev' | 'es' | '/com/ofg/fraud-es' || ['/dev/com/ofg/fraud.properties', '/dev/com/ofg/fraud.yaml', '/dev/com/ofg/es/fraud-es.properties', '/dev/com/ofg/es/fraud-es.yaml']
'dev' | 'pl' | '/com/ofg/pl/fraud-pl' || ['/dev/com/ofg/fraud.properties', '/dev/com/ofg/fraud.yaml', '/dev/com/ofg/pl/fraud-pl.properties', '/dev/com/ofg/pl/fraud-pl.yaml']
'dev' | 'pl' | '/com/ofg/pl/fraud' || ['/dev/com/ofg/fraud.properties', '/dev/com/ofg/fraud.yaml', '/dev/com/ofg/pl/fraud-pl.properties', '/dev/com/ofg/pl/fraud-pl.yaml']
env | country | name || paths
'prod' | 'pl' | 'foo' || ['/prod/foo.properties',
'/prod/foo.yaml',
'/prod/pl/foo-pl.properties',
'/prod/pl/foo-pl.yaml']
'prod' | 'pl' | '/a/b/c' || ['/prod/a/b/c.properties',
'/prod/a/b/c.yaml',
'/prod/a/b/pl/c-pl.properties',
'/prod/a/b/pl/c-pl.yaml']
'dev' | 'es' | '/com/ofg/fraud-es' || ['/dev/com/ofg/fraud.properties',
'/dev/com/ofg/fraud.yaml',
'/dev/com/ofg/es/fraud-es.properties',
'/dev/com/ofg/es/fraud-es.yaml']
'dev' | 'pl' | '/com/ofg/pl/fraud-pl' || ['/dev/com/ofg/fraud.properties',
'/dev/com/ofg/fraud.yaml',
'/dev/com/ofg/pl/fraud-pl.properties',
'/dev/com/ofg/pl/fraud-pl.yaml']
'dev' | 'pl' | '/com/ofg/pl/fraud' || ['/dev/com/ofg/fraud.properties',
'/dev/com/ofg/fraud.yaml',
'/dev/com/ofg/pl/fraud-pl.properties',
'/dev/com/ofg/pl/fraud-pl.yaml']
'stage-01' | 'ro' | 'com/ofg/loans/ro/backoffice-vivus-ro' || ['/stage-01/com/ofg/loans/backoffice-vivus.properties',
'/stage-01/com/ofg/loans/backoffice-vivus.yaml',
'/stage-01/com/ofg/loans/ro/backoffice-vivus-ro.properties',
'/stage-01/com/ofg/loans/ro/backoffice-vivus-ro.yaml']
}
}

0 comments on commit 8db4a57

Please sign in to comment.