Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

the Connection's enabled_clients attribute is not indempotent #95

Merged
merged 2 commits into from
Mar 25, 2019

Conversation

laurentdutheil
Copy link
Contributor

Hello

When I create a Connection with enabled_clients, the order of the ids is not always the same.
I have an error like that:

	testing.go:527: Step 0 error: After applying this step, the plan was not empty:
		
		DIFF:
		
		UPDATE: auth0_connection.my_connection
		  enabled_clients.0: "VciGGT5jZGbIlYC3nKABabKGjFlx8pMD" => "d8Io6XgKtoUHScGqmcniX9lLHpl4CHbE"
		  enabled_clients.1: "d8Io6XgKtoUHScGqmcniX9lLHpl4CHbE" => "xUolj4m6SejtAjtP3czFiSZw3f7M7c4q"
		  enabled_clients.2: "xUolj4m6SejtAjtP3czFiSZw3f7M7c4q" => "yqncnHsP3Gane086n5s70ucEUyuVFZ0Q"
		  enabled_clients.3: "yqncnHsP3Gane086n5s70ucEUyuVFZ0Q" => "VciGGT5jZGbIlYC3nKABabKGjFlx8pMD"

I propose to add a DiffSuppressFunc on the attribute.
But the verification is slow (up to 6s on my computer and auth0 tenant).
Do you think of another solution ?

@alexkappa
Copy link
Owner

Hi @laurentdutheil, thats a nice approach you took with this! I think the reason why the tests take so long is due to the small rate limits allowed by Auth0 on free accounts. The test creates several resources, so it's understandable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants