shamrickus commented on code in PR #7470:
URL: https://github.com/apache/trafficcontrol/pull/7470#discussion_r1205647292


##########
experimental/traffic-portal/src/app/core/misc/isogeneration-form/isogeneration-form.component.spec.ts:
##########
@@ -49,6 +88,46 @@ describe("ISOGenerationFormComponent", () => {
                form = component.form.controls;
                const srv = TestBed.inject(MiscAPIsService);
                spy = spyOn(srv, "generateISO").and.callThrough();
+               loader = TestbedHarnessEnvironment.documentRootLoader(fixture);
+
+               const serverSrv = TestBed.inject(ServerService);
+
+               const serverType = (await 
TestBed.inject(TypeService).getServerTypes())[0];
+               if (!serverType) {
+                       return fail("no server types available");
+               }
+               const cg = (await 
TestBed.inject(CacheGroupService).getCacheGroups())[0];
+               if (!cg) {
+                       return fail("no cache groups available");
+               }
+               const cdn = (await TestBed.inject(CDNService).getCDNs())[0];
+               if (!cdn) {
+                       return fail("no cdns available");
+               }
+               const physLoc = (await 
TestBed.inject(PhysicalLocationService).getPhysicalLocations())[0];
+               if (!physLoc) {
+                       return fail("no physical locations available");
+               }
+               const profile = (await 
TestBed.inject(ProfileService).getProfiles())[0];
+               if (!profile) {
+                       return fail("no profiles available");
+               }
+               const status = (await serverSrv.getStatuses())[0];
+               if (!status) {
+                       return fail("no statuses available");
+               }
+
+               server = await serverSrv.createServer({
+                       cachegroupId: cg.id,
+                       cdnId: cdn.id,
+                       domainName: "test",
+                       hostName: "quest",
+                       interfaces: [iface],
+                       physLocationId: physLoc.id,
+                       profileId: profile.id,

Review Comment:
   This got updated in the rebase



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to