Open rmtolmach opened 11 months ago
Could we record this and include mock data and setting up the port forwarding to the fwd proxy. Could use C&CC time for this exercise.
@rmtolmach to announce in Backend-COP that we are doing this exercise as a team on C&CC on Friday 2/2/24
➡️ Branch and diff: 68412_vaprofile_betamocks
We made some progress on this during Friday morning meeting. Got through step 3 in Create mock data for a brand new service. I hadn't set up my settings.local.yaml, so I did that before starting the steps. Used this command from the vets-api README:
cp config/settings.local.yml.example config/settings.local.yml
In services_config.yml
, we have this so far:
# VA Profile
- :name: "VA Profile"
:base_uri: <%= "#{URI(Settings.vet360.url).host}:#{URI(Settings.vet360.url).port}" %>
:endpoints:
- :method: :get
:path: "profile-service/profile/v3/*/*"
:file_path: "va_profile/military_info"
One unknown is how bio paths fit into this. In VA Profile, the bioPath
is how you specify your endpoint.
Rachal's branch with more progress: https://github.com/department-of-veterans-affairs/vets-api/compare/master...mockdata-setup
We made more progress on this today. We followed the documents Tom shared with Gia:
We got through 1, didn't start 2 yet.
Ryan M and I got stuck on the "Run Applications" section of the first doc 😑
Moving it out a couple sprints. Now that most of us have had some exposure to this work, it can be picked up and completed by one person during a sprint and not during C&CC like we were doing.
Executive decision made during C&CC on 3/1/2024 - this should be assigned to one individual or a couple , since the entire team has been exposed.
Problem
There is no mockdata for VA Profile. Mockdata is important for testing in lower environments, especially when using a service where you need to be on the VA network to access. We need to be able to access mockdata for external services. The routes are tested on the network and then the responses are copied into the mockdata repo.
Solution
Record mockdata. Follow instructions in Mockdata repo for Create mock data for a brand new service. The instructions don't seem comprehensive, so there is some unknown to this ticket. Reach out to people who have committed to the repo or possibly Tom Harrison.
These are Trevor's steps:
Acceptance Criteria
[ ] Scenario 1: Record mockdata for VA Profile
[ ] Scenario 2: Access mockdata for VA Profile
[ ] Scenario 3: Test VA Profile routes with mockdata
[ ] Scenario 4: Verify instructions in the Mockdata repo
[ ] Scenario 5: Seek assistance for unknowns in the instructions
Related issues
VA Profile Contact Information can completed concurrently with this ticket.