Skip to content

Commit

Permalink
Merge pull request #23741 from mshima/skip_ci-outside
Browse files Browse the repository at this point in the history
use spawn mocks to avoid outside calls
  • Loading branch information
DanielFran authored Oct 4, 2023
2 parents 2de7c09 + f6e9d38 commit 1ad4fc8
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 8 deletions.
38 changes: 38 additions & 0 deletions generators/kubernetes/__snapshots__/kubernetes.spec.mts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ deploy:
}
`;

exports[`generator - Kubernetes Kafka application should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes MySQL and PostgreSQL microservices without gateway should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -1442,6 +1444,8 @@ deploy:
}
`;

exports[`generator - Kubernetes MySQL and PostgreSQL microservices without gateway should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes gateway and ingress should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -2132,6 +2136,8 @@ deploy:
}
`;

exports[`generator - Kubernetes gateway and ingress should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes gateway and ingressType gke should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -5658,6 +5664,8 @@ deploy:
}
`;

exports[`generator - Kubernetes gateway and ingressType gke should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes gateway and ingressType nginx should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -9096,6 +9104,8 @@ deploy:
}
`;

exports[`generator - Kubernetes gateway and ingressType nginx should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes gateway and mysql microservice should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -9948,6 +9958,8 @@ deploy:
}
`;

exports[`generator - Kubernetes gateway and mysql microservice should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes gateway with istio routing should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -10930,6 +10942,18 @@ deploy:
}
`;

exports[`generator - Kubernetes gateway with istio routing should match spawn calls snapshot 1`] = `
[
[
"spawnCommandSync",
"kubectl -n istio-system get svc istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}'",
{
"stdio": "pipe",
},
],
]
`;

exports[`generator - Kubernetes gateway, mysql, psql, mongodb, mariadb, mssql microservices should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -12938,6 +12962,8 @@ deploy:
}
`;

exports[`generator - Kubernetes gateway, mysql, psql, mongodb, mariadb, mssql microservices should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes monolith application should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -13393,6 +13419,8 @@ deploy:
}
`;

exports[`generator - Kubernetes monolith application should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes mysql microservice with custom namespace and jhipster prometheus monitoring should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -16747,6 +16775,8 @@ deploy:
}
`;

exports[`generator - Kubernetes mysql microservice with custom namespace and jhipster prometheus monitoring should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes mysql microservice with custom namespace should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -17424,6 +17454,8 @@ deploy:
}
`;

exports[`generator - Kubernetes mysql microservice with custom namespace should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes mysql, psql, mongodb, mariadb, mssql microservices with dynamic storage provisioning should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -19432,6 +19464,8 @@ deploy:
}
`;

exports[`generator - Kubernetes mysql, psql, mongodb, mariadb, mssql microservices with dynamic storage provisioning should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes only gateway should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -20107,6 +20141,8 @@ deploy:
}
`;

exports[`generator - Kubernetes only gateway should match spawn calls snapshot 1`] = `[]`;

exports[`generator - Kubernetes only gateway with eureka should match files snapshot 1`] = `
{
".yo-rc.json": {
Expand Down Expand Up @@ -20670,3 +20706,5 @@ deploy:
},
}
`;

exports[`generator - Kubernetes only gateway with eureka should match spawn calls snapshot 1`] = `[]`;
Loading

0 comments on commit 1ad4fc8

Please sign in to comment.