Skip to content

Commit

Permalink
fix: updated tests to use the new applicationName object
Browse files Browse the repository at this point in the history
  • Loading branch information
kkingavio committed Dec 4, 2023
1 parent c5fdffc commit d223512
Showing 1 changed file with 37 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand All @@ -129,7 +135,7 @@ muleDeploy {
is(equalTo([]))
assert actualApp instanceof OnPremDeploymentRequest
actualApp.with {
assertThat it.appName,
assertThat it.appName.normalizedAppName,
is(equalTo('the-app'))
assertThat it.environment,
is(equalTo('DEV'))
Expand Down Expand Up @@ -167,7 +173,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand All @@ -187,7 +199,7 @@ muleDeploy {
is(equalTo([]))
assert actualApp instanceof OnPremDeploymentRequest
actualApp.with {
assertThat it.appName,
assertThat it.appName.normalizedAppName,
is(equalTo('the-app'))
assertThat it.environment,
is(equalTo('DEV'))
Expand Down Expand Up @@ -221,7 +233,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down Expand Up @@ -269,7 +287,13 @@ muleDeploy {
cloudHubApplication {
environment params.env
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix true
useSuffix false
}
appVersion '1.2.3'
workerSpecs {
muleVersion params.env == 'DEV' ? '4.2.2' : '4.1.5'
Expand All @@ -280,7 +304,6 @@ muleDeploy {
clientId 'the_client_id'
clientSecret 'the_client_secret'
}
cloudHubAppPrefix 'AVI'
}
}
"""
Expand Down Expand Up @@ -363,7 +386,13 @@ muleDeploy {
onPremApplication {
environment 'DEV'
applicationName 'the-app'
applicationName {
baseAppName 'the-app'
prefix 'AVI'
suffix 'xxx'
usePrefix false
useSuffix false
}
appVersion '1.2.3'
file '${builtFile}'
targetServerOrClusterName 'theServer'
Expand Down

0 comments on commit d223512

Please sign in to comment.