Skip to content

Commit

Permalink
Merge pull request #394 from okta/update-OAuthSettingClient
Browse files Browse the repository at this point in the history
update OAuthSettingClient
  • Loading branch information
duytiennguyen-okta committed Jun 23, 2023
2 parents bf67959 + 89e46b6 commit b145286
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 27 deletions.
18 changes: 4 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,11 @@
version: 2.1

orbs:
platform-orb: okta/general-platform-helpers@1.2.2
platform-orb: okta/general-platform-helpers@1.5

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
cache-secrets:
machine: true
resource_class: okta/generic-linux-x86
environment:
VAULT_ADDR: https://vault.aue1e.saasure.net
steps:
- checkout
- run:
name: "Vault login"
command: |
vault login -method=userpass username=$vault_username password=$vault_password > /dev/null 2>&1
- platform-orb/save-dependencies

test-v2:
docker:
Expand Down Expand Up @@ -50,7 +38,9 @@ jobs:
workflows:
"Circle CI Tests":
jobs:
- cache-secrets
- platform-orb/job-secrets-obtain:
name: cache-secrets
secret-key: "GO111MODULE;OKTA_CLIENT_CLIENTID;OKTA_CLIENT_ORGURL;OKTA_CLIENT_PRIVATEKEY;OKTA_CLIENT_TOKEN;OKTA_CCI"
- test-v2:
requires:
- cache-secrets
Expand Down
8 changes: 4 additions & 4 deletions .generator/okta-management-APIs-oasv3-enum-inheritance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20576,10 +20576,8 @@ components:
type: string
recordType:
$ref: '#/components/schemas/DNSRecordType'
values:
type: array
items:
type: string
verificationValue:
type: string
DNSRecordType:
type: string
enum:
Expand Down Expand Up @@ -23466,6 +23464,8 @@ components:
type: string
wildcard_redirect:
type: string
jwks_uri:
type: string
OpenIdConnectApplicationSettingsClientKeys:
type: object
properties:
Expand Down
14 changes: 7 additions & 7 deletions .generator/templates/api_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func Test_Activate_Application(t *testing.T) {
}

func Test_Application_Users_Operations(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(90))
}
createdApp, _, err := setupBasicAuthApplication(randomTestString())
Expand Down Expand Up @@ -188,7 +188,7 @@ func Test_Application_Users_Operations(t *testing.T) {
}

func Test_Application_Groups_Operations(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(90))
}
createdApp, _, err := setupBasicAuthApplication(randomTestString())
Expand Down Expand Up @@ -225,7 +225,7 @@ func Test_Application_Groups_Operations(t *testing.T) {
}

func Test_CSR_For_Application(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(90))
}
createdApp, _, err := setupBasicAuthApplication(randomTestString())
Expand Down Expand Up @@ -270,7 +270,7 @@ func Test_CSR_For_Application(t *testing.T) {
}

func TestGetDefaultProvisioningConnectionForApplication(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(90))
}
createdApp, _, err := setupOrg2OrgApplication(randomTestString())
Expand Down Expand Up @@ -321,7 +321,7 @@ func TestGetDefaultProvisioningConnectionForApplication(t *testing.T) {
// }

func Test_Upload_Application_Logo(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(180))
}
createdApp, _, err := setupBasicAuthApplication(randomTestString())
Expand All @@ -340,7 +340,7 @@ func Test_Upload_Application_Logo(t *testing.T) {
}

func Test_Application_Key_Operation(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(180))
}
createdApp1, _, err := setupBasicAuthApplication(randomTestString())
Expand Down Expand Up @@ -379,7 +379,7 @@ func Test_Application_Key_Operation(t *testing.T) {
}

func Test_Scope_Consent_Grant_Operation_For_Application(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") == "yes" {
if os.Getenv("OKTA_CCI") == "yes" {
time.Sleep(time.Duration(180))
}
createdApp, _, err := setupOIDCApplication(randomTestString())
Expand Down
4 changes: 2 additions & 2 deletions .generator/templates/private_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func Test_Private_Key_Request_Can_Create_User(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") != "yes" {
if os.Getenv("OKTA_CCI") != "yes" {
t.Skip("Skipping testing not in CI environment")
}
configuration := NewConfiguration(WithAuthorizationMode("PrivateKey"), WithScopes([]string{"okta.users.manage"}))
Expand All @@ -23,7 +23,7 @@ func Test_Private_Key_Request_Can_Create_User(t *testing.T) {
}

func Test_JWT_Request_Can_Create_User(t *testing.T) {
if os.Getenv("OKTA_TRAVIS_CI") != "yes" {
if os.Getenv("OKTA_CCI") != "yes" {
t.Skip("Skipping testing not in CI environment")
}
configuration := NewConfiguration(WithAuthorizationMode("JWT"), WithScopes([]string{"okta.users.manage"}))
Expand Down

0 comments on commit b145286

Please sign in to comment.