This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcin Zajaczkowski
committed
Nov 18, 2014
1 parent
5f42a25
commit 1644f66
Showing
10 changed files
with
44 additions
and
97 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
36 changes: 0 additions & 36 deletions
36
...rty/src/test/groovy/com/ofg/infrastructure/property/DecryptingPropertyExtendedTest.groovy
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
...ng-property/src/test/groovy/com/ofg/infrastructure/property/DecryptingPropertyTest.groovy
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
...property/src/test/groovy/com/ofg/infrastructure/property/DecryptingPropertyTestApp.groovy
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,11 +1,10 @@ | ||
package com.ofg.infrastructure.property | ||
|
||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration | ||
import org.springframework.cloud.autoconfigure.ConfigClientAutoConfiguration | ||
import org.springframework.context.annotation.ComponentScan | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
@EnableAutoConfiguration | ||
@ComponentScan(basePackages = ['org.springframework.cloud.autoconfigure']) | ||
@ComponentScan(basePackageClasses = [ConfigClientAutoConfiguration.class]) | ||
class DecryptingPropertyTestApp { | ||
} |
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
5 changes: 2 additions & 3 deletions
5
.../src/test/groovy/com/ofg/infrastructure/property/decrypt/DecryptingPropertyTestApp.groovy
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,11 +1,10 @@ | ||
package com.ofg.infrastructure.property.decrypt | ||
|
||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration | ||
import org.springframework.cloud.autoconfigure.ConfigClientAutoConfiguration | ||
import org.springframework.context.annotation.ComponentScan | ||
import org.springframework.context.annotation.Configuration | ||
|
||
@Configuration | ||
@EnableAutoConfiguration | ||
@ComponentScan(basePackages = ['org.springframework.cloud.autoconfigure']) | ||
@ComponentScan(basePackageClasses = [ConfigClientAutoConfiguration.class]) | ||
class DecryptingPropertyTestApp { | ||
} |
16 changes: 16 additions & 0 deletions
16
...property/src/test/groovy/com/ofg/infrastructure/property/decrypt/EncryptorTestUtil.groovy
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,16 @@ | ||
package com.ofg.infrastructure.property.decrypt | ||
|
||
import org.springframework.boot.builder.SpringApplicationBuilder | ||
import org.springframework.security.crypto.encrypt.TextEncryptor | ||
|
||
class EncryptorTestUtil { | ||
|
||
static void main(String[] args) { | ||
System.setProperty("encrypt.key", "eKey") | ||
System.setProperty("APP_ENV", "prod") | ||
System.setProperty("countryCode", "pl") | ||
def context = new SpringApplicationBuilder(DecryptingPropertyTestApp).web(false).run() | ||
def encryptor = context.getBean(TextEncryptor) | ||
println "Encrypted: ${encryptor.encrypt("value to encrypt")}" | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
micro-infra-spring-property/src/test/resources/foo.properties
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...pring-property/src/test/resources/testConfigurationWithConfigurationProperties.properties
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 @@ | ||
enc.configurationProperties={cipher}7b11e6e32bf28eb1820553c042d9a7302065229c6aa0c159cacd5e47d4f45f15817313409fd2945e628e1c55094cddd45b56a60f60a1f16a1d1f8b7e3ed2b1e9 |