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

TestImports fails on CI #1408

Open
pmalek opened this issue Sep 26, 2024 · 0 comments
Open

TestImports fails on CI #1408

pmalek opened this issue Sep 26, 2024 · 0 comments
Labels

Comments

@pmalek
Copy link
Member

pmalek commented Sep 26, 2024

Problem statement

TestImports fails on CI https://github.com/Kong/deck/actions/runs/11046638654/job/30686346034#step:4:171

=== RUN   TestImports
    generate_resource_test.go:206: 
        	Error Trace:	/home/runner/work/deck/deck/kong2tf/generate_resource_test.go:206
        	Error:      	Not equal: 
        	            	expected: []string{"resource", "\"konnect_entity_type\"", "\"name\"", "{", "field1", "=", "\"basic_string\"", "field2", "=", "{", "nested", "=", "\"subkey\"", "}", "control_plane_id", "=", "var.control_plane_id", "}", "import", "{", "to", "=", "konnect_entity_type.name", "id", "=", "\"{\\\"id\\\":", "\\\"some_id\\\",", "\\\"field2_nested\\\":", "\\\"subkey\\\",", "\\\"control_plane_id\\\":", "\\\"abc-123\\\"}\"", "}"}
        	            	actual  : []string{"resource", "\"konnect_entity_type\"", "\"name\"", "{", "field1", "=", "\"basic_string\"", "field2", "=", "{", "nested", "=", "\"subkey\"", "}", "control_plane_id", "=", "var.control_plane_id", "}", "import", "{", "to", "=", "konnect_entity_type.name", "id", "=", "\"{\\\"field2_nested\\\":", "\\\"subkey\\\",", "\\\"id\\\":", "\\\"some_id\\\",", "\\\"control_plane_id\\\":", "\\\"abc-123\\\"}\"", "}"}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -26,6 +26,6 @@
        	            	  (string) (len=1) "=",
        	            	- (string) (len=9) "\"{\\\"id\\\":",
        	            	+ (string) (len=20) "\"{\\\"field2_nested\\\":",
        	            	+ (string) (len=11) "\\\"subkey\\\",",
        	            	+ (string) (len=7) "\\\"id\\\":",
        	            	  (string) (len=12) "\\\"some_id\\\",",
        	            	- (string) (len=18) "\\\"field2_nested\\\":",
        	            	- (string) (len=11) "\\\"subkey\\\",",
        	            	  (string) (len=21) "\\\"control_plane_id\\\":",
        	Test:       	TestImports
--- FAIL: TestImports (0.00s)
@pmalek pmalek added the testing label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant