Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Conversation

@zrhoffman
Copy link
Member

@zrhoffman zrhoffman commented Sep 11, 2023

This PR makes the CDN in a Box enroller use Traffic Ops API version 5.

This PR also removes V5 from some API v5 TO client method names.


Which Traffic Control components are affected by this PR?

  • CDN in a Box - Enroller

What is the best way to verify this PR?

Verify that GitHub Actions pass

If this is a bugfix, which Traffic Control versions contained the bug?

PR submission checklist

@zrhoffman zrhoffman added tech debt rework due to choosing easy/limited solution cdn-in-a-box related to the Docker-based CDN-in-a-Box system labels Sep 11, 2023
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #7795 (1706f80) into master (015fc8d) will decrease coverage by 36.77%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

❗ Current head 1706f80 differs from pull request most recent head b7fd246. Consider uploading reports for the commit b7fd246 to get more accurate results

@@              Coverage Diff              @@
##             master    #7795       +/-   ##
=============================================
- Coverage     65.61%   28.85%   -36.77%     
  Complexity       98       98               
=============================================
  Files           323      599      +276     
  Lines         12833    77053    +64220     
  Branches        965       90      -875     
=============================================
+ Hits           8421    22230    +13809     
- Misses         4051    52738    +48687     
- Partials        361     2085     +1724     
Flag Coverage Δ
golib_unit 53.66% <ø> (?)
grove_unit 12.02% <ø> (?)
t3c_unit 5.96% <ø> (?)
traffic_monitor_unit 26.44% <ø> (?)
traffic_ops_integration 69.42% <100.00%> (ø)
traffic_ops_unit 21.50% <ø> (?)
traffic_portal_v2 ?
traffic_stats_unit 10.78% <ø> (?)
unit_tests 25.66% <ø> (-48.72%) ⬇️
v3 57.79% <ø> (ø)
v4 79.18% <ø> (ø)
v5 78.58% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
traffic_ops/v5-client/servercapability.go 87.50% <100.00%> (ø)

... and 512 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@jpappa200 jpappa200 left a comment

Choose a reason for hiding this comment

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

Looks good to me, just waiting on CI

Copy link
Contributor

@jpappa200 jpappa200 left a comment

Choose a reason for hiding this comment

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

👍

@zrhoffman
Copy link
Member Author

Rebased

@rimashah25 rimashah25 added this to the 8.0.0 milestone Sep 12, 2023
@ocket8888
Copy link
Contributor

I can't tell why this would fail the tests just by looking at it, but they seem to be failing consistently

@ocket8888 ocket8888 merged commit 3192836 into apache:master Sep 13, 2023
@ocket8888 ocket8888 added the medium impact impacts a significant portion of a CDN, or has the potential to do so label Sep 13, 2023
rimashah25 pushed a commit to rimashah25/trafficcontrol that referenced this pull request Sep 18, 2023
* Session.CreateServerCapabilityV5 -> Session.CreateServerCapability

* Session.GetServerCapabilitiesV5 -> Session.GetServerCapabilities

* Session.UpdateServerCapabilityV5 -> Session.UpdateServerCapability

* Update CiaB enroller to use TO API v5

* Update field names for API v5

* Remove server response ID validation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cdn-in-a-box related to the Docker-based CDN-in-a-Box system medium impact impacts a significant portion of a CDN, or has the potential to do so tech debt rework due to choosing easy/limited solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants