This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Snapshot interfaces#4709
Merged
rawlinp merged 7 commits intoapache:masterfrom Jun 11, 2020
Merged
Conversation
6dd2f27 to
8fcbfbf
Compare
8fcbfbf to
bd7149f
Compare
bd7149f to
b922922
Compare
shamrickus
suggested changes
Jun 10, 2020
Member
There was a problem hiding this comment.
> go test ./...
--- FAIL: TestGetAllServers (0.00s)
servers_test.go:208: getAllServers expected: nil error, actual: Error querying servers: Query 'SELECT s.id, s.host_name, cg.name as cachegroup, concat(s.host_name, '.', s.domain_name) AS fqdn, s.xmpp_id AS hashid, s.https_port, s.tcp_port, p.name AS profile_name, cast(p.routing_disabled AS int), st.name AS status, t.name AS type FROM server AS s INNER JOIN cachegroup AS cg ON cg.id = s.cachegroup INNER JOIN type AS t on t.id = s.type INNER JOIN profile AS p ON p.id = s.profile INNER JOIN status AS st ON st.id = s.status WHERE cdn_id = (SELECT id FROM cdn WHERE name = $1) AND (st.name = 'REPORTED' OR st.name = 'ONLINE' OR st.name = 'ADMIN_DOWN')', does not match regex [select]
--- FAIL: TestGetAllServersNonService (0.00s)
servers_test.go:254: getAllServers expected: nil error, actual: Error querying servers: Query 'SELECT s.id, s.host_name, cg.name as cachegroup, concat(s.host_name, '.', s.domain_name) AS fqdn, s.xmpp_id AS hashid, s.https_port, s.tcp_port, p.name AS profile_name, cast(p.routing_disabled AS int), st.name AS status, t.name AS type FROM server AS s INNER JOIN cachegroup AS cg ON cg.id = s.cachegroup INNER JOIN type AS t on t.id = s.type INNER JOIN profile AS p ON p.id = s.profile INNER JOIN status AS st ON st.id = s.status WHERE cdn_id = (SELECT id FROM cdn WHERE name = $1) AND (st.name = 'REPORTED' OR st.name = 'ONLINE' OR st.name = 'ADMIN_DOWN')', does not match regex [select]
FAIL
FAIL github.com/apache/trafficcontrol/traffic_ops/traffic_ops_golang/crconfig 0.010s
FAIL
rawlinp
suggested changes
Jun 10, 2020
Contributor
|
Unit test job failed with this: |
rawlinp
reviewed
Jun 11, 2020
Contributor
Author
|
I can't reproduce that failure. All unit tests are passing for me. |
Contributor
|
Ok, I'll pull this down and test when the CI completes again. |
Member
|
The unit tests pass for me as well. |
rawlinp
approved these changes
Jun 11, 2020
Contributor
rawlinp
left a comment
There was a problem hiding this comment.
TO API tests pass, unit tests pass, taking a snapshot appears to be good (only saw ipv6 addresses going from uppercase to lowercase which seems to be expected now).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR (Pull Request) do?
Updates CDN Snapshot generation to account for multiple server interfaces.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Run the unit and API tests, run CDN-in-a-Box and verify the snapshot is successful.
The following criteria are ALL met by this PR