Skip to content

Commit 5440246

Browse files
authored
Merge pull request #1820 from shiftstack/ci-fixes
CI fixes
2 parents a384137 + 6bdc4b2 commit 5440246

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

hack/ci/gce-project.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ function cloud_init {
3434
# Generate local ssh configuration
3535
# NOTE(mdbooth): This command successfully populates ssh config and then
3636
# fails for some reason I don't understand. We ignore the failure.
37-
gcloud compute config-ssh || true
37+
gcloud compute config-ssh >/dev/null 2>&1 || true
3838
}
3939

4040
function init_infrastructure() {
4141
if [[ ${GCP_NETWORK_NAME} != "default" ]]; then
42-
if ! gcloud compute networks describe "$GCP_NETWORK_NAME" --project "$GCP_PROJECT" >/dev/null; then
42+
if ! gcloud compute networks describe "$GCP_NETWORK_NAME" --project "$GCP_PROJECT" >/dev/null 2>&1; then
4343
gcloud compute networks create --project "$GCP_PROJECT" "$GCP_NETWORK_NAME" --subnet-mode custom
4444
gcloud compute networks subnets create "$GCP_NETWORK_NAME" --project "$GCP_PROJECT" \
4545
--network="$GCP_NETWORK_NAME" --range="$PRIVATE_NETWORK_CIDR" --region "$GCP_REGION"
@@ -64,12 +64,12 @@ function init_infrastructure() {
6464
gcloud compute networks list --project="$GCP_PROJECT"
6565
gcloud compute networks describe "$GCP_NETWORK_NAME" --project="$GCP_PROJECT"
6666

67-
if ! gcloud compute routers describe "${CLUSTER_NAME}-myrouter" --project="$GCP_PROJECT" --region="$GCP_REGION" >/dev/null; then
67+
if ! gcloud compute routers describe "${CLUSTER_NAME}-myrouter" --project="$GCP_PROJECT" --region="$GCP_REGION" >/dev/null 2>&1; then
6868
gcloud compute routers create "${CLUSTER_NAME}-myrouter" --project="$GCP_PROJECT" \
6969
--region="$GCP_REGION" --network="$GCP_NETWORK_NAME"
7070
fi
7171
if ! gcloud compute routers nats describe --router="$CLUSTER_NAME-myrouter" "$CLUSTER_NAME-mynat" \
72-
--project="$GCP_PROJECT" --region="${GCP_REGION}" >/dev/null; then
72+
--project="$GCP_PROJECT" --region="${GCP_REGION}" >/dev/null 2>&1; then
7373
gcloud compute routers nats create "${CLUSTER_NAME}-mynat" --project="$GCP_PROJECT" \
7474
--router-region="$GCP_REGION" --router="${CLUSTER_NAME}-myrouter" \
7575
--nat-all-subnet-ip-ranges --auto-allocate-nat-external-ips
@@ -89,7 +89,7 @@ function create_vm {
8989
# Loop over all zones in the GCP region to ignore a full zone.
9090
# We are not able to use 'gcloud compute zones list' as the gcloud.compute.zones.list permission is missing.
9191
for GCP_ZONE in "${GCP_REGION}-a" "${GCP_REGION}-b" "${GCP_REGION}-c"; do
92-
if ! gcloud compute instances describe "$servername" --project "$GCP_PROJECT" --zone "$GCP_ZONE" >/dev/null; then
92+
if ! gcloud compute instances describe "$servername" --project "$GCP_PROJECT" --zone "$GCP_ZONE" >/dev/null 2>&1; then
9393
if gcloud compute instances create "$servername" \
9494
--project "$GCP_PROJECT" \
9595
--zone "$GCP_ZONE" \

test/e2e/suites/e2e/e2e_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
8181
})
8282

8383
Describe("Workload cluster (default)", func() {
84-
It("It should be creatable and deletable", func() {
84+
It("should be creatable and deletable", func() {
8585
shared.Logf("Creating a cluster")
8686
clusterName := fmt.Sprintf("cluster-%s", namespace.Name)
8787
configCluster := defaultConfigCluster(clusterName, namespace.Name)
@@ -247,7 +247,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
247247
})
248248

249249
Describe("Workload cluster (without lb)", func() {
250-
It("Should create port(s) with custom options", func() {
250+
It("should create port(s) with custom options", func() {
251251
shared.Logf("Creating a cluster")
252252
clusterName := fmt.Sprintf("cluster-%s", namespace.Name)
253253
configCluster := defaultConfigCluster(clusterName, namespace.Name)
@@ -466,7 +466,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
466466
})
467467

468468
Describe("MachineDeployment misconfigurations", func() {
469-
It("Should fail to create MachineDeployment with invalid subnet or invalid availability zone", func() {
469+
It("should fail to create MachineDeployment with invalid subnet or invalid availability zone", func() {
470470
shared.Logf("Creating a cluster")
471471
clusterName := fmt.Sprintf("cluster-%s", namespace.Name)
472472
configCluster := defaultConfigCluster(clusterName, namespace.Name)
@@ -534,7 +534,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
534534
Expect(err).NotTo(HaveOccurred())
535535
})
536536

537-
It("It should be creatable and deletable", func() {
537+
It("should be creatable and deletable", func() {
538538
workerMachines := framework.GetMachinesByMachineDeployments(ctx, framework.GetMachinesByMachineDeploymentsInput{
539539
Lister: e2eCtx.Environment.BootstrapClusterProxy.GetClient(),
540540
ClusterName: clusterName,

0 commit comments

Comments
 (0)