Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding Port2IBM2.0 example and test scripts #426

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Conversation

srushti-patl
Copy link
Contributor

Port 2 IBM2.0 Connection example Scripts
Added test script for FCR Multi Cloud Connection

@srushti-patl srushti-patl temporarily deployed to internal October 25, 2023 19:36 — with GitHub Actions Inactive
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2023

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (26b2f3d) 60.11% compared to head (950e3a7) 60.15%.
Report is 25 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #426      +/-   ##
==========================================
+ Coverage   60.11%   60.15%   +0.03%     
==========================================
  Files          99       99              
  Lines       20045    20050       +5     
==========================================
+ Hits        12051    12061      +10     
+ Misses       7691     7687       -4     
+ Partials      303      302       -1     
Files Coverage Δ
equinix/fabric_mapping_helper.go 0.77% <0.00%> (ø)
equinix/resource_fabric_connection.go 5.75% <0.00%> (-0.09%) ⬇️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@thogarty thogarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if naming the directory for the example ibm2.0 is going to cause issues somewhere; potentially in the modules. I don't think all tools will have an issue with it but I also don't know which tools might. Other than that there's just one small change requested and the rest looked good.

@@ -10,7 +10,7 @@ import (
func TestIBMCreateConnection(t *testing.T) {
// retryable errors in terraform testing.
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "../examples/fabric/v4/portConnectivity/ibm",
TerraformDir: "../examples/fabric/v4/portConnectivity/ibm/ibm2.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should update the filename to ibm2 as well because we'll add an E2E test for ibm1 after it's added.

Comment on lines +243 to 245
} else {
updatedConn = conn
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doing it this way, in case of error it will not save the last status

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is intentional; some of the updates might fail but we want to save the status of the last successful update to the connection. We're not worried about the status of the failed update. The response won't have any details we're concerned about saving to Terraform state.

@srushti-patl srushti-patl temporarily deployed to internal October 30, 2023 16:53 — with GitHub Actions Inactive
@srushti-patl srushti-patl temporarily deployed to internal October 30, 2023 18:23 — with GitHub Actions Inactive
Copy link
Contributor

@thogarty thogarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@srushti-patl srushti-patl merged commit 5d6958a into main Oct 31, 2023
4 of 5 checks passed
@srushti-patl srushti-patl deleted the CXF-78524 branch October 31, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants