#### What does this PR do?

This PR adds missing struct fields to the `User` struct. I'm putting it in a 
separate PR than my other work because this affects a different version.

I added a small test to verify that the correct struct fields existed, looking 
at the struct fields in the localhost is insufficient since the only place the 
`User` struct is used is in the client. (There is no golang handler currently)

Small note: Removed create and delete servers in the tests since the users test 
doesn't need it, and the server tests were failing at the time I wrote this.

Other Note: The struct I modified will eventually be deprecated because it 
isn't nullable, but in the meantime a User should still contain all of its 
fields.

#### Which TC components are affected by this PR?

- [ ] Documentation
- [ ] Grove
- [ ] Traffic Analytics
- [ ] Traffic Monitor
- [x] Traffic Ops
- [ ] Traffic Ops ORT
- [ ] Traffic Portal
- [ ] Traffic Router
- [ ] Traffic Stats
- [ ] Traffic Vault
- [ ] Other _________

#### What is the best way to verify this PR?

Run the api tests from the command line. Using any localhost tests don't use 
the client code, the only place where the `User` struct is used.

#### Check all that apply

- [X] This PR includes tests
- [ ] This PR includes documentation updates
- [ ] This PR includes an update to CHANGELOG.md
- [ ] This PR includes all required license headers
- [ ] This PR includes a database migration (ensure that migration sequence is 
correct)
- [ ] This PR fixes a serious security flaw. Read more: 
[www.apache.org/security](http://www.apache.org/security/)

<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->


[ Full content available at: https://github.com/apache/trafficcontrol/pull/2782 
]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to