Skip to content

Commit

Permalink
removed unused test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech committed Nov 8, 2023
1 parent 787e479 commit 660c208
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 7 deletions.
2 changes: 2 additions & 0 deletions admin-service/cloud/scripts/gcp-infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ gcloud container clusters create $CLUSTER_NAME --num-nodes=2 --region=$CLUSTER_R
# Get Cluster Credentials
gcloud container clusters get-credentials $CLUSTER_NAME --zone $CLUSTER_REGION --project $PROJECT_ID

gcloud alpha firestore databases create --location=us-east1 --type=firestore-native

# Create a Pub/Sub topic
gcloud pubsub topics create $TOPIC_NAME --project=$PROJECT_ID

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.nashtech.car.cart;

/*
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -10,4 +10,4 @@ class CartApplicationTests {
void contextLoads() {
}
}
}*/
1 change: 1 addition & 0 deletions deployment/gcpresources/terraform/key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions deployment/gcpresources/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ resource "null_resource" "axon-server-gke" {

#----------------------GCP firestore----------------------------

resource "google_firestore_database" "database" {
/*resource "google_firestore_database" "database" {
project = var.app_project
name = "(default)"
location_id = var.gcp_region_1
type = "FIRESTORE_NATIVE"
}
}*/

#------------------------- secret manger----------------------
resource "google_secret_manager_secret" "car-demo-secret" {
Expand Down
2 changes: 1 addition & 1 deletion deployment/gcpresources/terraform/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Application Definition
app_name = "car-demo"
app_environment = "dev"
app_project = "oval-crawler-398007"
app_project = "datamesh-2"

# GCP Settings
gcp_region_1 = "us-east1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.nashtech.inventory;

import org.springframework.boot.test.context.SpringBootTest;
/*import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class InventoryServiceApplicationTest {
}
}*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.nashtech.order.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@ComponentScan
public class WebConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:4200/") // Allow requests from Angular app
.allowedMethods("GET", "POST", "PUT", "DELETE")
.maxAge(3600);
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.nashtech.order;

/*
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class OrderServiceApplicationTests {
}
*/
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.nashtech.payment;

/*
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class PaymentMircoserviceApplicationTests {
}
*/

0 comments on commit 660c208

Please sign in to comment.