mirror of
https://github.com/containers/podman.git
synced 2025-06-17 06:57:43 +08:00
Scrub podman commands to use report package
Refactor podman commands that have drifted from using c/common report pkg. Report pkg is needed to implement go template functions. Removed obsolete code from podman which exists in c/common. Latest template library added default newlines and method to remove them. Incorporated needed changes in c/common PR below. Depends on https://github.com/containers/common/pull/624 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1855983 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -89,9 +89,15 @@ class ImageTestCase(APITestCase):
|
||||
|
||||
def test_create(self):
|
||||
r = requests.post(
|
||||
self.podman_url + "/v1.40/images/create?fromImage=alpine&platform=linux/amd64/v8", timeout=15)
|
||||
self.podman_url + "/v1.40/images/create?fromImage=alpine&platform=linux/amd64/v8",
|
||||
timeout=15,
|
||||
)
|
||||
self.assertEqual(r.status_code, 200, r.text)
|
||||
r = requests.post(self.podman_url + "/v1.40/images/create?fromSrc=-&repo=fedora&message=testing123&platform=linux/amd64", timeout=15)
|
||||
r = requests.post(
|
||||
self.podman_url
|
||||
+ "/v1.40/images/create?fromSrc=-&repo=fedora&message=testing123&platform=linux/amd64",
|
||||
timeout=15,
|
||||
)
|
||||
self.assertEqual(r.status_code, 200, r.text)
|
||||
|
||||
def test_search_compat(self):
|
||||
|
Reference in New Issue
Block a user