Skip to content

Commit

Permalink
👻 add tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Jul 18, 2024
1 parent 27be928 commit 0f35ae9
Show file tree
Hide file tree
Showing 5,953 changed files with 124,489 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions default/generated/azure/tests/01-azure-aws-config.windup.test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
rulesPath: ../01-azure-aws-config.windup.yaml
providers:
- name: java
dataPath: ./data/01-azure-aws-config
- name: builtin
dataPath: ./data/01-azure-aws-config
tests:
- ruleID: azure-aws-config-credential-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 8
messageMatches: The application contains AWS credential configuration
- ruleID: azure-aws-config-region-02000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application contains AWS region configuration
- ruleID: azure-aws-config-s3-03000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application contains AWS S3 configuration
- ruleID: azure-aws-config-sqs-04000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application contains Amazon Simple Queue Service configuration
- ruleID: azure-aws-config-secret-manager-05000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application contains AWS Secrets Manager configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
rulesPath: ../02-azure-file-system.windup.yaml
providers:
- name: java
dataPath: ./data/02-azure-file-system
- name: builtin
dataPath: ./data/02-azure-file-system
tests:
- ruleID: azure-file-system-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 5
messageMatches: The application uses Java APIs to read/write from the file system.
- ruleID: azure-file-system-02000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: Relative path found.
- ruleID: azure-file-system-03000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: Home path found.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rulesPath: ../03-azure-java-version.windup.yaml
providers:
- name: java
dataPath: ./data/03-azure-java-version
- name: builtin
dataPath: ./data/03-azure-java-version
tests:
- ruleID: azure-java-version-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application is using non-LTS version Java.
- ruleID: azure-java-version-02000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application is using Java version lower than JAVA_8.
14 changes: 14 additions & 0 deletions default/generated/azure/tests/04-azure-logging.windup.test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rulesPath: ../04-azure-logging.windup.yaml
providers:
- name: java
dataPath: ./data/04-azure-logging
- name: builtin
dataPath: ./data/04-azure-logging
tests:
- ruleID: azure-logging-0000
testCases:
- name: tc-1
hasIncidents:
atLeast: 12
messageMatches: Logging to the file system is not recommended when running applications
in the cloud.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
rulesPath: ../05-azure-os-specific.windup.yaml
providers:
- name: java
dataPath: ./data/05-azure-os-specific
- name: builtin
dataPath: ./data/05-azure-os-specific
tests:
- ruleID: azure-os-specific-00001
testCases:
- name: tc-1
hasIncidents:
atLeast: 4
messageMatches: This file system path is Microsoft Windows platform dependent
- name: tc-2
hasIncidents:
atLeast: 4
messageMatches: This file system path is Microsoft Windows platform dependent.*
- ruleID: azure-os-specific-00002
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: This Dynamic-Link Library is Microsoft Windows platform dependent
- name: tc-2
hasIncidents:
atLeast: 1
messageMatches: This Dynamic-Link Library is Microsoft Windows platform dependent.*
13 changes: 13 additions & 0 deletions default/generated/azure/tests/06-azure-password.windup.test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../06-azure-password.windup.yaml
providers:
- name: java
dataPath: ./data/06-azure-password
- name: builtin
dataPath: ./data/06-azure-password
tests:
- ruleID: azure-password-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 7
messageMatches: Password found in configuration file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../07-eap-to-azure-appservice-certificates.windup.yaml
providers:
- name: java
dataPath: ./data/07-eap-to-azure-appservice-certificates
- name: builtin
dataPath: ./data/07-eap-to-azure-appservice-certificates
tests:
- ruleID: eap-to-azure-appservice-certificates-001
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: Azure - The application loads certificates into a KeyStor.*
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../08-eap-to-azure-appservice-datasource-driver.windup.yaml
providers:
- name: java
dataPath: ./data/08-eap-to-azure-appservice-datasource-driver
- name: builtin
dataPath: ./data/08-eap-to-azure-appservice-datasource-driver
tests:
- ruleID: eap-to-azure-appservice-datasource-driver-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 17
messageMatches: A datasource driver was found in a configuration fil.*
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../09-eap-to-azure-appservice-environment-variables.windup.yaml
providers:
- name: java
dataPath: ./data/09-eap-to-azure-appservice-environment-variables
- name: builtin
dataPath: ./data/09-eap-to-azure-appservice-environment-variables
tests:
- ruleID: eap-to-azure-appservice-environment-variables-001
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: App Service - The application reads environment variable.*
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../10-eap-to-azure-appservice-pom.windup.yaml
providers:
- name: java
dataPath: ./data/10-eap-to-azure-appservice-pom
- name: builtin
dataPath: ./data/10-eap-to-azure-appservice-pom
tests:
- ruleID: eap-to-azure-appservice-pom-001
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: Get started with JBoss EAP on App Servic.*
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
rulesPath: ../11-spring-boot-to-azure-cache.windup.yaml
providers:
- name: java
dataPath: ./data/11-spring-boot-to-azure-cache
- name: builtin
dataPath: ./data/11-spring-boot-to-azure-cache
tests:
- ruleID: spring-boot-to-azure-cache-redis-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 4
messageMatches: The application uses a Redis Cache.
- ruleID: spring-boot-to-azure-cache-redis-02000
testCases:
- name: tc-1
hasIncidents:
atLeast: 4
messageMatches: Redis Cache connection string, username, or password used in
this application
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rulesPath: ../12-spring-boot-to-azure-config-server.windup.yaml
providers:
- name: java
dataPath: ./data/12-spring-boot-to-azure-config-server
- name: builtin
dataPath: ./data/12-spring-boot-to-azure-config-server
tests:
- ruleID: spring-boot-to-azure-config-server-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 3
messageMatches: The application uses a Spring Cloud Config Server connection
string
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
rulesPath: ../13-spring-boot-to-azure-database.windup.yaml
providers:
- name: java
dataPath: ./data/13-spring-boot-to-azure-database
- name: builtin
dataPath: ./data/13-spring-boot-to-azure-database
tests:
- ruleID: spring-boot-to-azure-database-jdbc-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application uses a JDBC connection string
- ruleID: spring-boot-to-azure-database-mongodb-02000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application uses a MongoDB connection string
- ruleID: spring-boot-to-azure-database-r2dbc-03000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application uses a R2DBC connection string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rulesPath: ../14-spring-boot-to-azure-eureka.windup.yaml
providers:
- name: java
dataPath: ./data/14-spring-boot-to-azure-eureka
- name: builtin
dataPath: ./data/14-spring-boot-to-azure-eureka
tests:
- ruleID: spring-boot-to-azure-eureka-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 3
messageMatches: The application uses Eureka.
- ruleID: spring-boot-to-azure-eureka-02000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application uses an eureka connection string.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../15-spring-boot-to-azure-feign.windup.yaml
providers:
- name: java
dataPath: ./data/15-spring-boot-to-azure-feign
- name: builtin
dataPath: ./data/15-spring-boot-to-azure-feign
tests:
- ruleID: spring-boot-to-azure-feign-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 3
messageMatches: The application uses Feign.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../16-spring-boot-to-azure-identity-provider.windup.yaml
providers:
- name: java
dataPath: ./data/16-spring-boot-to-azure-identity-provider
- name: builtin
dataPath: ./data/16-spring-boot-to-azure-identity-provider
tests:
- ruleID: spring-boot-to-azure-identity-provider-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application uses Spring security.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../17-spring-boot-to-azure-java-fx.windup.yaml
providers:
- name: java
dataPath: ./data/17-spring-boot-to-azure-java-fx
- name: builtin
dataPath: ./data/17-spring-boot-to-azure-java-fx
tests:
- ruleID: spring-boot-to-azure-java-fx-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 7
messageMatches: The application uses JavaFX.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../18-spring-boot-to-azure-jks.windup.yaml
providers:
- name: java
dataPath: ./data/18-spring-boot-to-azure-jks
- name: builtin
dataPath: ./data/18-spring-boot-to-azure-jks
tests:
- ruleID: spring-boot-to-azure-jks-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: Java KeyStore file is found.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../19-spring-boot-to-azure-jms-broker.windup.yaml
providers:
- name: java
dataPath: ./data/19-spring-boot-to-azure-jms-broker
- name: builtin
dataPath: ./data/19-spring-boot-to-azure-jms-broker
tests:
- ruleID: spring-boot-to-azure-jms-broker-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 2
messageMatches: The application uses an ActiveMQ message broker.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
rulesPath: ../20-spring-boot-to-azure-mq-config.windup.yaml
providers:
- name: java
dataPath: ./data/20-spring-boot-to-azure-mq-config
- name: builtin
dataPath: ./data/20-spring-boot-to-azure-mq-config
tests:
- ruleID: spring-boot-to-azure-mq-config-kafka-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 3
messageMatches: The application uses a Kafka connection string or password
- ruleID: spring-boot-to-azure-mq-config-rabbitmq-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application uses a RabbitMQ connection string, username,
or password
- ruleID: spring-boot-to-azure-mq-config-artemis-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application uses an ActiveMQ Artemis connection string,
username, or password
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rulesPath: ../21-spring-boot-to-azure-port.windup.yaml
providers:
- name: java
dataPath: ./data/21-spring-boot-to-azure-port
- name: builtin
dataPath: ./data/21-spring-boot-to-azure-port
tests:
- ruleID: spring-boot-to-azure-port-01000
testCases:
- name: tc-1
hasIncidents:
atLeast: 1
messageMatches: The application is setting the server port.
Loading

0 comments on commit 0f35ae9

Please sign in to comment.