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

Fix model default tests + Allow empty default-series with default-base. #15718

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

hpidcock
Copy link
Member

@hpidcock hpidcock commented Jun 9, 2023

Fixes model default tests to not pass the model name incorrectly.
Fixes exporting model-config then reimporting model-config as it will always have both default-series and default-base, but default-series being empty while passing default-base should be allowed and ignored.

QA steps

  • ./main.sh -v -s '"test_block_commands,test_display_clouds,test_local_charms,test_model_config,test_unregister"' cli test_model_defaults
  • juju bootstrap microk8s; juju model-config --format=yaml | juju model-config --ignore-read-only-fields --file -

Documentation changes

N/A

Bug reference

https://jenkins.juju.canonical.com/job/test-cli-test-model-defaults-lxd/1205/consoleText

@hpidcock hpidcock requested a review from wallyworld June 9, 2023 00:32
tests/suites/cli/model_defaults.sh Outdated Show resolved Hide resolved
@hpidcock
Copy link
Member Author

hpidcock commented Jun 9, 2023

/merge

@jujubot jujubot merged commit 7ccba37 into juju:3.1 Jun 9, 2023
16 of 20 checks passed
@nvinuesa nvinuesa mentioned this pull request Jun 13, 2023
jujubot added a commit that referenced this pull request Jun 13, 2023
@jack-w-shaw jack-w-shaw mentioned this pull request Jun 14, 2023
jujubot added a commit that referenced this pull request Jun 14, 2023
This was referenced Jun 14, 2023
jujubot added a commit that referenced this pull request Jun 15, 2023
#15761

Forward merge

Merges:
- #15718
- #15736
- #15728
- #15739
- #15740
- #15741
- #15726
- #15742
- #15745
- #15747
- #15688

Conflicts:
- api/watcher/watcher_test.go (imports re-generated)
- apiserver/facades/client/client/testing/suite.go (deleted in main)
- apiserver/facades/controller/charmdownloader/interfaces.go (imports re-generated)
- apiserver/rest_test.go (imports re-generated)
- cmd/juju/application/deploy_test.go ([These tests](https://github.com/juju/juju/blob/3.3/cmd/juju/application/deploy_test.go#L1598-L1807) were moved to bundle_test.go in main. Resolve this conflict by removing from deploy_test.go & adding [this commit](f10917f) to transfer over a change that was lost)
- cmd/juju/application/export_test.go (imports re-generated)
- cmd/juju/application/unexpose_test.go (imports re-generated)
- core/cache/unit.go (deleted in main)
- core/cache/unit_test.go (deleted in main)
- core/charm/downloader/mocks/charm_mocks.go (generated mocks re-generated)
- core/charm/downloader/mocks/storage_mocks.go (generated mocks re-generated)
- juju/testing/repo.go (deleted in main)

NOTE: Once merge conflicts were resolved, a unit test still panicked. This has been resolved in [this commit](f10917f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants