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

Add Compass Runtime Agent acceptance tests #5270

Merged
merged 28 commits into from
Aug 16, 2019

Conversation

Szymongib
Copy link
Contributor

Description

Changes proposed in this pull request:

  • Add Compass Runtime Agent acceptance tests
  • Adjust charts

Related issue(s)

@Szymongib Szymongib added kind/feature Categorizes issue or PR as related to a new feature. area/application-connector Issues or PRs related to application connectivity labels Aug 9, 2019
@Szymongib Szymongib added this to the Sprint_Framefrog_16 milestone Aug 9, 2019
@franpog859
Copy link
Contributor

/test pre-master-kyma-gke-compass-integration

c.assertEventAPIs(t, appId, compassEventAPIs, appCR)
}

func (c *K8sResourceChecker) AssertEventAPIResourcesDeleted(t *testing.T, applicationId, eventAPIId string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is identical to "AssertAPIResourcesDeleted".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

data: "{{.Data}}",
{{- end}}
{{- if .FetchRequest }}
fetchRequest: {{- FetchRequesstInputToGQL .FetchRequest }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: FetchRequesstInputToGQL.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

case *graphql.OAuthCredentialData:
return fmt.Sprintf("%s/%s/%s", mock.OAuth, cred.ClientID, cred.ClientSecret)
default:
t.Fatalf("Failed to get path based on authentication: unkonw credentials type")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Unkonw

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

case *graphql.OAuthCredentialData:
c.assertK8sOAuthSecret(t, secretName, cred, service)
default:
t.Fatalf("Unkonw credentials type")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Unkonw

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

// update no auth API to OAuth
noAuthAPI, found := getAPIByName(application.APIs.Data, "no-auth-api")
require.True(t, found)
updatedInput := applications.NewAPI("basic-to-oauth", "", noAuthAPI.TargetURL).WithAuth(oauth)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"no-auth-to-oauth" instead of "basic-to-oauth"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

require.NoError(t, err)
updatedAPIs = append(updatedAPIs, newBasicAuthAPI)

// update OAuth API to Basic Auth
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"update BasicAuth to no auth"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Szymongib
Copy link
Contributor Author

/retest

@kyma-bot
Copy link
Contributor

kyma-bot commented Aug 16, 2019

@Szymongib: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pre-master-kyma-gke-compass-integration 8ba34c6 link /test pre-master-kyma-gke-compass-integration

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@Szymongib Szymongib merged commit 63de0ca into kyma-project:master Aug 16, 2019
@Szymongib Szymongib deleted the runtime-agent-tests branch August 16, 2019 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/application-connector Issues or PRs related to application connectivity kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants