Skip to content

Commit a61c2b5

Browse files
committed
fix(ci): Change the image to scan to quay.io/sysdig/agent
1 parent f735af7 commit a61c2b5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

specs/secure/scanning/query_image_content_spec.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,41 @@
1010
with before.each:
1111
self.client = SdScanningClient(sdc_url=os.getenv("SDC_SECURE_URL", "https://secure.sysdig.com"),
1212
token=os.getenv("SDC_SECURE_TOKEN"))
13+
self.image_to_scan = "quay.io/sysdig/agent:latest"
1314

1415
with it("is able to retrieve the OS contents"):
15-
ok, res = self.client.query_image_content("alpine:latest", "os")
16+
ok, res = self.client.query_image_content(self.image_to_scan, "os")
1617

1718
expect((ok, res)).to(be_successful_api_call)
1819
expect(res["content"]).to(contain(have_keys("license", "origin", "package", "size", "type", "version")))
1920
expect(res["content_type"]).to(equal("os"))
2021

2122
with it("is able to retrieve the npm contents"):
22-
ok, res = self.client.query_image_content("alpine:latest", "npm")
23+
ok, res = self.client.query_image_content(self.image_to_scan, "npm")
2324

2425
expect((ok, res)).to(be_successful_api_call)
2526
expect(res["content_type"]).to(equal("npm"))
2627

2728
with it("is able to retrieve the gem contents"):
28-
ok, res = self.client.query_image_content("alpine:latest", "gem")
29+
ok, res = self.client.query_image_content(self.image_to_scan, "gem")
2930

3031
expect((ok, res)).to(be_successful_api_call)
3132
expect(res["content_type"]).to(equal("gem"))
3233

3334
with it("is able to retrieve the python contents"):
34-
ok, res = self.client.query_image_content("alpine:latest", "python")
35+
ok, res = self.client.query_image_content(self.image_to_scan, "python")
3536

3637
expect((ok, res)).to(be_successful_api_call)
3738
expect(res["content_type"]).to(equal("python"))
3839

3940
with it("is able to retrieve the java contents"):
40-
ok, res = self.client.query_image_content("alpine:latest", "java")
41+
ok, res = self.client.query_image_content(self.image_to_scan, "java")
4142

4243
expect((ok, res)).to(be_successful_api_call)
4344
expect(res["content_type"]).to(equal("java"))
4445

4546
with it("is able to retrieve the files contents"):
46-
ok, res = self.client.query_image_content("alpine:latest", "files")
47+
ok, res = self.client.query_image_content(self.image_to_scan, "files")
4748

4849
expect((ok, res)).to(be_successful_api_call)
4950
expect(res["content"]).to(
@@ -52,7 +53,7 @@
5253

5354
with context("when the type is not in the supported list"):
5455
with it("returns an error indicating the type is incorrect"):
55-
ok, res = self.client.query_image_content("alpine:latest", "Unknown")
56+
ok, res = self.client.query_image_content(self.image_to_scan, "Unknown")
5657

5758
expect((ok, res)).not_to(be_successful_api_call)
5859
expect(res).to(equal(

0 commit comments

Comments
 (0)