Commit Graph

4 Commits

Author SHA1 Message Date
Christoph Glaubitz 3757e60840 Added parsing to objmetadata_test.TestCreateObjMetadata
This commit extends TestCreateObjMetadata. The test function does not
just verify CreateObjMetadata, but also uses ParseObjMetadata to verify
back and forth between both functions. I left specific testing of
ParseObjMetadata in place, because there might be edge cases, that
should be tested on its own.

I'm aware, that the TestCreateObjMetadata now tests two things, but I
think it makes life of maintainers and new contributors far easier.
E.g. the change I introduced in #193 would have been catched by tests,
rather than someone with a mental model of all of the code.
2020-07-15 10:52:13 +02:00
Sean Sullivan 2f6a1ef017 Validates resource names before storing in inventory 2020-07-14 14:18:56 -07:00
Sean R. Sullivan 52db385b3c Updates prune to use UID instead of ObjMetadata 2020-04-08 10:11:34 -07:00
Morten Torkildsen c58fbb8623 Move ObjMetadata into a separate package 2020-03-09 09:31:20 -07:00