Skip to content

Commit

Permalink
Added tests for new unknown field in store
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando79513 committed Dec 19, 2024
1 parent 28a1327 commit f1e78e5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def test_model_to_resource_uc18(self):
"kernel_track": "18",
"gadget": "pc",
"gadget_track": "18",
"store": "unknown",
}
self.assertDictEqual(correct_resource, model_to_resource(a))
with self.assertRaises(StopIteration):
Expand All @@ -107,6 +108,7 @@ def test_model_to_resource_uc20(self):
"gadget_track": "20/edge",
"kernel": "pc-kernel",
"kernel_track": "20/edge",
"store": "unknown",
}
self.assertDictEqual(correct_resource, model_to_resource(a))
with self.assertRaises(StopIteration):
Expand All @@ -133,6 +135,7 @@ def test_model_to_resource_bionic_server(self):
"brand-id": "generic",
"model": "generic-classic",
"sign-key-sha3-384": "d-JcZF9nD9eBw7bwMnH61x-bklnQOhQud1Is6o_cn2wTj8EYDi9musrIT9z2MdAa",
"store": "unknown",
}
self.assertDictEqual(correct_resource, model_to_resource(a))
self.assertNotIn("kernel", model_to_resource(a))
Expand Down Expand Up @@ -160,6 +163,7 @@ def test_model_to_resource_focal_server(self):
"brand-id": "generic",
"model": "generic-classic",
"sign-key-sha3-384": "d-JcZF9nD9eBw7bwMnH61x-bklnQOhQud1Is6o_cn2wTj8EYDi9musrIT9z2MdAa",
"store": "unknown",
}
self.assertDictEqual(correct_resource, model_to_resource(a))
self.assertNotIn("kernel", model_to_resource(a))
Expand Down

0 comments on commit f1e78e5

Please sign in to comment.