Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

remove_vehicle function in services/director.py#189

Open
tanishqjasoria wants to merge 5 commits into
uptane:developfrom
tanishqjasoria:remove_vehicle_function
Open

remove_vehicle function in services/director.py#189
tanishqjasoria wants to merge 5 commits into
uptane:developfrom
tanishqjasoria:remove_vehicle_function

Conversation

@tanishqjasoria

Copy link
Copy Markdown

Purpose of the PR:

To resolve #59: Add method to remove vehicles from Director repo

Summary of Changes:

  1. services/inventorydb.py
    added a method deregister_vehicle
  2. services/director.py
    added method remove_vehicle
    added method remove_director_repo_for_vehicle

@mnm678

mnm678 commented Jun 4, 2019

Copy link
Copy Markdown

@tanishqjasoria Can you add some test cases for this?

@tanishqjasoria

Copy link
Copy Markdown
Author

@mnm678 I have added a test for remove_director function!

@tanishqjasoria

Copy link
Copy Markdown
Author

While registering a vehicle with the director using the add_new_vehicle method, while creating the repository for the vehicle, the current working directory(which is the uptane working directory) is changed to the director repos directory (as the repository Tool expects to use the current directory)
Therefore after adding a vehicle, it needs to be changed to the uptane working directory again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add method to remove vehicles from Director repo

3 participants