Class componenttest.containers.ArtifactoryRegistryTest

5

tests

0

failures

0

ignored

0.183s

duration

100%

successful

Tests

Test Duration Result
testExistingDefaultConfig 0.002s passed
testExistingEmptyConfig 0.003s passed
testExistingRegistryAuth 0.003s passed
testExistingRegistryAuthMatched 0.002s passed
testNoExisingConfig 0.173s passed

Standard output

### TestName: testNoExisingConfig ###
expected: 
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	}
}
actual:   
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	}
}
### TestName: testExistingEmptyConfig ###
expected: 
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	}
}
actual:   
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	}
}
### TestName: testExistingDefaultConfig ###
expected: 
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	},
	"credsStore": "desktop",
	"currentContext": "desktop-linux"
}
actual:   
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	},
	"credsStore": "desktop",
	"currentContext": "desktop-linux"
}
### TestName: testExistingRegistryAuth ###
expected: 
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		},
		"fake.com": {
			"auth": "fakeToken987654321",
			"email": null
		}
	}
}
actual:   
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		},
		"fake.com": {
			"auth": "fakeToken987654321",
			"email": null
		}
	}
}
### TestName: testExistingRegistryAuthMatched ###
expected: 
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	}
}
actual:   
{
	"auths": {
		"example.com": {
			"auth": "token123456789",
			"email": null
		}
	}
}

Standard error

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Generating a private registry config file at: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: New config.json contents are:
{
	"auths": {
		"example.com": {
			"auth": "****Token Redacted****",
			"email": null
		}
	}
}
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Config already exists at: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Original contents:
{
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: No auths exist. Adding auth block
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: New config.json contents are:
{
	"auths": {
		"example.com": {
			"auth": "****Token Redacted****",
			"email": null
		}
	}
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Config already exists at: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Original contents:
{
	"credsStore": "desktop",
	"currentContext": "desktop-linux"
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: No auths exist. Adding auth block
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: New config.json contents are:
{
	"auths": {
		"example.com": {
			"auth": "****Token Redacted****",
			"email": null
		}
	},
	"credsStore": "desktop",
	"currentContext": "desktop-linux"
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Config already exists at: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Original contents:
{
	"auths": {
		"fake.com": {
			"auth": "****Token Redacted****",
			"email": null
		}
	}
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Other auths exist. Need to add auth token for registry: example.com
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: New config.json contents are:
{
	"auths": {
		"example.com": {
			"auth": "****Token Redacted****",
			"email": null
		},
		"fake.com": {
			"auth": "****Token Redacted****",
			"email": null
		}
	}
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry writeFile
INFO: Wrote property to: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Config already exists at: /home/libbld/Liberty/jazz-build-engines/wasrtc/wasrtc.ws.liblinrh10.solo/build/open-liberty/dev/fattest.simplicity/build/libs/tmp/.docker/config.json
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Original contents:
{
	"auths": {
		"example.com": {
			"auth": "****Token Redacted****",
			"email": null
		}
	}
}

Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Config already contains the private registry: example.com
Jun 12, 2023 12:19:45 PM componenttest.containers.ArtifactoryRegistry generateDockerConfig
INFO: Config already contains the correct auth token for registry: example.com