Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for posturemanagement IntegrationTesting failure #45

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions posturemanagementv1/posture_management_v1_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var _ = Describe(`PostureManagementV1 Integration Tests`, func() {
collectorId string
credentialId string
scanId string
profileId string
credentialString string
err error
accountId string
Expand Down Expand Up @@ -103,10 +104,11 @@ var _ = Describe(`PostureManagementV1 Integration Tests`, func() {
URL: authUrl,
}

collectorId = "2632"
credentialId = "6307"
scopeId = "34001"
scanId = "39950"
credentialId = config["CREDENTIAL_ID"]
collectorId = config["COLLECTOR_ID"]
scopeId = config["SCOPE_ID"]
profileId=config["PROFILE_ID"]
scanId = config["SCAN_ID"]

fmt.Printf("Service URL: %s\n", serviceURL)
shouldSkipTest = func() {}
Expand Down Expand Up @@ -160,7 +162,7 @@ var _ = Describe(`PostureManagementV1 Integration Tests`, func() {

createValidationOptions := &posturemanagementv1.CreateValidationOptions{
ScopeID: core.StringPtr(scopeId),
ProfileID: core.StringPtr("48"),
ProfileID: core.StringPtr(profileId),
GroupProfileID: core.StringPtr("0"),
TransactionID: core.StringPtr(uuid.NewString()),
}
Expand All @@ -182,7 +184,7 @@ var _ = Describe(`PostureManagementV1 Integration Tests`, func() {

scansSummaryOptions := &posturemanagementv1.ScansSummaryOptions{
ScanID: core.StringPtr(scanId),
ProfileID: core.StringPtr("48"),
ProfileID: core.StringPtr(profileId),
TransactionID: core.StringPtr(uuid.NewString()),
}

Expand All @@ -203,7 +205,7 @@ var _ = Describe(`PostureManagementV1 Integration Tests`, func() {

scanSummariesOptions := &posturemanagementv1.ScanSummariesOptions{
ScopeID: core.StringPtr(scopeId),
ProfileID: core.StringPtr("48"),
ProfileID: core.StringPtr(profileId),
TransactionID: core.StringPtr(uuid.NewString()),
}

Expand Down