Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '>=1.19.0'
go-version: '1.27.x'
- name: Build
run: go build -a -race -v ./...
- name: Vet
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/OctopusDeploy/go-octopusdeploy/v2

go 1.23.12
go 1.25.0

require (
github.com/MakeNowJust/heredoc/v2 v2.0.1
Expand Down
2 changes: 1 addition & 1 deletion pkg/accounts/account_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ func TestAccountResourceAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(exampleAsJSON, string(accountAsJSON))
jsonassert.New(t).Assertf(exampleAsJSON, "%s", string(accountAsJSON))
}
2 changes: 1 addition & 1 deletion pkg/accounts/amazon_web_services_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestAmazonWebServicesAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestAmazonWebServicesAccountNewWithConfigs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/credentials/anonymous_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ func TestAnonymousMarshalJSON(t *testing.T) {
"Type": "%s"
}`, credentials.GitCredentialTypeAnonymous)

jsonassert.New(t).Assertf(expectedJSON, string(anonymousAsJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(anonymousAsJSON))
}
2 changes: 1 addition & 1 deletion pkg/credentials/reference_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ func TestReferenceMarshalJSON(t *testing.T) {
"Type": "%s"
}`, id, credentials.GitCredentialTypeReference)

jsonassert.New(t).Assertf(expectedJSON, string(referenceAsJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(referenceAsJSON))
}
6 changes: 3 additions & 3 deletions pkg/credentials/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestResourceWithUsernamePasswordAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, resourceAsJSON)

jsonassert.New(t).Assertf(expectedJSON, string(resourceAsJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(resourceAsJSON))
}

func TestResourceWithAnonymousAsJSON(t *testing.T) {
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestResourceWithAnonymousAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, resourceAsJSON)

jsonassert.New(t).Assertf(expectedJSON, string(resourceAsJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(resourceAsJSON))
}

func TestResourceWithReferenceAsJSON(t *testing.T) {
Expand Down Expand Up @@ -145,5 +145,5 @@ func TestResourceWithReferenceAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, resourceAsJSON)

jsonassert.New(t).Assertf(expectedJSON, string(resourceAsJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(resourceAsJSON))
}
4 changes: 2 additions & 2 deletions pkg/defects/defect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestDefectAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, actualJSON)

jsonassert.New(t).Assertf(expectedJSON, string(actualJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(actualJSON))
}

func TestDefectWithStatusAsJSON(t *testing.T) {
Expand All @@ -53,6 +53,6 @@ func TestDefectWithStatusAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, actualJSON)

jsonassert.New(t).Assertf(expectedJSON, string(actualJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(actualJSON))

}
4 changes: 2 additions & 2 deletions pkg/deployments/deployment_process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestDeploymentProcessAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, actualJSON)

jsonassert.New(t).Assertf(expectedJSON, string(actualJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(actualJSON))

stepName := internal.GetRandomName()

Expand Down Expand Up @@ -74,5 +74,5 @@ func TestDeploymentProcessAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, actualJSON)

jsonassert.New(t).Assertf(expectedJSON, string(actualJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(actualJSON))
}
2 changes: 1 addition & 1 deletion pkg/environments/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ func TestEnvironmentExtensionSettingsAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, actualJSON)

jsonassert.New(t).Assertf(expectedJSON, string(actualJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(actualJSON))
}
2 changes: 1 addition & 1 deletion pkg/extensions/extension_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func TestExtensionSettingsMarshalJSON(t *testing.T) {
standardChangeTemplateName,
)

jsonassert.New(t).Assertf(expectedJson, string(serviceNowExtensionSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(serviceNowExtensionSettingsAsJSON))
}
6 changes: 3 additions & 3 deletions pkg/lifecycles/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestLifecycleAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, lifecycleAsJSON)

jsonassert.New(t).Assertf(expectedJSON, string(lifecycleAsJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(lifecycleAsJSON))
}

func TestLifecycleUnmarshalJSON(t *testing.T) {
Expand Down Expand Up @@ -219,7 +219,7 @@ func TestLifecycleToJson(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, lifecycleAsJson)

jsonassert.New(t).Assertf(string(lifecycleAsJson), expectedJson)
jsonassert.New(t).Assertf(string(lifecycleAsJson), "%s", expectedJson)

description := "test-description"
lifecycle.Description = description
Expand All @@ -245,7 +245,7 @@ func TestLifecycleToJson(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, lifecycleAsJson)

jsonassert.New(t).Assertf(string(lifecycleAsJson), expectedJson)
jsonassert.New(t).Assertf(string(lifecycleAsJson), "%s", expectedJson)
}

