Skip to content

Commit

Permalink
ci: add test runner for SDKs (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Sep 9, 2021
1 parent e612c97 commit 7d47d05
Show file tree
Hide file tree
Showing 15 changed files with 75 additions and 2,339 deletions.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ orbs:
changelog: ory/changelog@0.1.10
goreleaser: ory/goreleaser@0.1.34
slack: circleci/slack@3.4.2
sdk: ory/sdk@0.1.43
sdk: ory/sdk@0.1.49
docs: ory/docs@0.0.11
nancy: ory/nancy@0.0.18
golangci: ory/golangci@0.0.18
Expand Down Expand Up @@ -165,6 +165,12 @@ workflows:
filters:
tags:
only: /.*/
- sdk/test:
specpath: spec/api.json
generate: make sdk
filters:
tags:
only: /.*/
- sdk/generate-openapi:
requires:
- test
Expand All @@ -188,6 +194,7 @@ workflows:
- test
- test-e2e
- sdk/generate-openapi
- sdk/test
- goreleaser/release
filters:
tags:
Expand Down
24 changes: 1 addition & 23 deletions .schema/openapi/patches/selfservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
# All modifications for the registration flow
- op: remove
path: /components/schemas/submitSelfServiceRegistrationFlowBody/type
# - op: add
# path: /components/schemas/submitSelfServiceRegistrationFlowWithPasswordMethodBody/properties/method/enum
# value:
# - password
- op: add
path: /components/schemas/submitSelfServiceRegistrationFlowBody/oneOf
value:
Expand All @@ -32,14 +28,11 @@
# All modifications for the login flow
- op: remove
path: /components/schemas/submitSelfServiceLoginFlowBody/type
# - op: add
# path: /components/schemas/submitSelfServiceLoginFlowWithPasswordMethodBody/properties/method/enum
# value:
# - password
- op: add
path: /components/schemas/submitSelfServiceLoginFlowBody/oneOf
value:
- "$ref": "#/components/schemas/submitSelfServiceLoginFlowWithPasswordMethodBody"
- "$ref": "#/components/schemas/submitSelfServiceLoginFlowWithOidcMethodBody"
- op: add
path: /components/schemas/submitSelfServiceLoginFlowBody/discriminator
value:
Expand All @@ -52,11 +45,6 @@
# All modifications for the recovery flow
- op: remove
path: /components/schemas/submitSelfServiceRecoveryFlowBody/type
# - op: add
# path: /components/schemas/submitSelfServiceRecoveryFlowWithLinkMethodBody/properties/method/enum
# value:
# - link
# - placeholder
- op: add
path: /components/schemas/submitSelfServiceRecoveryFlowBody/oneOf
value:
Expand All @@ -78,10 +66,6 @@
# All modifications for the verification flow
- op: remove
path: /components/schemas/submitSelfServiceVerificationFlowBody/type
# - op: replace
# path: /components/schemas/submitSelfServiceVerificationFlowWithLinkMethodBody/properties/method/enum
# value:
# - link
- op: add
path: /components/schemas/submitSelfServiceVerificationFlowBody/oneOf
value:
Expand All @@ -103,12 +87,6 @@
# All modifications for the settings flow
- op: remove
path: /components/schemas/submitSelfServiceSettingsFlowBody/type
# - op: add
# path: /components/schemas/submitSelfServiceSettingsFlowWithPasswordMethodBody/properties/method/enum
# value:
# - password
# - profile
# - oidc
- op: add
path: /components/schemas/submitSelfServiceSettingsFlowBody/oneOf
value:
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ test-coverage: .bin/go-acc .bin/goveralls
# Generates the SDK
.PHONY: sdk
sdk: .bin/swagger .bin/ory node_modules
swagger generate spec -m -o spec/swagger.json -x github.com/ory/kratos-client-go
swagger generate spec -m -o spec/swagger.json \
-x github.com/ory/kratos-client-go \
-x github.com/ory/dockertest
ory dev swagger sanitize ./spec/swagger.json
swagger validate ./spec/swagger.json
CIRCLE_PROJECT_USERNAME=ory CIRCLE_PROJECT_REPONAME=kratos \
Expand Down
1 change: 1 addition & 0 deletions go_mod_indirect_pins.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build tools
// +build tools

package main
Expand Down
58 changes: 0 additions & 58 deletions internal/httpclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,18 @@ configuration.go
docs/AdminCreateIdentityBody.md
docs/AdminCreateSelfServiceRecoveryLinkBody.md
docs/AdminUpdateIdentityBody.md
docs/AuthenticateOKBody.md
docs/ContainerChangeResponseItem.md
docs/ContainerCreateCreatedBody.md
docs/ContainerTopOKBody.md
docs/ContainerUpdateOKBody.md
docs/ContainerWaitOKBody.md
docs/ContainerWaitOKBodyError.md
docs/ErrorResponse.md
docs/GenericError.md
docs/GraphDriverData.md
docs/HealthNotReadyStatus.md
docs/HealthStatus.md
docs/IdResponse.md
docs/Identity.md
docs/IdentityCredentials.md
docs/IdentityState.md
docs/ImageDeleteResponseItem.md
docs/ImageSummary.md
docs/InlineResponse200.md
docs/InlineResponse2001.md
docs/InlineResponse503.md
docs/JsonError.md
docs/Meta.md
docs/MetadataApi.md
docs/Plugin.md
docs/PluginConfig.md
docs/PluginConfigArgs.md
docs/PluginConfigInterface.md
docs/PluginConfigLinux.md
docs/PluginConfigNetwork.md
docs/PluginConfigRootfs.md
docs/PluginConfigUser.md
docs/PluginDevice.md
docs/PluginEnv.md
docs/PluginInterfaceType.md
docs/PluginMount.md
docs/PluginSettings.md
docs/Port.md
docs/RecoveryAddress.md
docs/SelfServiceError.md
docs/SelfServiceLoginFlow.md
Expand All @@ -59,7 +33,6 @@ docs/SelfServiceSettingsFlow.md
docs/SelfServiceSettingsFlowState.md
docs/SelfServiceVerificationFlow.md
docs/SelfServiceVerificationFlowState.md
docs/ServiceUpdateResponse.md
docs/Session.md
docs/SettingsProfileFormConfig.md
docs/SubmitSelfServiceLoginFlowBody.md
Expand Down Expand Up @@ -91,51 +64,23 @@ docs/UiText.md
docs/V0alpha1Api.md
docs/VerifiableIdentityAddress.md
docs/Version.md
docs/Volume.md
docs/VolumeUsageData.md
git_push.sh
go.mod
go.sum
model_admin_create_identity_body.go
model_admin_create_self_service_recovery_link_body.go
model_admin_update_identity_body.go
model_authenticate_ok_body.go
model_container_change_response_item.go
model_container_create_created_body.go
model_container_top_ok_body.go
model_container_update_ok_body.go
model_container_wait_ok_body.go
model_container_wait_ok_body_error.go
model_error_response.go
model_generic_error.go
model_graph_driver_data.go
model_health_not_ready_status.go
model_health_status.go
model_id_response.go
model_identity.go
model_identity_credentials.go
model_identity_state.go
model_image_delete_response_item.go
model_image_summary.go
model_inline_response_200.go
model_inline_response_200_1.go
model_inline_response_503.go
model_json_error.go
model_meta.go
model_plugin.go
model_plugin_config.go
model_plugin_config_args.go
model_plugin_config_interface.go
model_plugin_config_linux_.go
model_plugin_config_network.go
model_plugin_config_rootfs.go
model_plugin_config_user.go
model_plugin_device.go
model_plugin_env.go
model_plugin_interface_type.go
model_plugin_mount.go
model_plugin_settings.go
model_port.go
model_recovery_address.go
model_self_service_error.go
model_self_service_login_flow.go
Expand All @@ -148,7 +93,6 @@ model_self_service_settings_flow.go
model_self_service_settings_flow_state.go
model_self_service_verification_flow.go
model_self_service_verification_flow_state.go
model_service_update_response.go
model_session.go
model_settings_profile_form_config.go
model_submit_self_service_login_flow_body.go
Expand Down Expand Up @@ -179,7 +123,5 @@ model_ui_node_text_attributes.go
model_ui_text.go
model_verifiable_identity_address.go
model_version.go
model_volume.go
model_volume_usage_data.go
response.go
utils.go
2 changes: 1 addition & 1 deletion internal/httpclient/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.1
5.2.1
29 changes: 0 additions & 29 deletions internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,43 +126,17 @@ Class | Method | HTTP request | Description
- [AdminCreateIdentityBody](docs/AdminCreateIdentityBody.md)
- [AdminCreateSelfServiceRecoveryLinkBody](docs/AdminCreateSelfServiceRecoveryLinkBody.md)
- [AdminUpdateIdentityBody](docs/AdminUpdateIdentityBody.md)
- [AuthenticateOKBody](docs/AuthenticateOKBody.md)
- [ContainerChangeResponseItem](docs/ContainerChangeResponseItem.md)
- [ContainerCreateCreatedBody](docs/ContainerCreateCreatedBody.md)
- [ContainerTopOKBody](docs/ContainerTopOKBody.md)
- [ContainerUpdateOKBody](docs/ContainerUpdateOKBody.md)
- [ContainerWaitOKBody](docs/ContainerWaitOKBody.md)
- [ContainerWaitOKBodyError](docs/ContainerWaitOKBodyError.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [GenericError](docs/GenericError.md)
- [GraphDriverData](docs/GraphDriverData.md)
- [HealthNotReadyStatus](docs/HealthNotReadyStatus.md)
- [HealthStatus](docs/HealthStatus.md)
- [IdResponse](docs/IdResponse.md)
- [Identity](docs/Identity.md)
- [IdentityCredentials](docs/IdentityCredentials.md)
- [IdentityState](docs/IdentityState.md)
- [ImageDeleteResponseItem](docs/ImageDeleteResponseItem.md)
- [ImageSummary](docs/ImageSummary.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse2001](docs/InlineResponse2001.md)
- [InlineResponse503](docs/InlineResponse503.md)
- [JsonError](docs/JsonError.md)
- [Meta](docs/Meta.md)
- [Plugin](docs/Plugin.md)
- [PluginConfig](docs/PluginConfig.md)
- [PluginConfigArgs](docs/PluginConfigArgs.md)
- [PluginConfigInterface](docs/PluginConfigInterface.md)
- [PluginConfigLinux](docs/PluginConfigLinux.md)
- [PluginConfigNetwork](docs/PluginConfigNetwork.md)
- [PluginConfigRootfs](docs/PluginConfigRootfs.md)
- [PluginConfigUser](docs/PluginConfigUser.md)
- [PluginDevice](docs/PluginDevice.md)
- [PluginEnv](docs/PluginEnv.md)
- [PluginInterfaceType](docs/PluginInterfaceType.md)
- [PluginMount](docs/PluginMount.md)
- [PluginSettings](docs/PluginSettings.md)
- [Port](docs/Port.md)
- [RecoveryAddress](docs/RecoveryAddress.md)
- [SelfServiceError](docs/SelfServiceError.md)
- [SelfServiceLoginFlow](docs/SelfServiceLoginFlow.md)
Expand All @@ -175,7 +149,6 @@ Class | Method | HTTP request | Description
- [SelfServiceSettingsFlowState](docs/SelfServiceSettingsFlowState.md)
- [SelfServiceVerificationFlow](docs/SelfServiceVerificationFlow.md)
- [SelfServiceVerificationFlowState](docs/SelfServiceVerificationFlowState.md)
- [ServiceUpdateResponse](docs/ServiceUpdateResponse.md)
- [Session](docs/Session.md)
- [SettingsProfileFormConfig](docs/SettingsProfileFormConfig.md)
- [SubmitSelfServiceLoginFlowBody](docs/SubmitSelfServiceLoginFlowBody.md)
Expand Down Expand Up @@ -206,8 +179,6 @@ Class | Method | HTTP request | Description
- [UiText](docs/UiText.md)
- [VerifiableIdentityAddress](docs/VerifiableIdentityAddress.md)
- [Version](docs/Version.md)
- [Volume](docs/Volume.md)
- [VolumeUsageData](docs/VolumeUsageData.md)


## Documentation For Authorization
Expand Down
Loading

0 comments on commit 7d47d05

Please sign in to comment.