-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix license metric options * Remove unit test * Add tests for license annotations * Add tests for cloudpak annotations * Fix up tests for new valid license options * Default metric Fix * Metric mapping fix * License tests update * Hide the license metric field in the UI * Remove duplicate test setup Co-authored-by: ilewis <idlewis@users.noreply.github.com> Co-authored-by: Leo Christy Jesuraj <leojc@ca.ibm.com>
- Loading branch information
1 parent
c5aa116
commit f039f6f
Showing
13 changed files
with
273 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: license-wla | ||
status: | ||
replicas: 1 | ||
readyReplicas: 1 | ||
updatedReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- image: icr.io/appcafe/open-liberty/samples/getting-started | ||
status: | ||
containerStatuses: | ||
- ready: true | ||
metadata: | ||
annotations: | ||
test-step: license-00 | ||
productChargedContainers: app | ||
productID: e7daacc46bbe4e2dacd2af49145a4723 | ||
productName: IBM WebSphere Application Server | ||
productMetric: PROCESSOR_VALUE_UNIT |
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,13 @@ | ||
# Test the default values for edition, metric and productEntitlementSource annotations | ||
apiVersion: liberty.websphere.ibm.com/v1 | ||
kind: WebSphereLibertyApplication | ||
metadata: | ||
name: license-wla | ||
annotations: | ||
test-step: license-00 | ||
spec: | ||
license: | ||
accept: true | ||
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started | ||
replicas: 1 | ||
|
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,27 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: license-wla | ||
status: | ||
replicas: 1 | ||
readyReplicas: 1 | ||
updatedReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- image: icr.io/appcafe/open-liberty/samples/getting-started | ||
status: | ||
containerStatuses: | ||
- ready: true | ||
metadata: | ||
annotations: | ||
test-step: license-01 | ||
productChargedContainers: app | ||
productID: 87f3487c22f34742a799164f3f3ffa78 | ||
productName: IBM WebSphere Application Server Liberty Core | ||
productMetric: PROCESSOR_VALUE_UNIT | ||
productCloudpakRatio: 8:1 | ||
cloudpakId: be8ae84b3dd04d81b90af0d846849182 | ||
cloudpakName: IBM WebSphere Application Server Family Edition |
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,14 @@ | ||
apiVersion: liberty.websphere.ibm.com/v1 | ||
kind: WebSphereLibertyApplication | ||
metadata: | ||
name: license-wla | ||
annotations: | ||
test-step: license-01 | ||
spec: | ||
license: | ||
accept: true | ||
edition: IBM WebSphere Application Server Liberty Core | ||
productEntitlementSource: IBM WebSphere Application Server Family Edition | ||
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started | ||
replicas: 1 | ||
|
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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: license-wla | ||
status: | ||
replicas: 1 | ||
readyReplicas: 1 | ||
updatedReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- image: icr.io/appcafe/open-liberty/samples/getting-started | ||
status: | ||
containerStatuses: | ||
- ready: true | ||
metadata: | ||
annotations: | ||
test-step: license-02 | ||
productChargedContainers: app | ||
productID: c6a988d93b0f4d1388200d40ddc84e5b | ||
productName: IBM WebSphere Application Server Network Deployment | ||
productMetric: VIRTUAL_PROCESSOR_CORE | ||
productCloudpakRatio: 1:1 | ||
cloudpakId: 4df52d2cdc374ba09f631a650ad2b5bf | ||
cloudpakName: IBM Cloud Pak for Applications | ||
|
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,14 @@ | ||
apiVersion: liberty.websphere.ibm.com/v1 | ||
kind: WebSphereLibertyApplication | ||
metadata: | ||
name: license-wla | ||
annotations: | ||
test-step: license-02 | ||
spec: | ||
license: | ||
accept: true | ||
edition: IBM WebSphere Application Server Network Deployment | ||
productEntitlementSource: IBM Cloud Pak for Applications | ||
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started | ||
replicas: 1 | ||
|
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
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
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