func TestLifecycleFromJson(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/machines/kubernetes_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestKubernetesEndpointMarshalJSON(t *testing.T) {
}
}`

jsonassert.New(t).Assertf(actual, expected)
jsonassert.New(t).Assertf(actual, "%s", expected)
}

func TestKubernetesEndpointUnmarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platformhubaccounts/platform_hub_aws_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestPlatformHubAwsAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubAwsAccountNewWithConfigs(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestPlatformHubAwsOIDCAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubAwsOIDCAccountNewWithConfigs(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestPlatformHubAzureOidcAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubAzureOidcAccountNewWithConfigs(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestPlatformHubAzureServicePrincipalAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubAzureServicePrincipalAccountNewWithConfigs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platformhubaccounts/platform_hub_gcp_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestPlatformHubGcpAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubGcpAccountNewWithConfigs(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestPlatformHubGenericOidcAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubGenericOidcAccountNewWithConfigs(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestPlatformHubUsernamePasswordAccountMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, accountAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(accountAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(accountAsJSON))
}

func TestPlatformHubUsernamePasswordAccountNewWithConfigs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platformhubpolicies/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func testAssertUpsertCommandMarshalJSON(t *testing.T, command platformHubPolicyU
"ViolationAction": "%s"
}`, expectedCommit, expected.name, expected.gitRef, expected.slug, expected.description, expected.scopeRego, expected.conditionsRego, expected.violationReason, expected.violationAction)

jsonassert.New(t).Assertf(expectedJson, string(jsonCommand))
jsonassert.New(t).Assertf(expectedJson, "%s", string(jsonCommand))
}

func TestPoliciesQueryResult_UnmarshalJSON(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/projects/git_persistence_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestGitPersistenceSettingsMarshalJSONWithProtectedDefaultBranch(t *testing.
require.NoError(t, err)
require.NotNil(t, gitPersistenceSettingsAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(gitPersistenceSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(gitPersistenceSettingsAsJSON))
}

func TestGitPersistenceSettingsMarshalJSONWithProtectedDefaultBranchAsLastItem(t *testing.T) {
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestGitPersistenceSettingsMarshalJSONWithProtectedDefaultBranchAsLastItem(t
require.NoError(t, err)
require.NotNil(t, gitPersistenceSettingsAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(gitPersistenceSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(gitPersistenceSettingsAsJSON))
}

func TestGitPersistenceSettingsMarshalJSONWithoutProtectedDefaultBranch(t *testing.T) {
Expand Down Expand Up @@ -163,7 +163,7 @@ func TestGitPersistenceSettingsMarshalJSONWithoutProtectedDefaultBranch(t *testi
require.NoError(t, err)
require.NotNil(t, gitPersistenceSettingsAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(gitPersistenceSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(gitPersistenceSettingsAsJSON))
}

func TestGitPersistenceSettingsMarshalJSON_OmitsConversionState(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestJiraServiceManagementExtensionSettingsMarshalJSON(t *testing.T) {
}
}`, extensions.JiraServiceManagementExtensionID, isChangeControlled, connectionID, serviceDeskProjectName)

jsonassert.New(t).Assertf(expectedJson, string(jiraServiceManagementExtensionSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(jiraServiceManagementExtensionSettingsAsJSON))
}

func TestJiraServiceManagementExtensionSettingsUnmarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/projects/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ func TestProjectExtensionSettingsAsJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, actualJSON)

jsonassert.New(t).Assertf(expectedJSON, string(actualJSON))
jsonassert.New(t).Assertf(expectedJSON, "%s", string(actualJSON))
}
4 changes: 2 additions & 2 deletions pkg/projects/servicenow_extension_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestServiceNowExtensionSettingsMarshalJSON(t *testing.T) {
}
}`, extensions.ServiceNowExtensionID, isStateAutomaticallyTransitioned, standardChangeTemplateName, isChangeControlled, connectionID)

jsonassert.New(t).Assertf(expectedJson, string(serviceNowExtensionSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(serviceNowExtensionSettingsAsJSON))
}

func TestServiceNowExtensionSettingsMarshalJSONWithoutStandardChangeTemplateName(t *testing.T) {
Expand All @@ -79,7 +79,7 @@ func TestServiceNowExtensionSettingsMarshalJSONWithoutStandardChangeTemplateName
}
}`, extensions.ServiceNowExtensionID, connectionID)

jsonassert.New(t).Assertf(expectedJson, string(serviceNowExtensionSettingsAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(serviceNowExtensionSettingsAsJSON))
}

func TestServiceNowExtensionSettingsUnmarshalJSON(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/runbooks/runbook_retention_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestCountBasedRunbookRetentionPolicyMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, runbookRetentionPolicyAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(runbookRetentionPolicyAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(runbookRetentionPolicyAsJSON))
}

func TestKeepForeverRunbookRetentionPolicyMarshalJSON(t *testing.T) {
Expand All @@ -41,7 +41,7 @@ func TestKeepForeverRunbookRetentionPolicyMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, runbookRetentionPolicyAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(runbookRetentionPolicyAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(runbookRetentionPolicyAsJSON))
}

func TestDefaultRunbookRetentionPolicyMarshalJSON(t *testing.T) {
Expand All @@ -58,7 +58,7 @@ func TestDefaultRunbookRetentionPolicyMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, runbookRetentionPolicyAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(runbookRetentionPolicyAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(runbookRetentionPolicyAsJSON))
}

func TestCountBasedRunbookRetentionPolicyWithStrategyUnmarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/subscriptions/subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ func TestEventNotificationSubscriptionSlackFieldsJSON(t *testing.T) {
outputJSON, err := json.Marshal(sub)
require.NoError(t, err)

jsonassert.New(t).Assertf(inputJSON, string(outputJSON))
jsonassert.New(t).Assertf(inputJSON, "%s", string(outputJSON))
}
14 changes: 8 additions & 6 deletions test/e2e/package_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,14 @@ func TestPackageServiceUploadDelta_UploadedDelta(t *testing.T) {
require.NotNil(t, deltaResponse)
defer DeleteTestPackage(t, octopus, deltaResponse.GetID())

// it tells us if it did delta via response.UploadInfo
// Orion: Note These are the values when run on my machine, but because the data is random, and
// due to platform differences they may not always be the same; commented out and left for
// explanatory purposes only.
assert.Equal(t, int64(1049158), deltaResponse.UploadInfo.FileSize)
assert.Equal(t, int64(524938), deltaResponse.UploadInfo.DeltaSize)
// it tells us if it did delta via response.UploadInfo.
// The exact byte counts depend on the random content and on the zip encoder in the toolchain
// building the test (archive/zip's per-entry overhead changed in Go 1.27), so assert the
// relationship that actually matters: only content2.txt is new, so the delta should carry
// roughly half of the full file rather than all of it.
assert.Greater(t, deltaResponse.UploadInfo.FileSize, int64(1024*1024))
assert.Less(t, deltaResponse.UploadInfo.DeltaSize, deltaResponse.UploadInfo.FileSize)
assert.Greater(t, deltaResponse.UploadInfo.DeltaSize, int64(256*1024))
assert.Equal(t, packages.DeltaBehaviourUploadedDeltaFile, deltaResponse.UploadInfo.DeltaBehaviour)
}

Expand Down
2 changes: 1 addition & 1 deletion test/resources/anonymous_git_credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestAnonymousGitCredentialMarshalJSON(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, anonymousGitCredentialAsJSON)

jsonassert.New(t).Assertf(expectedJson, string(anonymousGitCredentialAsJSON))
jsonassert.New(t).Assertf(expectedJson, "%s", string(anonymousGitCredentialAsJSON))
}

func TestAnonymousGitCredentialUnmarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/resources/build_information_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestCreateBuildInformationCommandMarshalJSON(t *testing.T) {
commandAsJSON, err := json.Marshal(createBuildInformationCommand)
require.NoError(t, err)
require.NotNil(t, commandAsJSON)
jsonassert.New(t).Assertf(string(commandAsJSON), expectedJson)
jsonassert.New(t).Assertf(string(commandAsJSON), "%s", expectedJson)
}

func TestCreateBuildInformationCommandUnmarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/resources/display_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestDisplaySettingsAsJson(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, displaySettingsAsJson)

jsonassert.New(t).Assertf(expectedJson, string(displaySettingsAsJson))
jsonassert.New(t).Assertf(expectedJson, "%s", string(displaySettingsAsJson))
}

func TestSelectOptions(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions test/resources/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestProjectMarshalJSON(t *testing.T) {
projectAsJSON, err := json.Marshal(project)
require.NoError(t, err)
require.NotNil(t, projectAsJSON)
jsonassert.New(t).Assertf(string(projectAsJSON), expectedJson)
jsonassert.New(t).Assertf(string(projectAsJSON), "%s", expectedJson)

connectivityPolicy := core.NewConnectivityPolicy()
connectivityPolicyAsJSON, err := json.Marshal(connectivityPolicy)
Expand All @@ -73,7 +73,7 @@ func TestProjectMarshalJSON(t *testing.T) {
"CombineHealthAndSyncStatusInDashboardLiveStatus": false
}`, lifecycleID, name, connectivityPolicyAsJSON, projectGroupID)

jsonassert.New(t).Assertf(string(projectAsJSON), expectedJson)
jsonassert.New(t).Assertf(string(projectAsJSON), "%s", expectedJson)
}

func TestProjectUnmarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/resources/sensitive_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestSensitiveValueBehaviour(t *testing.T) {
"NewValue": "%s"
}`, hasValue, hint, newValue)

jsonassert.New(t).Assertf(string(sensitiveValueAsJSON), testWithHintSensitiveValueAsJSON)
jsonassert.New(t).Assertf(string(sensitiveValueAsJSON), "%s", testWithHintSensitiveValueAsJSON)
}

func TestNewSensitiveValueBehaviour(t *testing.T) {
Expand Down
Loading
Loading