Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

api,functional: dynamic metadata - fix bugs and add functional tests #1703

Merged
merged 3 commits into from
Nov 11, 2016

Conversation

dongsupark
Copy link
Contributor

To be able to merge #1642, we need to fix several things, as well as add functional tests.

  • registry/rpc: call etcdRegistry.MachineState() for every case
  • api: get Value embedded as members in struct
  • functional: add new machine tests for dynamic metadata

Depends on #1642. I'll first merge #1642, and after that, I'll merge this PR.
As master branch would fail without this PR, I'm going to merge it right away.
Feel free to report possible bugs. I'll create another PR to handle them in the next week.

/cc @dalbani

Dongsu Park added 3 commits November 11, 2016 17:34
Call MachineState, CreateMachineState of etcdRegistry, instead of
registryMux, as machine states methods will not implemented for
rpcRegistry.
To avoid API incompatibility in the future, we need to get
machineMetadataOp.Value embedded in a separate structure.
Unit tests must be also changed accordingly.
Now that dynamic metadata is supported, we need to do machine metadata
operations also in functional tests. These are nearly equivalent to the
tests in api/machines_test.go.

* TestMachinesList
* TestMachinesListBadNextPageToken
* TestMachinesPatchAddModify
* TestMachinesPatchDelete
* TestMachinesPatchBad
@dongsupark dongsupark merged commit 79001ad into coreos:master Nov 11, 2016
dongsupark pushed a commit that referenced this pull request Nov 11, 2016
api,functional: dynamic metadata - fix bugs and add functional tests
@dongsupark dongsupark deleted the dongsu/dynamic-metadata branch November 11, 2016 23:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant